3 System dependencies for NetBSD... */
6 * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
7 * Copyright (c) 1996-2003 by Internet Software Consortium
9 * Permission to use, copy, modify, and distribute this software for any
10 * purpose with or without fee is hereby granted, provided that the above
11 * copyright notice and this permission notice appear in all copies.
13 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
14 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
15 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
16 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
17 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
18 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
19 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21 * Internet Systems Consortium, Inc.
23 * Redwood City, CA 94063
27 * This software has been written for Internet Systems Consortium
28 * by Ted Lemon in cooperation with Vixie Enterprises and Nominum, Inc.
29 * To learn more about Internet Systems Consortium, see
30 * ``http://www.isc.org/''. To learn more about Vixie Enterprises,
31 * see ``http://www.vix.com''. To learn more about Nominum, Inc., see
32 * ``http://www.nominum.com''.
36 #include <sys/types.h>
51 #include <net/if_dl.h>
52 #include <net/route.h>
53 #include <sys/sockio.h>
55 #define ifr_netmask ifr_addr
57 /* Varargs stuff... */
59 #define VA_DOTDOTDOT ...
61 #define VA_start(list, last) va_start (list, last)
63 #ifndef _PATH_DHCPD_PID
64 #define _PATH_DHCPD_PID "/var/run/dhcpd.pid"
66 #ifndef _PATH_DHCPD_DB
67 #define _PATH_DHCPD_DB "/var/db/dhcpd.leases"
69 #ifndef _PATH_DHCLIENT_PID
70 #define _PATH_DHCLIENT_PID "/var/run/dhclient.pid"
72 #ifndef _PATH_DHCLIENT_DB
73 #define _PATH_DHCLIENT_DB "/var/db/dhclient.leases"
77 #define VOIDPTR void *
82 #define GET_TIME(x) time ((x))
87 #if defined (USE_DEFAULT_NETWORK)
91 #if defined (__alpha__) || defined (__sparc64__)
95 /* NetBSD added socklen_t in 1.3J, just prior to the 1.4 release. */
96 #if __NetBSD_Version__ < 103090000
100 #ifdef NEED_PRAND_CONF
101 /* prand_conf.h goop - remove when BIND 9 comes around. */
102 #ifndef HAVE_DEV_RANDOM
103 # define HAVE_DEV_RANDOM 1
104 #endif /* HAVE_DEV_RANDOM */
106 const char *cmds
[] = {
107 "/bin/ps -axlw 2>&1",
108 "/usr/sbin/arp -an 2>&1",
109 "/usr/bin/netstat -an 2>&1",
111 "/usr/bin/dig com. soa +ti=1 +retry=0 2>&1",
112 "/usr/bin/netstat -an 2>&1",
113 "/usr/bin/dig . soa +ti=1 +retry=0 2>&1",
114 "/usr/sbin/iostat 2>&1",
115 "/usr/bin/vmstat 2>&1",
120 const char *dirs
[] = {
133 const char *files
[] = {
139 #endif /* NEED_PRAND_CONF */