From: Ted Lemon Date: Tue, 22 Jun 1999 13:40:31 +0000 (+0000) Subject: - Fix a long-standing bug where BOOTP clients that request broadcast X-Git-Tag: V2-0-0~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3066aa6bc19c37e4647bc5d9e8cc1ad20cdc77b;p=thirdparty%2Fdhcp.git - Fix a long-standing bug where BOOTP clients that request broadcast responses don't receive them. --- diff --git a/server/bootp.c b/server/bootp.c index 56c29a772..bcc84171a 100644 --- a/server/bootp.c +++ b/server/bootp.c @@ -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);