Re: sendto() drops data without telling the application layer?

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

 



Hello!

> manual page for sendto() I came across the following:
> ENOBUFS The output queue for a network interface was full. This generally
> indicates that the interface has stopped sending, but may be caused by
> transient congestion. (This cannot occur in Linux, packets are just silently
> dropped when a device queue overflows.) 

manpage says truth.

You can enable receiving all the errors with setsockopt(SOL_IP, IP_RECVERR),
but this requires of application to handle all the errors, which are usually
hidden. Look into iputils (ping or tracepath) for examples.

Alexey
-
: 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