From: Ted Lemon Date: Thu, 9 Apr 1998 04:28:20 +0000 (+0000) Subject: Add min-lease-time, min-secs and use-lease-addr-for-default-route X-Git-Tag: carrel-2~141 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8028ab1d092915964a28c60e95b8ae1c2baf17af;p=thirdparty%2Fdhcp.git Add min-lease-time, min-secs and use-lease-addr-for-default-route --- diff --git a/common/conflex.c b/common/conflex.c index b58a15504..b09f7a4f0 100644 --- a/common/conflex.c +++ b/common/conflex.c @@ -42,7 +42,7 @@ #ifndef lint static char copyright[] = -"$Id: conflex.c,v 1.30 1998/03/17 06:09:11 mellon Exp $ Copyright (c) 1995, 1996, 1997 The Internet Software Consortium. All rights reserved.\n"; +"$Id: conflex.c,v 1.31 1998/04/09 04:28:20 mellon Exp $ Copyright (c) 1995, 1996, 1997 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -447,6 +447,13 @@ static int intern (atom, dfv) case 'm': if (!strcasecmp (atom + 1, "ax-lease-time")) return MAX_LEASE_TIME; + if (!strncasecmp (atom + 1, "in-", 3)) { + if (!strcasecmp (atom + 4, "lease-time")) + return MIN_LEASE_TIME; + if (!strcasecmp (atom + 4, "secs")) + return MIN_SECS; + break; + } if (!strncasecmp (atom + 1, "edi", 3)) { if (!strcasecmp (atom + 4, "a")) return MEDIA; @@ -532,6 +539,8 @@ static int intern (atom, dfv) return USER_CLASS; if (!strcasecmp (atom + 1, "se-host-decl-names")) return USE_HOST_DECL_NAMES; + if (!strcasecmp (atom + 1, "se-lease-addr-for-default-route")) + return USE_HOST_DECL_NAMES; if (!strcasecmp (atom + 1, "nknown-clients")) return UNKNOWN_CLIENTS; break;