From: Ted Lemon Date: Wed, 3 Jan 2001 23:50:13 +0000 (+0000) Subject: - Globalize resolver state. X-Git-Tag: V3-BETA-2-PATCH-12~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de427245f2502ae26011ae19549ee316477cbf3b;p=thirdparty%2Fdhcp.git - Globalize resolver state. - Add an unset function for unsetting variables. --- diff --git a/includes/dhcpd.h b/includes/dhcpd.h index 70429eda5..88a71b09e 100644 --- a/includes/dhcpd.h +++ b/includes/dhcpd.h @@ -1101,6 +1101,7 @@ void parse_address_range PROTO ((struct parse *, struct group *, int, struct pool *)); /* ddns.c */ +int unset (struct binding_scope *, const char *); int ddns_updates PROTO ((struct packet *, struct lease *, struct lease_state *)); int ddns_removals PROTO ((struct lease *)); @@ -1163,13 +1164,18 @@ int parse_option_statement PROTO ((struct executable_statement **, struct parse *, int, struct option *, enum statement_op)); int parse_option_token PROTO ((struct expression **, struct parse *, - const char *, struct expression *, int, int)); + const char **, struct expression *, int, int)); int parse_allow_deny PROTO ((struct option_cache **, struct parse *, int)); int parse_auth_key PROTO ((struct data_string *, struct parse *)); int parse_warn (struct parse *, const char *, ...) __attribute__((__format__(__printf__,2,3))); /* tree.c */ +#if defined (NSUPDATE) +extern struct __res_state resolver_state; +extern int resolver_inited; +#endif + extern struct binding_scope *global_scope; pair cons PROTO ((caddr_t, pair)); int make_const_option_cache PROTO ((struct option_cache **, struct buffer **,