#ifndef lint
static char copyright[] =
-"$Id: conflex.c,v 1.91 2001/04/20 18:07:25 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium. All rights reserved.\n";
+"$Id: conflex.c,v 1.92 2001/05/02 06:32:54 mellon Exp $ Copyright (c) 1995-2001 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
static enum dhcp_token read_num_or_name PROTO ((int, struct parse *));
static enum dhcp_token intern PROTO ((char *, enum dhcp_token));
-isc_result_t new_parse (cfile, file, inbuf, buflen, name)
+isc_result_t new_parse (cfile, file, inbuf, buflen, name, eolp)
struct parse **cfile;
int file;
char *inbuf;
unsigned buflen;
const char *name;
+ int eolp;
{
struct parse *tmp;
tmp -> cur_line [0] = tmp -> prev_line [0] = 0;
tmp -> warnings_occurred = 0;
tmp -> file = file;
+ tmp -> eol_token = eolp;
tmp -> bufix = 0;
tmp -> buflen = buflen;
if (!strcasecmp (atom + 6, "s"))
return CLIENTS;
}
- if (!strncasecmp (atom + 1, "oncat", 5))
+ if (!strcasecmp (atom + 1, "oncat"))
return CONCAT;
+ if (!strcasecmp (atom + 1, "onnect"))
+ return CONNECT;
if (!strcasecmp (atom + 1, "ommunications-interrupted"))
return COMMUNICATIONS_INTERRUPTED;
if (!strcasecmp (atom + 1, "ltt"))
return SERVER_NAME;
if (!strcasecmp (atom + 1, "erver-identifier"))
return SERVER_IDENTIFIER;
+ if (!strcasecmp (atom + 1, "erver"))
+ return SERVER;
if (!strcasecmp (atom + 1, "elect-timeout"))
return SELECT_TIMEOUT;
if (!strcasecmp (atom + 1, "elect"))