summaryrefslogtreecommitdiffstats
path: root/libntp/lib_strbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/lib_strbuf.c')
-rw-r--r--libntp/lib_strbuf.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libntp/lib_strbuf.c b/libntp/lib_strbuf.c
index 315070f..e0becbc 100644
--- a/libntp/lib_strbuf.c
+++ b/libntp/lib_strbuf.c
@@ -1,7 +1,12 @@
/*
* lib_strbuf - library string storage
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#include <isc/net.h>
+#include <isc/result.h>
#include "ntp_stdlib.h"
#include "lib_strbuf.h"
@@ -10,6 +15,8 @@
*/
char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH];
int lib_nextbuf;
+int ipv4_works;
+int ipv6_works;
int lib_inited = 0;
/*
@@ -19,5 +26,7 @@ void
init_lib(void)
{
lib_nextbuf = 0;
+ ipv4_works = (ISC_R_SUCCESS == isc_net_probeipv4());
+ ipv6_works = (ISC_R_SUCCESS == isc_net_probeipv6());
lib_inited = 1;
}
OpenPOWER on IntegriCloud