mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-29 05:17:57 +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:
parent
3f165a4027
commit
c0a8b01162
@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char ocopyright[] =
|
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
|
#endif
|
||||||
|
|
||||||
static char copyright[] =
|
static char copyright[] =
|
||||||
@ -329,6 +329,11 @@ void lease_pinged (from, packet, length)
|
|||||||
return;
|
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
|
/* At this point it looks like we pinged a lease and got a
|
||||||
response, which shouldn't have happened. */
|
response, which shouldn't have happened. */
|
||||||
free_lease_state (lp -> state, "lease_pinged");
|
free_lease_state (lp -> state, "lease_pinged");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user