udp(7) and MSG_TRUNC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




To quote udp(7):

	All receive operations return only one packet.  When the packet is
	smaller than the passed buffer only that much data is returned,
	when it is bigger the packet is truncated and the MSG_TRUNC flag
	is set. MSG_WAITALL is not supported.

But, in both 2.4 and 2.6 it doesn't seem to be honoring that. Someone even wrote a patch:

http://www.uwsg.iu.edu/hypermail/linux/kernel/0206.3/0616.html

which, AFAICT, disappeared into the void.

I think someone should either change the manpage to reflect that udp(7) doesn't support MSG_TRUNC, or change the behavior of udp_recvmsg.

			Alexey

P.S. not on the list, please reply directly.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux