]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix copyright; don't connect to broadcast address
authorTed Lemon <source@isc.org>
Mon, 20 May 1996 00:28:08 +0000 (00:28 +0000)
committerTed Lemon <source@isc.org>
Mon, 20 May 1996 00:28:08 +0000 (00:28 +0000)
common/raw.c
raw.c

index 03458ac92ef32c0397c294c7397789c0d5ba6446..59d6d624bc17236608cbf21099d146b8aa6e5656 100644 (file)
@@ -54,7 +54,7 @@
 
 #ifndef lint
 static char copyright[] =
-"@(#) Copyright (c) 1995 The Internet Software Consortium.  All rights reserved.\n";
+"@(#) Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -94,11 +94,6 @@ void if_register_send (info, interface)
        if (setsockopt (sock, IPPROTO_IP, IP_HDRINCL, &flag, sizeof flag) < 0)
                error ("Can't set IP_HDRINCL flag: %m");
 
-       /* Connect to the broadcast address... */
-       if (connect (sock, (struct sockaddr *)&name, sizeof name) < 0)
-               error ("Can't connect %s to %s: %m",
-                      piaddr (info -> address), inet_ntoa (name.sin_addr));
-
        info -> wfdesc = sock;
        note ("Sending on   Raw/%s", piaddr (info -> address));
 }
diff --git a/raw.c b/raw.c
index 03458ac92ef32c0397c294c7397789c0d5ba6446..59d6d624bc17236608cbf21099d146b8aa6e5656 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -54,7 +54,7 @@
 
 #ifndef lint
 static char copyright[] =
-"@(#) Copyright (c) 1995 The Internet Software Consortium.  All rights reserved.\n";
+"@(#) Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -94,11 +94,6 @@ void if_register_send (info, interface)
        if (setsockopt (sock, IPPROTO_IP, IP_HDRINCL, &flag, sizeof flag) < 0)
                error ("Can't set IP_HDRINCL flag: %m");
 
-       /* Connect to the broadcast address... */
-       if (connect (sock, (struct sockaddr *)&name, sizeof name) < 0)
-               error ("Can't connect %s to %s: %m",
-                      piaddr (info -> address), inet_ntoa (name.sin_addr));
-
        info -> wfdesc = sock;
        note ("Sending on   Raw/%s", piaddr (info -> address));
 }