Map the SO_BROADCAST option to invalid option, when not supported by the
authorsrinivas%netscape.com
Fri, 22 Oct 1999 20:56:25 +0000
changeset 902 d61e98678fca237b7a1a6dd6b5fdb1f705341fe7
parent 901 8faf5ea62cad57e2e28e6062f3a8d5e6f00f3cad
child 903 2ece0b589ee4196301ae92bf16e43812e5ef2f2a
push idunknown
push userunknown
push dateunknown
Map the SO_BROADCAST option to invalid option, when not supported by the system.
pr/src/io/prmapopt.c
--- a/pr/src/io/prmapopt.c
+++ b/pr/src/io/prmapopt.c
@@ -443,16 +443,20 @@ PRStatus PR_CALLBACK _PR_SocketSetSocket
 #ifndef TCP_NODELAY                     /* don't delay to coalesce data     */
 #define TCP_NODELAY         _PR_NO_SUCH_SOCKOPT
 #endif
 
 #ifndef TCP_MAXSEG                      /* maxumum segment size for tcp     */
 #define TCP_MAXSEG          _PR_NO_SUCH_SOCKOPT
 #endif
 
+#ifndef SO_BROADCAST                 /* enable broadcast on udp sockets */
+#define SO_BROADCAST        _PR_NO_SUCH_SOCKOPT
+#endif
+
 PRStatus _PR_MapOptionName(
     PRSockOption optname, PRInt32 *level, PRInt32 *name)
 {
     static PRInt32 socketOptions[PR_SockOpt_Last] =
     {
         0, SO_LINGER, SO_REUSEADDR, SO_KEEPALIVE, SO_RCVBUF, SO_SNDBUF,
         IP_TTL, IP_TOS, IP_ADD_MEMBERSHIP, IP_DROP_MEMBERSHIP,
         IP_MULTICAST_IF, IP_MULTICAST_TTL, IP_MULTICAST_LOOP,