summaryrefslogtreecommitdiff
path: root/includes/omapip
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2017-06-19 14:44:29 -0400
committerThomas Markwalder <tmark@isc.org>2017-06-19 14:44:29 -0400
commitca22af89996483efd820de0084c964fc336ee7c1 (patch)
tree678b882c7e3c70bc1db5a746a187816f858b4296 /includes/omapip
parent24f10d6d9c05e975b279656d2bee927d98902095 (diff)
downloadisc-dhcp-ca22af89996483efd820de0084c964fc336ee7c1.tar.gz
[master] Optimized if and when DNS client context and ports are initted
Merges in rt45290.
Diffstat (limited to 'includes/omapip')
-rw-r--r--includes/omapip/isclib.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/omapip/isclib.h b/includes/omapip/isclib.h
index caa388ad..e2963089 100644
--- a/includes/omapip/isclib.h
+++ b/includes/omapip/isclib.h
@@ -3,7 +3,7 @@
connections to the isc and dns libraries */
/*
- * Copyright (c) 2009,2013,2014 by Internet Systems Consortium, Inc. ("ISC")
+ * Copyright (c) 2009-2017 by Internet Systems Consortium, Inc. ("ISC")
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -98,6 +98,10 @@ typedef struct dhcp_context {
isc_timermgr_t *timermgr;
#if defined (NSUPDATE)
dns_client_t *dnsclient;
+ int use_local4;
+ isc_sockaddr_t local4_sockaddr;
+ int use_local6;
+ isc_sockaddr_t local6_sockaddr;
#endif
} dhcp_context_t;
@@ -125,6 +129,7 @@ isclib_make_dst_key(char *inname,
#define DHCP_CONTEXT_PRE_DB 1
#define DHCP_CONTEXT_POST_DB 2
+#define DHCP_DNS_CLIENT_LAZY_INIT 4
isc_result_t dhcp_context_create(int flags,
struct in_addr *local4,
struct in6_addr *local6);
@@ -133,4 +138,6 @@ void isclib_cleanup(void);
void dhcp_signal_handler(int signal);
extern int shutdown_signal;
+isc_result_t dns_client_init();
+
#endif /* ISCLIB_H */