From: Ted Lemon Date: Fri, 9 May 1997 08:07:09 +0000 (+0000) Subject: Let bootp() check for correct type of packet X-Git-Tag: DHCP-970602~46 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=00294c5604d927ab382b09c38c9358d8006aae98;p=thirdparty%2Fdhcp.git Let bootp() check for correct type of packet --- diff --git a/common/options.c b/common/options.c index 39c7fb8b1..449137e4b 100644 --- a/common/options.c +++ b/common/options.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: options.c,v 1.23 1997/03/06 06:55:06 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: options.c,v 1.24 1997/05/09 08:07:09 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #define DHCP_OPTION_DATA @@ -585,7 +585,7 @@ void do_packet (interface, packbuf, len, from_port, from, hfrom) tp.options [DHO_DHCP_MESSAGE_TYPE].data [0]; if (tp.packet_type) dhcp (&tp); - else if (tdp.op == BOOTREQUEST) + else bootp (&tp); }