]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Don't ping static leases - there's no persistent structure for them! NetBSD_1_3_Alpha
authorTed Lemon <source@isc.org>
Mon, 20 Oct 1997 22:28:18 +0000 (22:28 +0000)
committerTed Lemon <source@isc.org>
Mon, 20 Oct 1997 22:28:18 +0000 (22:28 +0000)
server/dhcp.c

index f94fd99f3a5f95724defcc7ba4dae5229bff07e6..7efd3ddf015f28f68d2fe9d5053e77c9fd844f8e 100644 (file)
@@ -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;