]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Check for BOOTREQUEST moved here
authorTed Lemon <source@isc.org>
Fri, 9 May 1997 08:20:12 +0000 (08:20 +0000)
committerTed Lemon <source@isc.org>
Fri, 9 May 1997 08:20:12 +0000 (08:20 +0000)
server/bootp.c

index 4361d513ba011ed2de89adb54ee909a6ab385ac6..f89ee81937c09a13275d696ee8c4ffa3b1d47ed3 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: bootp.c,v 1.25 1997/03/06 07:27:56 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: bootp.c,v 1.26 1997/05/09 08:20:12 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -64,6 +64,9 @@ void bootp (packet)
        struct iaddr ip_address;
        int i;
 
+       if (packet -> raw -> op != BOOTREQUEST)
+               return;
+
        note ("BOOTREQUEST from %s via %s",
              print_hw_addr (packet -> raw -> htype,
                             packet -> raw -> hlen,