2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-28 12:57:42 +00:00

Don't invalidate a lease if we receive an ICMP echo reply for it when it has a valid lease. This can happen if some other user on the host pings the client after we've assigned it an address.

This commit is contained in:
Ted Lemon 1998-03-15 20:47:27 +00:00
parent 3f165a4027
commit c0a8b01162

View 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");