Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / ntp / dist / libntp / lib_strbuf.c
blobe02599036ec158d90fbca5d94d93b31ec5931e63
1 /* $NetBSD$ */
3 /*
4 * lib_strbuf - library string storage
5 */
6 #ifdef HAVE_CONFIG_H
7 #include <config.h>
8 #endif
10 #include <isc/net.h>
11 #include <isc/result.h>
12 #include "ntp_stdlib.h"
13 #include "lib_strbuf.h"
16 * Storage declarations
18 char lib_stringbuf[LIB_NUMBUFS][LIB_BUFLENGTH];
19 int lib_nextbuf;
20 int ipv4_works;
21 int ipv6_works;
22 int lib_inited = 0;
25 * initialization routine. Might be needed if the code is ROMized.
27 void
28 init_lib(void)
30 lib_nextbuf = 0;
31 ipv4_works = (ISC_R_SUCCESS == isc_net_probeipv4());
32 ipv6_works = (ISC_R_SUCCESS == isc_net_probeipv6());
33 lib_inited = 1;