]>
Commit | Line | Data |
---|---|---|
9e4abcb5 SK |
1 | /* dnsmasq is Copyright (c) 2000-2003 Simon Kelley |
2 | ||
3 | This program is free software; you can redistribute it and/or modify | |
4 | it under the terms of the GNU General Public License as published by | |
5 | the Free Software Foundation; version 2 dated June, 1991. | |
6 | ||
7 | This program is distributed in the hope that it will be useful, | |
8 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
9 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
10 | GNU General Public License for more details. | |
11 | */ | |
12 | ||
13 | /* Author's email: simon@thekelleys.org.uk */ | |
feba5c1d SK |
14 | |
15 | #define COPYRIGHT "Copyright (C) 2000-2004 Simon Kelley" | |
9e4abcb5 | 16 | |
44a2a316 | 17 | #ifdef __linux__ |
9e4abcb5 | 18 | /* for pselect.... */ |
44a2a316 | 19 | #define _XOPEN_SOURCE 600 |
9e4abcb5 SK |
20 | /* but then DNS headers don't compile without.... */ |
21 | #define _BSD_SOURCE | |
44a2a316 SK |
22 | #endif |
23 | ||
9e4abcb5 | 24 | /* get these before config.h for IPv6 stuff... */ |
44a2a316 | 25 | #include <sys/types.h> |
9e4abcb5 SK |
26 | #include <netinet/in.h> |
27 | ||
28 | /* get this before config.h too. */ | |
29 | #include <syslog.h> | |
30 | ||
31 | #include "config.h" | |
44a2a316 | 32 | |
9e4abcb5 SK |
33 | #include <arpa/nameser.h> |
34 | #include <arpa/inet.h> | |
35 | #include <sys/stat.h> | |
36 | #include <sys/socket.h> | |
37 | #include <sys/stat.h> | |
38 | #include <sys/ioctl.h> | |
39 | #include <sys/select.h> | |
feba5c1d | 40 | #include <sys/wait.h> |
9e4abcb5 | 41 | #if defined(__sun) || defined(__sun__) |
44a2a316 | 42 | # include <sys/sockio.h> |
9e4abcb5 SK |
43 | #endif |
44 | #include <sys/time.h> | |
8a911ccc | 45 | #include <limits.h> |
9e4abcb5 SK |
46 | #include <net/if.h> |
47 | #include <unistd.h> | |
48 | #include <stdio.h> | |
49 | #include <string.h> | |
50 | #include <stdlib.h> | |
51 | #include <fcntl.h> | |
52 | #include <ctype.h> | |
53 | #include <signal.h> | |
54 | #ifdef HAVE_GETOPT_LONG | |
55 | # include <getopt.h> | |
56 | #endif | |
57 | #include <time.h> | |
58 | #include <errno.h> | |
59 | #include <pwd.h> | |
60 | #include <grp.h> | |
de37951c | 61 | #if defined(__OpenBSD__) || defined(__NetBSD__) |
44a2a316 SK |
62 | # include <netinet/if_ether.h> |
63 | #else | |
64 | # include <net/ethernet.h> | |
65 | #endif | |
9e4abcb5 SK |
66 | #include <net/if_arp.h> |
67 | #include <netinet/in_systm.h> | |
68 | #include <netinet/ip.h> | |
9e4abcb5 | 69 | #ifdef HAVE_BPF |
44a2a316 SK |
70 | # include <net/bpf.h> |
71 | # include <net/if_dl.h> | |
72 | #else | |
73 | # include <netpacket/packet.h> | |
9e4abcb5 SK |
74 | #endif |
75 | #include <sys/uio.h> | |
76 | ||
44a2a316 SK |
77 | /* Size: we check after adding each record, so there must be |
78 | memory for the largest packet, and the largest record */ | |
79 | #define DNSMASQ_PACKETSZ PACKETSZ+MAXDNAME+RRFIXEDSZ | |
80 | ||
9e4abcb5 SK |
81 | #define OPT_BOGUSPRIV 1 |
82 | #define OPT_FILTER 2 | |
83 | #define OPT_LOG 4 | |
84 | #define OPT_SELFMX 8 | |
85 | #define OPT_NO_HOSTS 16 | |
86 | #define OPT_NO_POLL 32 | |
87 | #define OPT_DEBUG 64 | |
88 | #define OPT_ORDER 128 | |
89 | #define OPT_NO_RESOLV 256 | |
90 | #define OPT_EXPAND 512 | |
91 | #define OPT_LOCALMX 1024 | |
92 | #define OPT_NO_NEG 2048 | |
93 | #define OPT_NODOTS_LOCAL 4096 | |
44a2a316 SK |
94 | #define OPT_NOWILD 8192 |
95 | #define OPT_ETHERS 16384 | |
de37951c | 96 | #define OPT_RESOLV_DOMAIN 32768 |
9e4abcb5 SK |
97 | |
98 | struct all_addr { | |
99 | union { | |
100 | struct in_addr addr4; | |
101 | #ifdef HAVE_IPV6 | |
102 | struct in6_addr addr6; | |
103 | #endif | |
104 | } addr; | |
105 | }; | |
106 | ||
107 | struct bogus_addr { | |
108 | struct in_addr addr; | |
109 | struct bogus_addr *next; | |
110 | }; | |
111 | ||
1cff166d SK |
112 | /* dns doctor param */ |
113 | struct doctor { | |
114 | struct in_addr in, out, mask; | |
115 | struct doctor *next; | |
116 | }; | |
117 | ||
de37951c SK |
118 | struct mx_record { |
119 | char *mxname, *mxtarget; | |
120 | struct mx_record *next; | |
121 | }; | |
122 | ||
9e4abcb5 SK |
123 | union bigname { |
124 | char name[MAXDNAME]; | |
125 | union bigname *next; /* freelist */ | |
126 | }; | |
127 | ||
128 | struct crec { | |
129 | struct crec *next, *prev, *hash_next; | |
130 | time_t ttd; /* time to die */ | |
131 | struct all_addr addr; | |
132 | unsigned short flags; | |
133 | union { | |
134 | char sname[SMALLDNAME]; | |
135 | union bigname *bname; | |
136 | char *namep; | |
137 | } name; | |
138 | }; | |
139 | ||
140 | #define F_IMMORTAL 1 | |
a84fa1d0 | 141 | #define F_CONFIG 2 |
9e4abcb5 SK |
142 | #define F_REVERSE 4 |
143 | #define F_FORWARD 8 | |
144 | #define F_DHCP 16 | |
145 | #define F_NEG 32 | |
146 | #define F_HOSTS 64 | |
147 | #define F_IPV4 128 | |
148 | #define F_IPV6 256 | |
149 | #define F_BIGNAME 512 | |
150 | #define F_UPSTREAM 1024 | |
151 | #define F_SERVER 2048 | |
152 | #define F_NXDOMAIN 4096 | |
153 | #define F_QUERY 8192 | |
154 | #define F_ADDN 16384 | |
155 | #define F_NOERR 32768 | |
156 | ||
157 | /* struct sockaddr is not large enough to hold any address, | |
158 | and specifically not big enough to hold and IPv6 address. | |
159 | Blech. Roll our own. */ | |
160 | union mysockaddr { | |
161 | struct sockaddr sa; | |
162 | struct sockaddr_in in; | |
163 | #ifdef HAVE_BROKEN_SOCKADDR_IN6 | |
164 | /* early versions of glibc don't include sin6_scope_id in sockaddr_in6 | |
165 | but latest kernels _require_ it to be set. The choice is to have | |
166 | dnsmasq fail to compile on back-level libc or fail to run | |
167 | on latest kernels with IPv6. Or to do this: sorry that it's so gross. */ | |
168 | struct my_sockaddr_in6 { | |
169 | sa_family_t sin6_family; /* AF_INET6 */ | |
170 | uint16_t sin6_port; /* transport layer port # */ | |
171 | uint32_t sin6_flowinfo; /* IPv6 traffic class & flow info */ | |
172 | struct in6_addr sin6_addr; /* IPv6 address */ | |
173 | uint32_t sin6_scope_id; /* set of interfaces for a scope */ | |
174 | } in6; | |
175 | #elif defined(HAVE_IPV6) | |
176 | struct sockaddr_in6 in6; | |
177 | #endif | |
178 | }; | |
179 | ||
180 | #define SERV_FROM_RESOLV 1 /* 1 for servers from resolv, 0 for command line. */ | |
181 | #define SERV_NO_ADDR 2 /* no server, this domain is local only */ | |
182 | #define SERV_LITERAL_ADDRESS 4 /* addr is the answer, not the server */ | |
183 | #define SERV_HAS_SOURCE 8 /* source address specified */ | |
184 | #define SERV_HAS_DOMAIN 16 /* server for one domain only */ | |
185 | #define SERV_FOR_NODOTS 32 /* server for names with no domain part only */ | |
186 | #define SERV_TYPE (SERV_HAS_DOMAIN | SERV_FOR_NODOTS) | |
187 | ||
188 | struct serverfd { | |
189 | int fd; | |
190 | union mysockaddr source_addr; | |
191 | struct serverfd *next; | |
192 | }; | |
193 | ||
194 | struct server { | |
195 | union mysockaddr addr, source_addr; | |
196 | struct serverfd *sfd; /* non-NULL if this server has its own fd bound to | |
197 | a source port */ | |
198 | char *domain; /* set if this server only handles a domain. */ | |
feba5c1d | 199 | int flags, tcpfd; |
9e4abcb5 SK |
200 | struct server *next; |
201 | }; | |
202 | ||
9e4abcb5 SK |
203 | struct irec { |
204 | union mysockaddr addr; | |
9e4abcb5 SK |
205 | struct irec *next; |
206 | }; | |
207 | ||
44a2a316 | 208 | struct listener { |
feba5c1d | 209 | int fd, tcpfd, family; |
44a2a316 SK |
210 | struct listener *next; |
211 | }; | |
212 | ||
9e4abcb5 SK |
213 | /* interface and address parms from command line. */ |
214 | struct iname { | |
215 | char *name; | |
216 | union mysockaddr addr; | |
de37951c | 217 | int isloop, used; |
9e4abcb5 SK |
218 | struct iname *next; |
219 | }; | |
220 | ||
221 | /* resolv-file parms from command-line */ | |
222 | struct resolvc { | |
223 | struct resolvc *next; | |
224 | int is_default; | |
225 | int logged; | |
226 | char *name; | |
227 | }; | |
228 | ||
229 | struct frec { | |
230 | union mysockaddr source; | |
44a2a316 | 231 | struct all_addr dest; |
9e4abcb5 | 232 | struct server *sentto; |
dfa666f2 | 233 | unsigned int iface; |
9e4abcb5 SK |
234 | unsigned short orig_id, new_id; |
235 | int fd; | |
236 | time_t time; | |
237 | struct frec *next; | |
238 | }; | |
239 | ||
240 | struct dhcp_lease { | |
241 | int clid_len; /* length of client identifier */ | |
242 | unsigned char *clid; /* clientid */ | |
243 | char *hostname, *fqdn; /* name from client-hostname option or config */ | |
244 | time_t expires; /* lease expiry */ | |
245 | unsigned char hwaddr[ETHER_ADDR_LEN]; | |
246 | struct in_addr addr; | |
247 | struct dhcp_lease *next; | |
248 | }; | |
249 | ||
a222641c SK |
250 | struct dhcp_netid { |
251 | char *net; | |
252 | struct dhcp_netid *next; | |
253 | }; | |
254 | ||
9e4abcb5 | 255 | struct dhcp_config { |
33820b7e | 256 | unsigned int flags; |
9e4abcb5 SK |
257 | int clid_len; /* length of client identifier */ |
258 | unsigned char *clid; /* clientid */ | |
259 | unsigned char hwaddr[ETHER_ADDR_LEN]; | |
a222641c SK |
260 | char *hostname; |
261 | struct dhcp_netid netid; | |
9e4abcb5 SK |
262 | struct in_addr addr; |
263 | unsigned int lease_time; | |
264 | struct dhcp_config *next; | |
265 | }; | |
266 | ||
33820b7e SK |
267 | #define CONFIG_DISABLE 1 |
268 | #define CONFIG_CLID 2 | |
269 | #define CONFIG_HWADDR 4 | |
270 | #define CONFIG_TIME 8 | |
271 | #define CONFIG_NAME 16 | |
272 | #define CONFIG_ADDR 32 | |
273 | #define CONFIG_NETID 64 | |
a84fa1d0 | 274 | #define CONFIG_NOCLID 128 |
33820b7e | 275 | |
9e4abcb5 | 276 | struct dhcp_opt { |
1ab84e2f | 277 | int opt, len, is_addr; |
9e4abcb5 | 278 | unsigned char *val; |
44a2a316 | 279 | char *netid; |
9e4abcb5 | 280 | struct dhcp_opt *next; |
a84fa1d0 SK |
281 | }; |
282 | ||
283 | struct dhcp_vendor { | |
a222641c SK |
284 | int len, is_vendor, used; |
285 | char *data; | |
286 | struct dhcp_netid netid; | |
a84fa1d0 SK |
287 | struct dhcp_vendor *next; |
288 | }; | |
9e4abcb5 SK |
289 | |
290 | struct dhcp_context { | |
feba5c1d | 291 | unsigned int lease_time, addr_epoch; |
44a2a316 | 292 | struct in_addr netmask, broadcast; |
a84fa1d0 | 293 | struct in_addr start, end; /* range of available addresses */ |
a222641c | 294 | struct dhcp_netid netid; |
9e4abcb5 SK |
295 | struct dhcp_context *next; |
296 | }; | |
297 | ||
298 | typedef unsigned char u8; | |
299 | typedef unsigned short u16; | |
300 | typedef unsigned int u32; | |
301 | ||
302 | ||
303 | struct udp_dhcp_packet { | |
304 | struct ip ip; | |
305 | struct udphdr { | |
306 | u16 uh_sport; /* source port */ | |
307 | u16 uh_dport; /* destination port */ | |
308 | u16 uh_ulen; /* udp length */ | |
309 | u16 uh_sum; /* udp checksum */ | |
310 | } udp; | |
311 | struct dhcp_packet { | |
312 | u8 op, htype, hlen, hops; | |
313 | u32 xid; | |
314 | u16 secs, flags; | |
315 | struct in_addr ciaddr, yiaddr, siaddr, giaddr; | |
316 | u8 chaddr[16], sname[64], file[128]; | |
317 | u32 cookie; | |
318 | u8 options[308]; | |
319 | } data; | |
320 | }; | |
321 | ||
322 | ||
323 | /* cache.c */ | |
324 | void cache_init(int cachesize, int log); | |
c1bb8504 | 325 | void log_query(unsigned short flags, char *name, struct all_addr *addr, unsigned short type); |
9e4abcb5 SK |
326 | struct crec *cache_find_by_addr(struct crec *crecp, |
327 | struct all_addr *addr, time_t now, | |
328 | unsigned short prot); | |
329 | struct crec *cache_find_by_name(struct crec *crecp, | |
330 | char *name, time_t now, unsigned short prot); | |
331 | void cache_end_insert(void); | |
332 | void cache_start_insert(void); | |
333 | void cache_insert(char *name, struct all_addr *addr, | |
334 | time_t now, unsigned long ttl, unsigned short flags); | |
335 | void cache_reload(int opts, char *buff, char *domain_suffix, char *addn_hosts); | |
c1bb8504 | 336 | void cache_add_dhcp_entry(char *host_name, struct in_addr *host_address, time_t ttd); |
9e4abcb5 SK |
337 | void cache_unhash_dhcp(void); |
338 | void dump_cache(int debug, int size); | |
339 | char *cache_get_name(struct crec *crecp); | |
340 | ||
341 | /* rfc1035.c */ | |
c1bb8504 SK |
342 | unsigned short extract_request(HEADER *header, unsigned int qlen, |
343 | char *name, unsigned short *typep); | |
9e4abcb5 SK |
344 | int setup_reply(HEADER *header, unsigned int qlen, |
345 | struct all_addr *addrp, unsigned short flags, | |
346 | unsigned long local_ttl); | |
1cff166d SK |
347 | void extract_addresses(HEADER *header, unsigned int qlen, char *namebuff, |
348 | time_t now, struct doctor *doctors); | |
9e4abcb5 | 349 | void extract_neg_addrs(HEADER *header, unsigned int qlen, char *namebuff, time_t now); |
de37951c | 350 | int answer_request(HEADER *header, char *limit, unsigned int qlen, struct mx_record *mxnames, |
9e4abcb5 | 351 | char *mxtarget, unsigned int options, time_t now, unsigned long local_ttl, |
feba5c1d | 352 | char *namebuff, unsigned short edns_pcktsz); |
9e4abcb5 SK |
353 | int check_for_bogus_wildcard(HEADER *header, unsigned int qlen, char *name, |
354 | struct bogus_addr *addr, time_t now); | |
feba5c1d | 355 | unsigned char *find_pseudoheader(HEADER *header, unsigned int plen); |
9e4abcb5 SK |
356 | |
357 | /* util.c */ | |
358 | unsigned short rand16(void); | |
359 | int legal_char(char c); | |
360 | int canonicalise(char *s); | |
a222641c | 361 | int atoi_check(char *a, int *res); |
9e4abcb5 SK |
362 | void die(char *message, char *arg1); |
363 | void complain(char *message, char *arg1); | |
364 | void *safe_malloc(int size); | |
365 | char *safe_string_alloc(char *cp); | |
366 | int sa_len(union mysockaddr *addr); | |
367 | int sockaddr_isequal(union mysockaddr *s1, union mysockaddr *s2); | |
368 | int hostname_isequal(unsigned char *a, unsigned char *b); | |
44a2a316 | 369 | time_t dnsmasq_time(int fd); |
a84fa1d0 SK |
370 | int is_same_net(struct in_addr a, struct in_addr b, struct in_addr mask); |
371 | ||
9e4abcb5 SK |
372 | /* option.c */ |
373 | unsigned int read_opts(int argc, char **argv, char *buff, struct resolvc **resolv_file, | |
de37951c | 374 | struct mx_record **mxnames, char **mxtarget, char **lease_file, |
9e4abcb5 SK |
375 | char **username, char **groupname, |
376 | char **domain_suffix, char **runfile, | |
377 | struct iname **if_names, struct iname **if_addrs, struct iname **if_except, | |
378 | struct bogus_addr **bogus_addr, struct server **serv_addrs, int *cachesize, | |
379 | int *port, int *query_port, unsigned long *local_ttl, char **addn_hosts, | |
a84fa1d0 SK |
380 | struct dhcp_context **dhcp, struct dhcp_config **dhcp_conf, |
381 | struct dhcp_opt **opts, struct dhcp_vendor **dhcp_vendors, | |
44a2a316 | 382 | char **dhcp_file, char **dhcp_sname, struct in_addr *dhcp_next_server, |
feba5c1d SK |
383 | int *maxleases, unsigned int *min_leasetime, struct doctor **doctors, |
384 | unsigned short *edns_pktsz); | |
9e4abcb5 SK |
385 | |
386 | /* forward.c */ | |
387 | void forward_init(int first); | |
de37951c SK |
388 | struct server *reply_query(struct serverfd *sfd, int options, char *packet, time_t now, |
389 | char *dnamebuff, struct server *servers, struct server *last_server, | |
feba5c1d SK |
390 | struct bogus_addr *bogus_nxdomain, |
391 | struct doctor *doctors, unsigned short edns_pcktsz); | |
9e4abcb5 | 392 | |
de37951c | 393 | struct server *receive_query(struct listener *listen, char *packet, struct mx_record *mxnames, |
44a2a316 SK |
394 | char *mxtarget, unsigned int options, time_t now, |
395 | unsigned long local_ttl, char *namebuff, | |
396 | struct iname *names, struct iname *addrs, struct iname *except, | |
feba5c1d SK |
397 | struct server *last_server, struct server *servers, unsigned short edns_pcktsz); |
398 | ||
399 | char *tcp_request(int confd, struct mx_record *mxnames, | |
400 | char *mxtarget, unsigned int options, time_t now, | |
401 | unsigned long local_ttl, char *namebuff, | |
402 | struct server *last_server, struct server *servers, | |
403 | struct bogus_addr *bogus_nxdomain, struct doctor *doctors, | |
404 | unsigned short edns_pcktsz); | |
9e4abcb5 | 405 | /* network.c */ |
feba5c1d | 406 | struct serverfd *allocate_sfd(union mysockaddr *addr, struct serverfd **sfds); |
9e4abcb5 SK |
407 | struct server *reload_servers(char *fname, char *buff, struct server *servers, int query_port); |
408 | struct server *check_servers(struct server *new, struct irec *interfaces, struct serverfd **sfds); | |
a84fa1d0 SK |
409 | struct irec *enumerate_interfaces(struct iname **names, |
410 | struct iname **addrs, | |
44a2a316 SK |
411 | struct iname *except, |
412 | int port); | |
413 | struct listener *create_wildcard_listeners(int port); | |
feba5c1d | 414 | struct listener *create_bound_listeners(struct irec *interfaces, int port); |
9e4abcb5 | 415 | /* dhcp.c */ |
dfa666f2 | 416 | void dhcp_init(int *fdp, int* rfdp, struct dhcp_config *configs); |
44a2a316 SK |
417 | void dhcp_packet(struct dhcp_context *contexts, char *packet, |
418 | struct dhcp_opt *dhcp_opts, struct dhcp_config *dhcp_configs, | |
a84fa1d0 | 419 | struct dhcp_vendor *vendors, |
9e4abcb5 | 420 | time_t now, char *namebuff, char *domain_suffix, |
44a2a316 SK |
421 | char *dhcp_file, char *dhcp_sname, |
422 | struct in_addr dhcp_next_server, int dhcp_fd, int raw_fd, | |
423 | struct iname *names, struct iname *addrs, struct iname *except); | |
9e4abcb5 SK |
424 | int address_available(struct dhcp_context *context, struct in_addr addr); |
425 | int address_allocate(struct dhcp_context *context, struct dhcp_config *configs, | |
a84fa1d0 | 426 | struct in_addr *addrp, unsigned char *hwaddr); |
9e4abcb5 SK |
427 | struct dhcp_config *find_config(struct dhcp_config *configs, |
428 | struct dhcp_context *context, | |
429 | unsigned char *clid, int clid_len, | |
430 | unsigned char *hwaddr, char *hostname); | |
44a2a316 SK |
431 | struct dhcp_config *read_ethers(struct dhcp_config *configs, char *buff); |
432 | void dhcp_update_configs(struct dhcp_config *configs); | |
433 | struct dhcp_config *dhcp_read_ethers(struct dhcp_config *configs, char *buff); | |
dfa666f2 | 434 | struct dhcp_config *config_find_by_address(struct dhcp_config *configs, struct in_addr addr); |
9e4abcb5 | 435 | /* lease.c */ |
44a2a316 SK |
436 | void lease_update_file(int force, time_t now); |
437 | void lease_update_dns(void); | |
9e4abcb5 | 438 | int lease_init(char *lease_file, char *domain, char *buff, |
44a2a316 | 439 | char *buff2, time_t now, int maxleases); |
9e4abcb5 SK |
440 | struct dhcp_lease *lease_allocate(unsigned char *clid, int clid_len, struct in_addr addr); |
441 | void lease_set_hwaddr(struct dhcp_lease *lease, unsigned char *hwaddr); | |
442 | void lease_set_hostname(struct dhcp_lease *lease, char *name, char *suffix); | |
443 | void lease_set_expires(struct dhcp_lease *lease, time_t exp); | |
444 | struct dhcp_lease *lease_find_by_client(unsigned char *clid, int clid_len); | |
445 | struct dhcp_lease *lease_find_by_addr(struct in_addr addr); | |
446 | void lease_prune(struct dhcp_lease *target, time_t now); | |
44a2a316 | 447 | void lease_update_from_configs(struct dhcp_config *dhcp_configs, char *domain); |
a84fa1d0 | 448 | |
9e4abcb5 | 449 | /* rfc2131.c */ |
44a2a316 SK |
450 | int dhcp_reply(struct dhcp_context *context, |
451 | struct in_addr iface_addr, | |
452 | char *iface_name, | |
453 | int iface_mtu, | |
454 | struct udp_dhcp_packet *rawpacket, | |
9e4abcb5 | 455 | unsigned int sz, time_t now, char *namebuff, |
44a2a316 | 456 | struct dhcp_opt *dhcp_opts, struct dhcp_config *dhcp_configs, |
a84fa1d0 | 457 | struct dhcp_vendor *vendors, |
9e4abcb5 | 458 | char *domain_suffix, char *dhcp_file, char *dhcp_sname, |
8a911ccc | 459 | struct in_addr dhcp_next_server, struct in_addr router); |
44a2a316 | 460 | |
33820b7e SK |
461 | /* isc.c */ |
462 | #ifdef HAVE_ISC_READER | |
463 | void load_dhcp(char *file, char *suffix, time_t now, char *hostname); | |
464 | #endif | |
feba5c1d | 465 |