From: Ted Lemon Date: Thu, 1 Mar 2001 22:11:50 +0000 (+0000) Subject: Don't start ICMP if we're just testing a lease file. X-Git-Tag: V3-BETA-2-PATCH-19~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30a122eebc7a797db95ba032a6f7b2c31d5ef8eb;p=thirdparty%2Fdhcp.git Don't start ICMP if we're just testing a lease file. --- diff --git a/server/dhcpd.c b/server/dhcpd.c index f1f9e9f68..3504565aa 100644 --- a/server/dhcpd.c +++ b/server/dhcpd.c @@ -43,7 +43,7 @@ #ifndef lint static char ocopyright[] = -"$Id: dhcpd.c,v 1.112 2001/02/22 00:18:54 mellon Exp $ Copyright 1995-2001 Internet Software Consortium."; +"$Id: dhcpd.c,v 1.113 2001/03/01 22:11:50 mellon Exp $ Copyright 1995-2001 Internet Software Consortium."; #endif static char copyright[] = @@ -439,7 +439,8 @@ int main (argc, argv, envp) #endif /* Initialize icmp support... */ - icmp_startup (1, lease_pinged); + if (!cftest && !lftest) + icmp_startup (1, lease_pinged); #if defined (TRACING) if (traceinfile) {