Subject: ioctl(), UDP sockets, bytes pending
To: NetBSD/mac68k <port-mac68k@netbsd.org>
From: Andy Finnell <andyf@vei.net>
List: port-mac68k
Date: 10/14/1999 22:32:52
When doing some distributed OS homework, I noticed that ioctl() doesn't
properly return the number of bytes pending on a UDP socket. I send
only one 40 bytes UDP packet to my server, my server ( actually a bridge
program ) then uses ioctl() to determine that amount of bytes pending.
Instead of coming back with 40 bytes, it comes back with 56 bytes. I
can also reproduce this behaviour with IRIX 6.5. Any ideas of what's
going on?
I'm using NetBSD 1.4 with a Quadra 700, 68/2gig.
Thanks,
-andy