29 static const char copyright[] =
30 "Copyright 2004-2016 Internet Systems Consortium.";
31 static const char arr [] =
"All rights reserved.";
32 static const char message [] =
"Internet Systems Consortium DHCP Server";
33 static const char url [] =
34 "For info, please visit https://www.isc.org/software/dhcp/";
42 #include <sys/types.h> 46 #if defined (PARANOIA) 47 # include <sys/types.h> 51 # define group real_group 60 #ifdef HAVE_LIBSYSTEMD 61 #include <systemd/sd-daemon.h> 67 #if defined (NSUPDATE) 71 char std_nsupdate [] =
" \n\ 72 option server.ddns-hostname = \n\ 73 pick (option fqdn.hostname, option host-name, config-option host-name); \n\ 74 option server.ddns-domainname = config-option domain-name; \n\ 75 option server.ddns-rev-domainname = \"in-addr.arpa.\";";
104 return ISC_R_SUCCESS;
110 return ISC_R_SUCCESS;
113 static void omapi_listener_start (
void *foo)
121 if (result != ISC_R_SUCCESS)
122 log_fatal (
"Can't allocate new generic object: %s",
123 isc_result_totext (result));
126 if (result == ISC_R_SUCCESS && omapi_key)
128 (listener, verify_addr, verify_auth);
129 if (result != ISC_R_SUCCESS) {
130 log_error (
"Can't start OMAPI protocol: %s",
131 isc_result_totext (result));
132 tv.tv_sec =
cur_tv.tv_sec + 5;
133 tv.tv_usec =
cur_tv.tv_usec;
156 static char use_noarg[] =
"No argument for command: %s ";
159 usage(
const char *sfmt,
const char *sarg) {
165 #ifdef PRINT_SPECIFIC_CL_ERRORS 170 log_fatal(
"Usage: %s [-p <UDP port #>] [-f] [-d] [-q] [-t|-T]\n" 173 " [-4|-6] [-4o6 <port>]\n" 174 " [-cf config-file] [-lf lease-file]\n" 176 " [-4|-6] [-cf config-file] [-lf lease-file]\n" 179 " [-cf config-file] [-lf lease-file]\n" 183 " [-user user] [-group group] [-chroot dir]\n" 186 " [-tf trace-output-file]\n" 187 " [-play trace-input-file]\n" 189 " [-pf pid-file] [--no-pid] [-s server]\n" 198 #if defined (PARANOIA) 200 static void setup_chroot (
char *chroot_dir) {
202 log_fatal (
"you must be root to use chroot");
204 if (chroot(chroot_dir)) {
205 log_fatal (
"chroot(\"%s\"): %m", chroot_dir);
228 char *server = (
char *)0;
232 #if defined (NSUPDATE) 236 int no_dhcpd_conf = 0;
238 int no_dhcpd_pid = 0;
240 int local_family_set = 0;
242 u_int16_t dhcp4o6_port = 0;
245 #if defined (TRACING) 246 char *traceinfile = (
char *)0;
247 char *traceoutfile = (
char *)0;
250 #if defined (PARANOIA) 253 char *set_chroot = 0;
265 fd = open(
"/dev/null", O_RDWR | O_CLOEXEC);
267 fd = open(
"/dev/null", O_RDWR | O_CLOEXEC);
269 fd = open(
"/dev/null", O_RDWR | O_CLOEXEC);
278 if (status != ISC_R_SUCCESS)
279 log_fatal(
"Can't initialize context: %s",
280 isc_result_totext(status));
287 if (result != ISC_R_SUCCESS)
289 isc_result_totext (result));
298 openlog (isc_file_basename(
progname),
301 for (i = 1; i < argc; i++) {
302 if (!strcmp (argv [i],
"-p")) {
304 usage(use_noarg, argv[i-1]);
306 log_debug (
"binding to user-specified port %d",
308 }
else if (!strcmp (argv [i],
"-f")) {
312 }
else if (!strcmp (argv [i],
"-d")) {
317 }
else if (!strcmp (argv [i],
"-s")) {
319 usage(use_noarg, argv[i-1]);
321 #if defined (PARANOIA) 322 }
else if (!strcmp (argv [i],
"-user")) {
324 usage(use_noarg, argv[i-1]);
326 }
else if (!strcmp (argv [i],
"-group")) {
328 usage(use_noarg, argv[i-1]);
329 set_group = argv [i];
330 }
else if (!strcmp (argv [i],
"-chroot")) {
332 usage(use_noarg, argv[i-1]);
333 set_chroot = argv [i];
335 }
else if (!strcmp (argv [i],
"-cf")) {
337 usage(use_noarg, argv[i-1]);
340 }
else if (!strcmp (argv [i],
"-lf")) {
342 usage(use_noarg, argv[i-1]);
345 }
else if (!strcmp (argv [i],
"-pf")) {
347 usage(use_noarg, argv[i-1]);
350 }
else if (!strcmp(argv[i],
"--no-pid")) {
352 }
else if (!strcmp (argv [i],
"-t")) {
359 }
else if (!strcmp (argv [i],
"-T")) {
367 }
else if (!strcmp (argv [i],
"-q")) {
371 }
else if (!strcmp(argv[i],
"-4")) {
373 log_fatal(
"Server cannot run in both IPv4 and " 374 "IPv6 mode at the same time.");
377 local_family_set = 1;
378 }
else if (!strcmp(argv[i],
"-6")) {
380 log_fatal(
"Server cannot run in both IPv4 and " 381 "IPv6 mode at the same time.");
384 local_family_set = 1;
386 }
else if (!strcmp(argv[i],
"-4o6")) {
388 usage(use_noarg, argv[i-1]);
391 log_debug(
"DHCPv4 over DHCPv6 over ::1 port %d and %d",
393 ntohs(dhcp4o6_port) + 1);
397 }
else if (!strcmp (argv [i],
"--version")) {
398 const char vstring[] =
"isc-dhcpd-";
406 #if defined (TRACING) 407 }
else if (!strcmp (argv [i],
"-tf")) {
409 usage(use_noarg, argv[i-1]);
410 traceoutfile = argv [i];
411 }
else if (!strcmp (argv [i],
"-play")) {
413 usage(use_noarg, argv[i-1]);
414 traceinfile = argv [i];
417 }
else if (argv [i][0] ==
'-') {
418 usage(
"Unknown command %s", argv[i]);
422 if (strlen(argv[i]) >=
sizeof(tmp->
name))
425 argv[i], (
long)strlen(argv[i]));
426 result = interface_allocate (&tmp,
MDL);
427 if (result != ISC_R_SUCCESS)
428 log_fatal (
"Insufficient memory to %s %s: %s",
429 "record interface", argv [i],
430 isc_result_totext (result));
431 strcpy (tmp ->
name, argv [i]);
433 interface_reference (&tmp ->
next,
442 #if defined(DHCPv6) && defined(DHCP4o6) 444 if (!local_family_set)
445 log_error(
"please specify the address family " 446 "with DHPv4 over DHCPv6 [-4|-6].");
448 log_fatal(
"DHCPv4 server in DHPv4 over DHCPv6 " 449 "mode with command line specified " 454 if (!no_dhcpd_conf && (s = getenv (
"PATH_DHCPD_CONF"))) {
462 if ((s = getenv (
"PATH_DHCPD6_DB")))
468 if ((s = getenv (
"PATH_DHCPD6_PID")))
476 if (!no_dhcpd_db && (s = getenv (
"PATH_DHCPD_DB"))) {
479 if (!no_dhcpd_pid && (s = getenv (
"PATH_DHCPD_PID"))) {
493 log_fatal(
"Failed to get realpath for %s: %s", path,
506 #if defined (TRACING) 510 if (result != ISC_R_SUCCESS)
512 isc_result_totext (result));
519 #if defined (NSUPDATE) 524 #if defined (PARANOIA) 527 struct passwd *tmp_pwd;
530 log_fatal (
"you must be root to set user");
532 if (!(tmp_pwd = getpwnam(set_user)))
533 log_fatal (
"no such user: %s", set_user);
544 #define group real_group 545 struct group *tmp_grp;
548 log_fatal (
"you must be root to set group");
550 if (!(tmp_grp = getgrnam(set_group)))
551 log_fatal (
"no such group: %s", set_group);
557 # if defined (EARLY_CHROOT) 558 if (set_chroot) setup_chroot (set_chroot);
565 if ((s = getenv (
"DHCPD_PORT"))) {
567 log_debug (
"binding to environment-specified port %d",
571 ent = getservbyname(
"dhcp",
"udp");
579 ent = getservbyname(
"dhcpv6-server",
"udp");
596 ent = getservbyname(
"dhcpv6-client",
"udp");
606 log_fatal(
"You can only specify address to send " 607 "replies to when running an IPv4 server.");
611 he = gethostbyname (server);
614 he -> h_addr_list [0],
624 gettimeofday(&
cur_tv, NULL);
633 #if defined (LDAP_CONFIGURATION) 635 #if defined (LDAP_USE_SSL) 643 log_fatal (
"Can't allocate root group!");
654 #if defined (NSUPDATE) 657 status =
new_parse(&parse, -1, std_nsupdate,
sizeof(std_nsupdate) - 1,
658 "standard name service update routine", 0);
659 if (status != ISC_R_SUCCESS)
660 log_fatal (
"can't begin parsing name service updater!");
667 log_fatal(
"can't parse standard name service updater!");
674 if (!cftest && !lftest)
677 #if defined (TRACING) 681 log_error (
"** You must specify a lease file with -lf.");
682 log_error (
" Dhcpd will not overwrite your default");
683 log_fatal (
" lease file when playing back a trace. **");
687 #if defined (DEBUG_MEMORY_LEAKAGE) && \ 688 defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT) 700 log_fatal(
"Out of memory creating hash for active IA_NA.");
703 log_fatal(
"Out of memory creating hash for active IA_TA.");
706 log_fatal(
"Out of memory creating hash for active IA_PD.");
712 log_fatal (
"Configuration file errors encountered -- exiting");
716 #if defined(DHCPv6) && defined(DHCP4o6) 719 log_fatal(
"DHCPv4 server in DHPv4 over DHCPv6 " 720 "mode with config file specified " 725 #if defined (PARANOIA) && !defined (EARLY_CHROOT) 726 if (set_chroot) setup_chroot (set_chroot);
735 if (cftest && !lftest)
748 status = read(i, pbuf, (
sizeof pbuf) - 1);
759 (pid != getpid() && kill(pid, 0) == 0))
761 "DHCP server running.");
775 #if defined(DHCPv6) && defined(DHCP4o6) 782 if (real_family == AF_INET)
817 &ip -> hw_address.hbuf [ip -> hw_address.hlen -
818 sizeof seed],
sizeof seed);
822 #if defined (TRACING) 841 log_fatal(
"Unable to set server identifier.");
846 dhcp4o6_setup(dhcp4o6_port);
853 if ((pid = fork ()) < 0)
865 i = open(
path_dhcpd_pid, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC, 0644);
867 sprintf(pbuf,
"%d\n", (
int) getpid());
871 log_error(
"Can't create PID file %s: %m.",
876 #if defined (PARANOIA) 880 if (setgroups (0, (
void *)0))
909 (void) open(
"/dev/null", O_RDWR | O_CLOEXEC);
910 (void) open(
"/dev/null", O_RDWR | O_CLOEXEC);
911 (void) open(
"/dev/null", O_RDWR | O_CLOEXEC);
918 #if defined (DEBUG_MEMORY_LEAKAGE) || defined (DEBUG_MALLOC_POOL) || \ 919 defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT) 920 dmalloc_cutoff_generation = dmalloc_generation;
921 dmalloc_longterm = dmalloc_outstanding;
922 dmalloc_outstanding = 0;
928 #if defined(ENABLE_GENTLE_SHUTDOWN) 936 log_info(
"Server starting service.");
938 #ifdef HAVE_LIBSYSTEMD 940 sd_notifyf(0,
"READY=1\n" 941 "STATUS=Dispatching packets...\n" 943 (
unsigned long) getpid());
965 #if defined (NSUPDATE) 966 struct in_addr local4, *local4_ptr = NULL;
967 struct in6_addr local6, *local6_ptr = NULL;
976 memset(&db, 0,
sizeof db);
983 log_fatal(
"no memory for lease db filename.");
996 log_fatal(
"no memory for pid filename.");
1016 log_fatal(
"no memory for lease db filename.");
1030 log_fatal(
"no memory for pid filename.");
1047 log_fatal(
"invalid omapi port data length");
1057 log_fatal(
"no memory for OMAPI key filename.");
1063 if (result != ISC_R_SUCCESS)
1065 s, isc_result_totext (result));
1075 log_fatal(
"invalid local port data length");
1086 log_fatal(
"invalid remote port data length");
1098 log_fatal(
"invalid broadcast address data length");
1109 log_fatal(
"invalid local address data length");
1126 #if defined (NSUPDATE) 1129 log_fatal(
"ddns-update-style ad_hoc no longer supported");
1137 memcpy(&local4, db.
data, 4);
1138 local4_ptr = &local4;
1149 memcpy(&local6, db.
data, 16);
1150 local6_ptr = &local6;
1158 log_fatal(
"Unable to complete ddns initialization");
1163 log_fatal(
"Support for ddns-update-style not compiled in");
1179 openlog(isc_file_basename(
progname),
1197 #if defined(DELAYED_ACK) 1205 log_fatal(
"invalid max delayed ACK count ");
1217 log_fatal(
"invalid max ack delay configuration");
1232 log_error(
"Not using fsync() to flush lease writes");
1239 log_info(
"Setting server-id-check true");
1256 #if defined (BINARY_LEASES) 1258 log_info(
"Source compiled to use binary-leases");
1270 omapi_listener_start (0);
1273 #if defined (FAILOVER_PROTOCOL) 1298 lp = (
struct lease *)0;
1300 log_debug (
"unexpected ICMP Echo Reply from %s",
1306 #if defined (FAILOVER_PROTOCOL) 1308 !lp ->
pool -> failover_peer)
1310 log_debug (
"ICMP Echo Reply for %s late or spurious.",
1316 log_debug (
"ICMP Echo reply while lease %s valid.",
1330 lease_dereference (&lp,
MDL);
1336 struct lease *lp = vlp;
1338 #if defined (DEBUG_MEMORY_LEAKAGE) 1339 unsigned long previous_outstanding = dmalloc_outstanding;
1345 #if defined (DEBUG_MEMORY_LEAKAGE) 1346 log_info (
"generation %ld: %ld new, %ld outstanding, %ld long-term",
1348 dmalloc_outstanding - previous_outstanding,
1349 dmalloc_outstanding, dmalloc_longterm);
1351 #if defined (DEBUG_MEMORY_LEAKAGE) 1352 dmalloc_dump_outstanding ();
1360 isc_result_t status;
1365 const char *fnn =
"fallback-net";
1367 if (status != ISC_R_SUCCESS)
1368 log_fatal (
"No memory for shared subnet: %s",
1369 isc_result_totext (status));
1372 log_fatal(
"no memory for shared network");
1379 subnet = (
struct subnet *)0;
1387 log_error (
"Multiple interfaces match the %s: %s %s",
1389 subnet ->
interface -> name, ip -> name);
1394 log_fatal (
"Interface %s matches multiple shared %s",
1395 ip -> name,
"networks");
1398 shared_network_reference
1405 log_error (
"Multiple interfaces match the %s: %s %s",
1406 "same shared network",
1407 share ->
interface -> name, ip -> name);
1409 subnet_dereference (&subnet,
MDL);
1414 static TIME shutdown_time;
1415 static int omapi_connection_count;
1426 return ISC_R_SUCCESS;
1436 omapi_connection_count++;
1439 return ISC_R_SUCCESS;
1447 return ISC_R_SUCCESS;
1449 return ISC_R_SUCCESS;
1452 static isc_result_t dhcp_io_shutdown_countdown (
void *vlp)
1454 #if defined (FAILOVER_PROTOCOL) 1455 dhcp_failover_state_t *state;
1456 int failover_connection_count = 0;
1465 omapi_connection_count = 0;
1472 omapi_connection_count == 0) {
1495 #if defined (FAILOVER_PROTOCOL) 1499 if (state -> me.state ==
normal) {
1501 failover_connection_count++;
1505 failover_connection_count++;
1512 if (state -> link_to_peer)
1513 dhcp_failover_link_dereference (&state -> link_to_peer,
1518 #if defined (DEBUG_MEMORY_LEAKAGE) && \ 1519 defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT) 1529 #if defined (DEBUG_MEMORY_LEAKAGE) && \ 1530 defined (DEBUG_MEMORY_LEAKAGE_ON_EXIT) 1541 !failover_connection_count &&
1548 tv.tv_sec =
cur_tv.tv_sec + 1;
1549 tv.tv_usec =
cur_tv.tv_usec;
1551 (
void (*)(
void *))dhcp_io_shutdown_countdown, 0, 0, 0);
1552 return ISC_R_SUCCESS;
1564 return ISC_R_SUCCESS;
1570 dhcp_io_shutdown_countdown (0);
1571 return ISC_R_SUCCESS;
1581 tv.tv_sec =
cur_tv.tv_sec;
1582 tv.tv_usec =
cur_tv.tv_usec + 1;
1584 (
void (*)(
void *))dhcp_io_shutdown_countdown, 0, 0, 0);
1585 return ISC_R_SUCCESS;
void do_packet6(struct interface_info *, const char *, int, int, const struct iaddr *, isc_boolean_t)
const char * path_dhcpd_db
void initialize_server_option_spaces(void)
void(* dhcpv6_packet_handler)(struct interface_info *, const char *, int, int, const struct iaddr *, isc_boolean_t)
int dhcpd_interface_setup_hook(struct interface_info *ip, struct iaddr *ia)
void mark_hosts_unavailable(void)
isc_result_t omapi_protocol_listen(omapi_object_t *, unsigned, int)
void add_enumeration(struct enumeration *enumeration)
void parse_trace_setup(void)
struct binding_scope * global_scope
omapi_object_type_t * omapi_type_connection
#define SV_DDNS_UPDATE_STYLE
trace_type_t * trace_type_register(const char *, void *, void(*)(trace_type_t *, unsigned, char *), void(*)(trace_type_t *), const char *, int)
const char * piaddr(const struct iaddr addr)
isc_result_t omapi_io_state_foreach(isc_result_t(*func)(omapi_object_t *, void *), void *p)
calls a given function on every object
isc_boolean_t server_duid_isset(void)
isc_result_t end_parse(struct parse **cfile)
void lease_ping_timeout(void *vlp)
void(* bootp_packet_handler)(struct interface_info *, struct dhcp_packet *, unsigned, unsigned int, struct iaddr, struct hardware *)
void * dmalloc(unsigned, const char *, int)
struct lease_state * state
struct universe server_universe
#define SV_DONT_USE_FSYNC
void cancel_timeout(void(*)(void *) where, void *what)
void icmp_startup(int routep, void *handler)
#define DHCP_R_INVALIDARG
#define DDNS_UPDATE_STYLE_AD_HOC
int int int log_debug(const char *,...) __attribute__((__format__(__printf__
#define SV_DDNS_LOCAL_ADDRESS4
isc_result_t dhcp_interface_remove(omapi_object_t *lp, omapi_object_t *id)
isc_result_t omapi_auth_key_lookup_name(omapi_auth_key_t **, const char *)
#define DHCP_CONTEXT_PRE_DB
isc_boolean_t no_pid_file
#define SV_LEASE_FILE_NAME
void data_string_forget(struct data_string *data, const char *file, int line)
struct group * root_group
int log_error(const char *,...) __attribute__((__format__(__printf__
void add_timeout(struct timeval *when, void(*)(void *) where, void *what, tvref_t ref, tvunref_t unref)
#define DHCP_R_INVALIDKEY
void omapi_print_dmalloc_usage_by_caller(void)
void mark_interfaces_unavailable(void)
void do_packet(struct interface_info *interface, struct dhcp_packet *packet, unsigned len, unsigned int from_port, struct iaddr from, struct hardware *hfrom)
void log_fatal(const char *,...) __attribute__((__format__(__printf__
#define SV_SERVER_ID_CHECK
#define DHCP_CONTEXT_POST_DB
struct executable_statement * statements
void interface_trace_setup(void)
void free_lease_state(struct lease_state *, const char *, int)
omapi_object_type_t * omapi_type_listener
int server_identifier_matched
omapi_object_type_t * omapi_type_protocol
u_int16_t validate_port(char *port)
void dhcp_signal_handler(int signal)
void postconf_initialization(int quiet)
int find_subnet(struct subnet **sp, struct iaddr addr, const char *file, int line)
void execute_statements_in_scope(struct binding_value **result, struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *out_options, struct binding_scope **scope, struct group *group, struct group *limiting_group, struct on_star *on_star)
isc_result_t readconf(void)
#define FAILOVER_PROTOCOL
int option_state_allocate(struct option_state **ptr, const char *file, int line)
isc_result_t dhcp_context_create(int flags, struct in_addr *local4, struct in6_addr *local6)
int evaluate_option_cache(struct data_string *result, struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *cfg_options, struct binding_scope **scope, struct option_cache *oc, const char *file, int line)
isc_result_t dhcp_failover_set_state(dhcp_failover_state_t *, enum failover_state)
void trace_seed_stop(trace_type_t *)
#define DHCPD_LOG_FACILITY
void mark_phosts_unavailable(void)
struct iaddr interface_address
void abandon_lease(struct lease *, const char *)
isc_result_t dhcp_set_control_state(control_object_state_t oldstate, control_object_state_t newstate)
int group_allocate(struct group **ptr, const char *file, int line)
isc_result_t omapi_listener_destroy(omapi_object_t *, const char *, int)
int write_server_duid(void)
int(* group_write_hook)(struct group_object *)
isc_result_t omapi_object_dereference(omapi_object_t **, const char *, int)
isc_result_t omapi_generic_new(omapi_object_t **, const char *, int)
omapi_object_type_t * omapi_type_protocol_listener
u_int32_t getUShort(const unsigned char *)
void dfree(void *, const char *, int)
omapi_object_type_t * dhcp_type_interface
void trace_file_replay(const char *)
#define SV_DHCPV6_PID_FILE_NAME
dhcp_failover_state_t * failover_states
struct option_cache * lookup_option(struct universe *universe, struct option_state *options, unsigned code)
void dhcp_db_objects_setup(void)
struct in_addr limited_broadcast
int int log_info(const char *,...) __attribute__((__format__(__printf__
int main(int argc, char **argv)
void trace_seed_stash(trace_type_t *, unsigned)
u_int16_t validate_port_pair(char *port)
struct interface_info * interfaces
u_int32_t getULong(const unsigned char *)
struct shared_network * shared_network
void db_startup(int testp)
void lease_pinged(struct iaddr from, u_int8_t *packet, int length)
dhcp_control_object_t * dhcp_control_object
int(* dhcp_interface_setup_hook)(struct interface_info *, struct iaddr *)
isc_result_t dhcp_io_shutdown(omapi_object_t *obj, void *foo)
#define DEFAULT_HASH_SIZE
void dhcp_failover_startup(void)
int quiet_interface_discovery
int option_state_dereference(struct option_state **ptr, const char *file, int line)
void initialize_common_option_spaces()
void trace_ddns_init(void)
struct interface_info * next
int evaluate_boolean_option_cache(int *ignorep, struct packet *packet, struct lease *lease, struct client_state *client_state, struct option_state *in_options, struct option_state *cfg_options, struct binding_scope **scope, struct option_cache *oc, const char *file, int line)
void schedule_all_ipv6_lease_timeouts()
void report_jumbo_ranges()
isc_result_t trace_begin(const char *, const char *, int)
isc_result_t set_server_duid_from_option(void)
isc_result_t omapi_protocol_configure_security(omapi_object_t *, isc_result_t(*)(omapi_object_t *, omapi_addr_t *), isc_result_t(*)(omapi_object_t *, omapi_auth_key_t *))
#define DISCOVER_SERVER46
#define DDNS_UPDATE_STYLE_NONE
isc_result_t trace_init(void(*set_time)(time_t), const char *, int)
#define SV_DHCPV6_LEASE_FILE_NAME
struct in_addr local_address
int dhcp_max_agent_option_packet_length
#define SV_DDNS_LOCAL_ADDRESS6
#define SV_PREFIX_LEN_MODE
void classification_setup(void)
isc_result_t omapi_set_int_value(omapi_object_t *, omapi_object_t *, const char *, int)
#define SV_LIMITED_BROADCAST_ADDRESS
int group_writer(struct group_object *)
const char * path_dhcpd_conf
void dhcp_reply(struct lease *)
struct enumeration syslog_enum
int parse_executable_statements(struct executable_statement **statements, struct parse *cfile, int *lose, enum expression_context case_context)
isc_result_t omapi_disconnect(omapi_object_t *, int)
const unsigned char * data
void dhcp_common_objects_setup(void)
isc_result_t generate_new_server_duid(void)
enum dhcp_shutdown_state shutdown_state
struct iaddr server_identifier
struct enumeration prefix_length_modes
const char * path_dhcpd_pid
void trace_seed_input(trace_type_t *, unsigned, char *)
int find_lease_by_ip_addr(struct lease **, struct iaddr, const char *, int)
struct enumeration ddns_styles
void discover_interfaces(int state)
struct interface_info * interface
isc_result_t new_parse(struct parse **cfile, int file, char *inbuf, unsigned buflen, const char *name, int eolp)
void trace_replay_init(void)
#define INTERFACE_REQUESTED
void postdb_startup(void)
isc_result_t omapi_init(void)