Fixed typo in previous checkin. Also, the correct bug # is 15680.
authorsrinivas%netscape.com
Wed, 06 Oct 1999 18:49:27 +0000
changeset 846 ce5a7f331a1f2ea8b320fe4925a7047946507f9e
parent 845 5d88f8d6fd2eb6e8b070bbfe4f02767b104bf3c8
child 847 1ae5e83b24519ddfb396ae409e425e63af6d124c
push idunknown
push userunknown
push dateunknown
bugs15680
Fixed typo in previous checkin. Also, the correct bug # is 15680.
pr/src/pthreads/ptio.c
--- a/pr/src/pthreads/ptio.c
+++ b/pr/src/pthreads/ptio.c
@@ -2477,16 +2477,17 @@ static PRStatus pt_GetSocketOption(PRFil
                     (linger.l_onoff) ? PR_TRUE : PR_FALSE;
                 data->value.linger.linger =
                     PR_SecondsToInterval(linger.l_linger);
                 break;
             }
             case PR_SockOpt_Reuseaddr:
             case PR_SockOpt_Keepalive:
             case PR_SockOpt_NoDelay:
+            case PR_SockOpt_Broadcast:
             {
                 PRIntn value;
                 length = sizeof(PRIntn);
                 rv = getsockopt(
                     fd->secret->md.osfd, level, name, (char*)&value, &length);
                 PR_ASSERT((-1 == rv) || (sizeof(PRIntn) == length));
                 data->value.reuse_addr = (0 == value) ? PR_FALSE : PR_TRUE;
                 break;
@@ -2595,16 +2596,17 @@ static PRStatus pt_SetSocketOption(PRFil
                 linger.l_linger = PR_IntervalToSeconds(data->value.linger.linger);
                 rv = setsockopt(
                     fd->secret->md.osfd, level, name, (char*)&linger, sizeof(linger));
                 break;
             }
             case PR_SockOpt_Reuseaddr:
             case PR_SockOpt_Keepalive:
             case PR_SockOpt_NoDelay:
+            case PR_SockOpt_Broadcast:
             {
                 PRIntn value = (data->value.reuse_addr) ? 1 : 0;
                 rv = setsockopt(
                     fd->secret->md.osfd, level, name,
                     (char*)&value, sizeof(PRIntn));
                 break;
             }
             case PR_SockOpt_McastLoopback:
@@ -2634,17 +2636,16 @@ static PRStatus pt_SetSocketOption(PRFil
                 break;
             }
             case PR_SockOpt_McastTimeToLive:
             {
                 PRUint8 ttl = data->value.mcast_ttl;
                 rv = setsockopt(
                     fd->secret->md.osfd, level, name,
                     (char*)&ttl, sizeof(ttl));
-            case PR_SockOpt_Broadcast:
                 break;
             }
             case PR_SockOpt_AddMember:
             case PR_SockOpt_DropMember:
             {
                 struct ip_mreq mreq;
                 mreq.imr_multiaddr.s_addr =
                     data->value.add_member.mcaddr.inet.ip;
@@ -2753,17 +2754,16 @@ static PRIOMethods _pr_udp_methods = {
     (PRSeekFN)_PR_InvalidInt,
     (PRSeek64FN)_PR_InvalidInt64,
     (PRFileInfoFN)_PR_InvalidStatus,
     (PRFileInfo64FN)_PR_InvalidStatus,
     pt_Writev,
     pt_Connect,
     (PRAcceptFN)_PR_InvalidDesc,
     pt_Bind,
-            case PR_SockOpt_Broadcast:
     pt_Listen,
     pt_Shutdown,
     pt_Recv,
     pt_Send,
     pt_RecvFrom,
     pt_SendTo,
     pt_Poll,
     (PRAcceptreadFN)_PR_InvalidInt,