]> git.ipfire.org Git - thirdparty/dhcp.git/blob - includes/cf/rhapsody.h
e1c867f7990f0e96b8248a05d1f47ee41691b385
[thirdparty/dhcp.git] / includes / cf / rhapsody.h
1 /* rhapsody.h
2
3 System dependencies for NetBSD... */
4
5 /*
6 * Copyright (c) 1996-1999 Internet Software Consortium.
7 * Use is subject to license terms which appear in the file named
8 * ISC-LICENSE that should have accompanied this file when you
9 * received it. If a file named ISC-LICENSE did not accompany this
10 * file, or you are not sure the one you have is correct, you may
11 * obtain an applicable copy of the license at:
12 *
13 * http://www.isc.org/isc-license-1.0.html.
14 *
15 * This file is part of the ISC DHCP distribution. The documentation
16 * associated with this file is listed in the file DOCUMENTATION,
17 * included in the top-level directory of this release.
18 *
19 * Support and other services are available for ISC products - see
20 * http://www.isc.org for more information.
21 */
22
23 #include <syslog.h>
24 #include <sys/types.h>
25 #include <string.h>
26 #include <paths.h>
27 #include <errno.h>
28 #include <unistd.h>
29 #include <setjmp.h>
30 #include <limits.h>
31
32 #include <sys/wait.h>
33 #include <signal.h>
34
35 extern int h_errno;
36
37 #include <net/if.h>
38 #include <net/if_dl.h>
39 #include <net/route.h>
40 #include <sys/sockio.h>
41
42 #define ifr_netmask ifr_addr
43
44 /* Varargs stuff... */
45 #include <stdarg.h>
46 #define VA_DOTDOTDOT ...
47 #define va_dcl
48 #define VA_start(list, last) va_start (list, last)
49
50 #ifndef _PATH_DHCPD_PID
51 #define _PATH_DHCPD_PID "/var/run/dhcpd.pid"
52 #endif
53 #ifndef _PATH_DHCPD_DB
54 #define _PATH_DHCPD_DB "/var/db/dhcpd.leases"
55 #endif
56 #ifndef _PATH_DHCLIENT_PID
57 #define _PATH_DHCLIENT_PID "/var/run/dhclient.pid"
58 #endif
59 #ifndef _PATH_DHCLIENT_DB
60 #define _PATH_DHCLIENT_DB "/var/db/dhclient.leases"
61 #endif
62
63 #define EOL '\n'
64 #define VOIDPTR void *
65
66 /* Time stuff... */
67 #include <sys/time.h>
68 #define TIME time_t
69 #define GET_TIME(x) time ((x))
70
71 #define HAVE_SA_LEN
72 #define HAVE_MKSTEMP
73
74 #if defined (USE_DEFAULT_NETWORK)
75 # define USE_BPF
76 #endif
77
78 #ifdef __alpha__
79 #define PTRSIZE_64BIT
80 #endif
81
82 #ifdef NEED_PRAND_CONF
83 const char *cmds[] = {
84 "/bin/ps -axlw 2>&1",
85 "/usr/sbin/netstat -an 2>&1",
86 "/bin/df 2>&1",
87 "/usr/bin/uptime 2>&1",
88 "/usr/bin/printenv 2>&1",
89 "/usr/sbin/netstat -s 2>&1",
90 "/usr/bin/vm_stat 2>&1",
91 "/usr/bin/w 2>&1",
92 NULL
93 };
94
95 const char *dirs[] = {
96 "/var/tmp",
97 ".",
98 "/",
99 "/var/spool",
100 "/var/mail",
101 NULL
102 };
103
104 const char *files[] = {
105 "/var/log/wtmp",
106 NULL
107 };
108 #endif /* NEED_PRAND_CONF */