-/* $OpenBSD: clparse.c,v 1.163 2018/01/04 03:02:05 krw Exp $ */
+/* $OpenBSD: clparse.c,v 1.164 2018/01/04 18:26:04 krw Exp $ */
/* Parser for dhclient config and lease files. */
#include "dhctoken.h"
#include "log.h"
-void parse_conf_declaration(FILE *, char *);
+void parse_conf_decl(FILE *, char *);
int parse_hex_octets(FILE *, unsigned int *, uint8_t **);
int parse_option_list(FILE *, int *, uint8_t *);
-int parse_interface_declaration(FILE *, char *);
+int parse_interface_decl(FILE *, char *);
int parse_lease(FILE *, char *,
struct client_lease **);
-void parse_lease_declaration(FILE *,
+void parse_lease_decl(FILE *,
struct client_lease *, char *);
int parse_option_decl(FILE *, int *, struct option_data *);
int parse_reject_statement(FILE *);
token = peek_token(NULL, cfile);
if (token == EOF)
break;
- parse_conf_declaration(cfile, name);
+ parse_conf_decl(cfile, name);
}
fclose(cfile);
}
* | TIMEOUT number
*/
void
-parse_conf_declaration(FILE *cfile, char *name)
+parse_conf_decl(FILE *cfile, char *name)
{
uint8_t list[DHO_COUNT];
char *val;
}
break;
case TOK_INTERFACE:
- if (parse_interface_declaration(cfile, name) == 1)
+ if (parse_interface_decl(cfile, name) == 1)
;
break;
case TOK_LEASE:
* INTERFACE string LBRACE conf-decl RBRACE
*/
int
-parse_interface_declaration(FILE *cfile, char *name)
+parse_interface_decl(FILE *cfile, char *name)
{
char *val;
int token;
token = next_token(NULL, cfile);
return 1;
}
- parse_conf_declaration(cfile, name);
+ parse_conf_decl(cfile, name);
}
return 0;
*lp = lease;
return 1;
}
- parse_lease_declaration(cfile, lease, name);
+ parse_lease_decl(cfile, lease, name);
}
return 0;
* | SSID string
*/
void
-parse_lease_declaration(FILE *cfile, struct client_lease *lease,
- char *name)
+parse_lease_decl(FILE *cfile, struct client_lease *lease, char *name)
{
char *val;
unsigned int len;