diff options
Diffstat (limited to 'src/dnsmasq.h')
-rw-r--r-- | src/dnsmasq.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/dnsmasq.h b/src/dnsmasq.h index 8091634..0c322a9 100644 --- a/src/dnsmasq.h +++ b/src/dnsmasq.h @@ -554,6 +554,9 @@ struct resolvc { #define AH_DIR 1 #define AH_INACTIVE 2 #define AH_WD_DONE 4 +#define AH_HOSTS 8 +#define AH_DHCP_HST 16 +#define AH_DHCP_OPT 32 struct hostsfile { struct hostsfile *next; int flags; @@ -965,7 +968,7 @@ extern struct daemon { int doing_ra, doing_dhcp6; struct dhcp_netid_list *dhcp_ignore, *dhcp_ignore_names, *dhcp_gen_names; struct dhcp_netid_list *force_broadcast, *bootp_dynamic; - struct hostsfile *dhcp_hosts_file, *dhcp_opts_file, *inotify_hosts; + struct hostsfile *dhcp_hosts_file, *dhcp_opts_file, *dynamic_dirs; int dhcp_max, tftp_max; int dhcp_server_port, dhcp_client_port; int start_tftp_port, end_tftp_port; @@ -1071,6 +1074,8 @@ int cache_make_stat(struct txt_record *t); char *cache_get_name(struct crec *crecp); char *cache_get_cname_target(struct crec *crecp); struct crec *cache_enumerate(int init); +int read_hostsfile(char *filename, unsigned int index, int cache_size, + struct crec **rhash, int hashsz); /* blockdata.c */ #ifdef HAVE_DNSSEC @@ -1204,7 +1209,8 @@ void reset_option_bool(unsigned int opt); struct hostsfile *expand_filelist(struct hostsfile *list); char *parse_server(char *arg, union mysockaddr *addr, union mysockaddr *source_addr, char *interface, int *flags); -int option_read_hostsfile(char *file); +int option_read_dynfile(char *file, int flags); + /* forward.c */ void reply_query(int fd, int family, time_t now); void receive_query(struct listener *listen, time_t now); @@ -1494,7 +1500,5 @@ int detect_loop(char *query, int type); #ifdef HAVE_INOTIFY void inotify_dnsmasq_init(); int inotify_check(time_t now); -# ifdef HAVE_DHCP -void set_dhcp_inotify(void); -# endif +void set_dynamic_inotify(int flag, int total_size, struct crec **rhash, int revhashsz); #endif |