From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f9325,b6366bbce9f6f9b9 X-Google-Attributes: gidf9325,public X-Google-Thread: fee84,b6366bbce9f6f9b9 X-Google-Attributes: gidfee84,public X-Google-Thread: 10b612,b6366bbce9f6f9b9 X-Google-Attributes: gid10b612,public From: rstevens@noao.edu (W. Richard Stevens) Subject: Re: sendmsg returns ENOBUFS (UDP & broadcast) Date: 1996/03/25 Message-ID: <4j6s4e$84m@noao.edu>#1/1 X-Deja-AN: 144196762 references: <3156EF4D.177F623F@worldnet.fr> organization: National Optical Astronomy Observatories, Tucson, AZ, USA newsgroups: comp.unix.osf.osf1,comp.unix.ultrix,comp.protocols.tcp-ip > 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