From owner-freebsd-bugs Thu Feb 26 10:14:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA27022 for freebsd-bugs-outgoing; Thu, 26 Feb 1998 10:14:52 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from ecstasy.ksu.ru (root@ecstasy.ksu.ru [193.232.252.41]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA26411 for ; Thu, 26 Feb 1998 10:11:41 -0800 (PST) (envelope-from Adel.Abushaev@ksu.ru) X-Pass-Through: Kazan State University network Received: from alpha (adel@alpha [193.232.252.33]) by ecstasy.ksu.ru (8.8.4/8.8.4) with SMTP id UAA14029 for ; Thu, 26 Feb 1998 20:46:12 +0300 (MSK) Date: Thu, 26 Feb 1998 20:46:02 +0300 (MSK) From: Adel Abushaev X-Sender: adel@alpha To: freebsd-bugs@FreeBSD.ORG Subject: Possible bug Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello. I just performed ioctl(sockfd, FIONREAD, &optval) for the datagram socket and sent datagram (sendto()) 512 bytes long... I got 528 in optval, but recv() withlength=512 returned right data. As far as datagram service is record-like, we can't read less or more bytes from socket than we sent. So, seems to be wrong parameter returning in ioctl(,FIONREAD) fro SOCK_DGRAM sockets. Thanks for attention, Adel. ------------------------------------------------------------------------ * The gates of excellence are surrounded by the ocean of sweat * ------------------------------------------------------------------------ adel@ksu.ru | Adel A. Abushaev Kazan State University | Datalink Centre | Consulting & Network Division ------------------------------------------------------------------------ * "Serve and save ... Knowledge is the key ... Nothing is impossible" * ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message