From: Ted Lemon Date: Sat, 29 Mar 1997 01:25:10 +0000 (+0000) Subject: Add bnackoff-cutoff and initial-interval keywords X-Git-Tag: DHCP-970328~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3951e13c3d5510c5c38a71423035005516bf3260;p=thirdparty%2Fdhcp.git Add bnackoff-cutoff and initial-interval keywords --- diff --git a/common/conflex.c b/common/conflex.c index d34897dfc..4bf5e6638 100644 --- a/common/conflex.c +++ b/common/conflex.c @@ -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; diff --git a/includes/dhctoken.h b/includes/dhctoken.h index ac5adde60..18c5ebdcd 100644 --- a/includes/dhctoken.h +++ b/includes/dhctoken.h @@ -113,6 +113,8 @@ #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 && \