]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add bnackoff-cutoff and initial-interval keywords
authorTed Lemon <source@isc.org>
Sat, 29 Mar 1997 01:25:10 +0000 (01:25 +0000)
committerTed Lemon <source@isc.org>
Sat, 29 Mar 1997 01:25:10 +0000 (01:25 +0000)
common/conflex.c
includes/dhctoken.h

index d34897dfc0fcd0badf00908abf83c5f0df7991d2..4bf5e6638530208d6bf76849a9b4f52b6395aa5e 100644 (file)
@@ -42,7 +42,7 @@
 
 #ifndef lint
 static char copyright[] =
-"$Id: conflex.c,v 1.24 1997/03/06 19:27:57 mellon Exp $ Copyright (c) 1995, 1996, 1997 The Internet Software Consortium.  All rights reserved.\n";
+"$Id: conflex.c,v 1.25 1997/03/29 01:24:53 mellon Exp $ Copyright (c) 1995, 1996, 1997 The Internet Software Consortium.  All rights reserved.\n";
 #endif /* not lint */
 
 #include "dhcpd.h"
@@ -361,6 +361,8 @@ static int intern (atom, dfv)
                        return ABANDONED;
                break;
              case 'b':
+               if (!strcasecmp (atom + 1, "ackoff-cutoff"))
+                       return BACKOFF_CUTOFF;
                if (!strcasecmp (atom + 1, "ootp"))
                        return BOOTP;
                if (!strcasecmp (atom + 1, "ooting"))
@@ -424,6 +426,8 @@ static int intern (atom, dfv)
                        return HARDWARE;
                break;
              case 'i':
+               if (!strcasecmp (atom + 1, "nitial-interval"))
+                       return INITIAL_INTERVAL;
                if (!strcasecmp (atom + 1, "nterface"))
                        return INTERFACE;
                break;
index ac5adde601970baf1566afeff1c2b78b7811a001..18c5ebdcd9c539e330f353e84fcd33a9dbc50e9f 100644 (file)
 #define ALIAS          317
 #define REBOOT         318
 #define ABANDONED      319
+#define        BACKOFF_CUTOFF  320
+#define        INITIAL_INTERVAL 321
 
 #define is_identifier(x)       ((x) >= FIRST_TOKEN &&  \
                                 (x) != STRING &&       \