sockets

Guy Harris guy at auspex.auspex.com
Tue Aug 29 05:50:33 AEST 1989


>Of course, this problem may well just be relevant to SunOS 3.x.  There is
>an option (SO_BROADCAST) that can be set with `setsockoption' in 4.x that
>probably does this correctly---again, I haven't tried this on 4.x yet.

No, it does not, but it is not intended to.  SO_BROADCAST is a
4.3BSD-ism (unless it was in 4.2BSD as well, in which case I'd expect it
to be in SunOS [123].x) and, as noted in the SunOS 4.x and 4.3-tahoe
(and probably 4.3BSD) GETSOCKOPT(2) manual pages:

     The option SO_BROADCAST requests permission to  send  broad-
     cast  datagrams  on  the socket.  Broadcast was a privileged
     operation in earlier versions of the system.

All it does is request permission to send broadcast datagrams; it does
not set the socket up to always transmit them.



More information about the Comp.unix.wizards mailing list