]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't invalidate a lease if we receive an ICMP echo reply for it when it has a valid...
authorTed Lemon <source@isc.org>
Sun, 15 Mar 1998 20:47:27 +0000 (20:47 +0000)
committerTed Lemon <source@isc.org>
Sun, 15 Mar 1998 20:47:27 +0000 (20:47 +0000)
server/dhcpd.c

index 258f98221f152df2051f774634e4e9dc44517a45..8e14b034cbe83c5e0004bcc7f09befb0f1ecc7cb 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char ocopyright[] =
-"$Id: dhcpd.c,v 1.46 1998/02/06 01:10:28 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium.";
+"$Id: dhcpd.c,v 1.47 1998/03/15 20:47:27 mellon Exp $ Copyright 1995, 1996 The Internet Software Consortium.";
 #endif
 
 static char copyright[] =
@@ -329,6 +329,11 @@ void lease_pinged (from, packet, length)
                return;
        }
 
+       if (lp -> ends > cur_time) {
+               warn ("ICMP Echo reply arrived while lease %s was valid.\n",
+                     piaddr (from));
+       }
+
        /* At this point it looks like we pinged a lease and got a
           response, which shouldn't have happened. */
        free_lease_state (lp -> state, "lease_pinged");