File: initnetwork.c

package info (click to toggle)
ntpsec 1.2.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,360 kB
  • sloc: ansic: 62,698; python: 32,477; sh: 1,575; yacc: 1,331; makefile: 193; javascript: 138
file content (23 lines) | stat: -rw-r--r-- 368 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
 * lib_strbuf - library string storage
 */
#include "config.h"

#include "isc_netaddr.h"
#include "ntp_stdlib.h"

/*
 * Storage declarations
 */
bool		ipv4_works;
bool		ipv6_works;

/*
 * initialization routine.  Might be needed if the code is ROMized.
 */
void
init_network(void)
{
	ipv4_works = isc_net_probeipv4_bool();
	ipv6_works = isc_net_probeipv6_bool();
}