Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/uipc_socket.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -p -r1.9 -r1.10 --- src/sys/kern/uipc_socket.c 1993/12/18 04:22:28 1.9 +++ src/sys/kern/uipc_socket.c 1994/01/23 06:06:27 1.10 @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)uipc_socket.c 7.28 (Berkeley) 5/4/91 - * $Id: uipc_socket.c,v 1.9 1993/12/18 04:22:28 mycroft Exp $ + * $Id: uipc_socket.c,v 1.10 1994/01/23 06:06:27 deraadt Exp $ */ #include @@ -89,6 +89,10 @@ socreate(dom, aso, type, proto) sofree(so); return (error); } +#ifdef COMPAT_SUNOS + if (p->p_emul == EMUL_SUNOS && type == SOCK_DGRAM) + so->so_options |= SO_BROADCAST; +#endif *aso = so; return (0); }