diff options
author | Ted Lemon <source@isc.org> | 1997-10-20 22:28:18 +0000 |
---|---|---|
committer | Ted Lemon <source@isc.org> | 1997-10-20 22:28:18 +0000 |
commit | f48132f7f8be35c4288cedbda9271808004f08cd (patch) | |
tree | fb60d0500865b20ae1c0833c0db0a96268c553e7 | |
parent | cee439f8f3517fd92f56ac7c21b0629bafdf0eef (diff) | |
download | isc-dhcp-f48132f7f8be35c4288cedbda9271808004f08cd.tar.gz |
Don't ping static leases - there's no persistent structure for them!NetBSD_1_3_Alpha
-rw-r--r-- | server/dhcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/dhcp.c b/server/dhcp.c index f94fd99f..7efd3ddf 100644 --- a/server/dhcp.c +++ b/server/dhcp.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: dhcp.c,v 1.51 1997/09/16 18:20:30 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; +"$Id: dhcp.c,v 1.52 1997/10/20 22:28:18 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -913,7 +913,7 @@ void ack_lease (packet, lease, offer, when) /* If this is a DHCPOFFER, ping the lease address before actually sending the offer. */ - if (offer == DHCPOFFER) { + if (offer == DHCPOFFER && !(lease -> flags & STATIC_LEASE)) { icmp_echorequest (&lease -> ip_addr); add_timeout (cur_time + 1, lease_ping_timeout, lease); ++outstanding_pings; |