]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
- Fix a long-standing bug where BOOTP clients that request broadcast
authorTed Lemon <source@isc.org>
Tue, 22 Jun 1999 13:40:31 +0000 (13:40 +0000)
committerTed Lemon <source@isc.org>
Tue, 22 Jun 1999 13:40:31 +0000 (13:40 +0000)
  responses don't receive them.

server/bootp.c

index 56c29a772cda55a419ce53f61f57343a025dc9c7..bcc84171ac217b1aa041307170ef4d47d78e8301 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bootp.c,v 1.28.2.7 1999/05/08 18:14:54 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: bootp.c,v 1.28.2.8 1999/06/22 13:40:31 mellon Exp $ Copyright (c) 1995, 1996, 1998, 1999 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -285,7 +285,7 @@ void bootp (packet)
        raw.hops = packet -> raw -> hops;
        raw.xid = packet -> raw -> xid;
        raw.secs = packet -> raw -> secs;
-       raw.flags = 0;
+       raw.flags = packet -> raw -> flags;
        raw.ciaddr = packet -> raw -> ciaddr;
        memcpy (&raw.yiaddr, ip_address.iabuf, sizeof raw.yiaddr);