]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Fix broadcast bug
authorTed Lemon <source@isc.org>
Fri, 3 Jan 1997 11:39:27 +0000 (11:39 +0000)
committerTed Lemon <source@isc.org>
Fri, 3 Jan 1997 11:39:27 +0000 (11:39 +0000)
dhcp.c
server/dhcp.c

diff --git a/dhcp.c b/dhcp.c
index a78e643c0856b85887eb7ea6577b10f6b76da2ed..39e2969d8e028426b5949c16866715869b7d50c2 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.35 1996/12/31 02:02:17 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.36 1997/01/03 11:39:27 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -899,7 +899,7 @@ void ack_lease (packet, lease, offer, when)
           is not requesting a broadcast response, sent it directly to
           that client. */
        } else if (raw.ciaddr.s_addr && offer == DHCPACK &&
-                  !(raw.flags & BOOTP_BROADCAST)) {
+                  !(raw.flags & htons (BOOTP_BROADCAST))) {
                to.sin_addr = packet -> raw -> ciaddr;
                to.sin_port = htons (ntohs (server_port) + 1); /* XXX */
 
index a78e643c0856b85887eb7ea6577b10f6b76da2ed..39e2969d8e028426b5949c16866715869b7d50c2 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: dhcp.c,v 1.35 1996/12/31 02:02:17 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: dhcp.c,v 1.36 1997/01/03 11:39:27 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -899,7 +899,7 @@ void ack_lease (packet, lease, offer, when)
           is not requesting a broadcast response, sent it directly to
           that client. */
        } else if (raw.ciaddr.s_addr && offer == DHCPACK &&
-                  !(raw.flags & BOOTP_BROADCAST)) {
+                  !(raw.flags & htons (BOOTP_BROADCAST))) {
                to.sin_addr = packet -> raw -> ciaddr;
                to.sin_port = htons (ntohs (server_port) + 1); /* XXX */