]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add min-lease-time, min-secs and use-lease-addr-for-default-route
authorTed Lemon <source@isc.org>
Thu, 9 Apr 1998 04:28:20 +0000 (04:28 +0000)
committerTed Lemon <source@isc.org>
Thu, 9 Apr 1998 04:28:20 +0000 (04:28 +0000)
common/conflex.c

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