Date: Thu, 26 Feb 1998 20:46:02 +0300 (MSK) From: Adel Abushaev <Adel.Abushaev@ksu.ru> To: freebsd-bugs@FreeBSD.ORG Subject: Possible bug Message-ID: <Pine.GSO.3.96.980226204144.17491A-100000@alpha>
index | next in thread | raw e-mail
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.3.96.980226204144.17491A-100000>
