From: rstevens@noao.edu (W. Richard Stevens)
Subject: Re: sendmsg returns ENOBUFS (UDP & broadcast)
Date: 1996/03/25 [thread overview]
Message-ID: <4j6s4e$84m@noao.edu> (raw)
In-Reply-To: 3156EF4D.177F623F@worldnet.fr
> On Digital UNIX 3.2, sendmsg on a UDP sock_dgram socket return
> ENOBUFS (broadcast mode), the manual page specifies that :
> The system was unable to allocate an internal buffer.
>
> I wonder if this is related to the sending buffer associated with
> the socket (which can be tuned by the use of setsockopt(SO_SNDBUF)
> or if this is due to a kernel buffer overflow. In the last case,
> can I increase this buffer, and what is the associated kernel variable ?
I've never seen Digital Unix, but on Berkeley-derived kernels, this
means the interface output queue was full. UDP does not save a copy
of the outgoing datagrams so there really isn't a "socket send buffer"
for a UDP socket: the size you set with SO_SNDBUF just specifies the
largest UDP datagram that you can send on the socket.
Try "netstat -id" if Digital Unix supports it, to see how many packets
have been dropped by the interface on output. If this is the problem,
then I wonder if the ifq_maxlen value is still the old classic 50?
Rich Stevens
next prev parent reply other threads:[~1996-03-25 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-25 5:00 sendmsg returns ENOBUFS (UDP & broadcast) Laurent Deniel
1996-03-25 5:00 ` W. Richard Stevens [this message]
1996-03-25 5:00 ` James Carlson
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox