1996-03-16 17:50:30 +00:00
|
|
|
/* bsdos.h
|
1995-11-29 07:40:04 +00:00
|
|
|
|
1996-03-16 17:50:30 +00:00
|
|
|
System dependencies for BSDI BSD/OS... */
|
1995-11-29 07:40:04 +00:00
|
|
|
|
|
|
|
/*
|
1999-03-16 05:50:46 +00:00
|
|
|
* Copyright (c) 1996-1999 Internet Software Consortium.
|
|
|
|
* Use is subject to license terms which appear in the file named
|
|
|
|
* ISC-LICENSE that should have accompanied this file when you
|
|
|
|
* received it. If a file named ISC-LICENSE did not accompany this
|
|
|
|
* file, or you are not sure the one you have is correct, you may
|
|
|
|
* obtain an applicable copy of the license at:
|
1995-11-29 07:40:04 +00:00
|
|
|
*
|
1999-03-16 05:50:46 +00:00
|
|
|
* http://www.isc.org/isc-license-1.0.html.
|
1995-11-29 07:40:04 +00:00
|
|
|
*
|
1999-03-16 05:50:46 +00:00
|
|
|
* This file is part of the ISC DHCP distribution. The documentation
|
|
|
|
* associated with this file is listed in the file DOCUMENTATION,
|
|
|
|
* included in the top-level directory of this release.
|
1995-11-29 07:40:04 +00:00
|
|
|
*
|
1999-03-16 05:50:46 +00:00
|
|
|
* Support and other services are available for ISC products - see
|
|
|
|
* http://www.isc.org for more information.
|
1995-11-29 07:40:04 +00:00
|
|
|
*/
|
|
|
|
|
1996-05-17 00:29:29 +00:00
|
|
|
#include <syslog.h>
|
1995-11-29 07:40:04 +00:00
|
|
|
#include <sys/types.h>
|
2000-02-01 18:21:26 +00:00
|
|
|
#include <sys/param.h>
|
1995-11-29 07:40:04 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <paths.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <setjmp.h>
|
|
|
|
#include <limits.h>
|
|
|
|
|
1996-03-06 10:04:44 +00:00
|
|
|
#include <sys/wait.h>
|
|
|
|
#include <signal.h>
|
|
|
|
|
1995-11-29 07:40:04 +00:00
|
|
|
extern int h_errno;
|
|
|
|
|
|
|
|
#include <net/if.h>
|
1996-05-16 07:30:34 +00:00
|
|
|
#include <net/if_dl.h>
|
1996-05-20 00:36:47 +00:00
|
|
|
#define INADDR_LOOPBACK ((u_int32_t)0x7f000001)
|
1995-11-29 07:40:04 +00:00
|
|
|
|
|
|
|
/* Varargs stuff... */
|
|
|
|
#include <stdarg.h>
|
|
|
|
#define VA_DOTDOTDOT ...
|
|
|
|
#define va_dcl
|
|
|
|
#define VA_start(list, last) va_start (list, last)
|
|
|
|
|
1996-09-11 06:36:57 +00:00
|
|
|
#ifndef _PATH_DHCPD_PID
|
1996-03-06 10:04:44 +00:00
|
|
|
#define _PATH_DHCPD_PID "/var/run/dhcpd.pid"
|
1996-09-11 06:36:57 +00:00
|
|
|
#endif
|
|
|
|
#ifndef _PATH_DHCPD_DB
|
1996-06-01 00:30:39 +00:00
|
|
|
#define _PATH_DHCPD_DB "/var/db/dhcpd.leases"
|
1996-09-11 06:36:57 +00:00
|
|
|
#endif
|
1997-02-18 14:34:14 +00:00
|
|
|
#ifndef _PATH_DHCLIENT_PID
|
|
|
|
#define _PATH_DHCLIENT_PID "/var/run/dhclient.pid"
|
|
|
|
#endif
|
|
|
|
#ifndef _PATH_DHCLIENT_DB
|
|
|
|
#define _PATH_DHCLIENT_DB "/var/db/dhclient.leases"
|
|
|
|
#endif
|
1995-11-29 07:40:04 +00:00
|
|
|
|
|
|
|
#define EOL '\n'
|
1996-03-06 10:04:44 +00:00
|
|
|
#define VOIDPTR void *
|
1995-11-29 07:40:04 +00:00
|
|
|
|
|
|
|
/* Time stuff... */
|
|
|
|
#include <sys/time.h>
|
1996-03-06 10:04:44 +00:00
|
|
|
#define TIME time_t
|
|
|
|
#define GET_TIME(x) time ((x))
|
1996-05-13 00:10:37 +00:00
|
|
|
|
1996-05-20 00:34:56 +00:00
|
|
|
#define HAVE_SA_LEN
|
1996-05-16 23:08:03 +00:00
|
|
|
|
1996-05-13 00:10:37 +00:00
|
|
|
#if defined (USE_DEFAULT_NETWORK)
|
|
|
|
# define USE_BPF
|
|
|
|
#endif
|
2000-02-01 18:21:26 +00:00
|
|
|
|
|
|
|
#if _BSDI_VERSION < 199802
|
|
|
|
typedef int socklen_t;
|
|
|
|
#endif
|