1/*
2 * lib_strbuf - library string storage
3 */
4#ifdef HAVE_CONFIG_H
5#include <config.h>
6#endif
7
8#include <isc/net.h>
9#include <isc/result.h>
10#include "ntp_stdlib.h"
11#include "lib_strbuf.h"
12
13/*
14 * Storage declarations
15 */
16char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH];
17int lib_nextbuf;
18int ipv4_works;
19int ipv6_works;
20int lib_inited = 0;
21
22/*
23 * initialization routine.  Might be needed if the code is ROMized.
24 */
25void
26init_lib(void)
27{
28	lib_nextbuf = 0;
29	ipv4_works = (ISC_R_SUCCESS == isc_net_probeipv4());
30	ipv6_works = (ISC_R_SUCCESS == isc_net_probeipv6());
31	lib_inited = 1;
32}
33