diff options
author | Ted Lemon <source@isc.org> | 1996-05-20 00:28:08 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1996-05-20 00:28:08 +0000 |
commit | b1eb9ec33e89a65dbd40abdd767df22b14d16847 (patch) | |
tree | 84decdbcbb21c2ac81b73396d1d0bc10303ddf8f | |
parent | 886f6a983f9d2219006ed774cc8284e0691fe874 (diff) | |
download | isc-dhcp-b1eb9ec33e89a65dbd40abdd767df22b14d16847.tar.gz |
Fix copyright; don't connect to broadcast address
-rw-r--r-- | common/raw.c | 7 | ||||
-rw-r--r-- | raw.c | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/common/raw.c b/common/raw.c index 03458ac9..59d6d624 100644 --- a/common/raw.c +++ b/common/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)); } @@ -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)); } |