diff options
author | 1998-05-08 04:52:18 +0000 | |
---|---|---|
committer | 1998-05-08 04:52:18 +0000 | |
commit | a3adf44fdb029a7fe3f036b566307bbd833a5ccc (patch) | |
tree | dd4f4a4fa4b4e546c8b767ab2446c920678bea48 /usr.sbin/pppd/sys-bsd.c | |
parent | fix err() use (diff) | |
download | wireguard-openbsd-a3adf44fdb029a7fe3f036b566307bbd833a5ccc.tar.xz wireguard-openbsd-a3adf44fdb029a7fe3f036b566307bbd833a5ccc.zip |
pppd 2.3.5
Diffstat (limited to 'usr.sbin/pppd/sys-bsd.c')
-rw-r--r-- | usr.sbin/pppd/sys-bsd.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/usr.sbin/pppd/sys-bsd.c b/usr.sbin/pppd/sys-bsd.c index a93a77f722d..4d5aac3f7c1 100644 --- a/usr.sbin/pppd/sys-bsd.c +++ b/usr.sbin/pppd/sys-bsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys-bsd.c,v 1.13 1998/03/20 03:10:03 angelos Exp $ */ +/* $OpenBSD: sys-bsd.c,v 1.14 1998/05/08 04:52:33 millert Exp $ */ /* * sys-bsd.c - System-dependent procedures for setting up @@ -24,9 +24,9 @@ #ifndef lint #if 0 -static char rcsid[] = "Id: sys-bsd.c,v 1.29 1997/11/27 06:10:04 paulus Exp $"; +static char rcsid[] = "Id: sys-bsd.c,v 1.31 1998/04/02 12:04:19 paulus Exp $"; #else -static char rcsid[] = "$OpenBSD: sys-bsd.c,v 1.13 1998/03/20 03:10:03 angelos Exp $"; +static char rcsid[] = "$OpenBSD: sys-bsd.c,v 1.14 1998/05/08 04:52:33 millert Exp $"; #endif #endif @@ -50,7 +50,6 @@ static char rcsid[] = "$OpenBSD: sys-bsd.c,v 1.13 1998/03/20 03:10:03 angelos Ex #include <sys/socket.h> #include <sys/time.h> #include <sys/stat.h> -#include <sys/param.h> #ifdef PPP_FILTER #include <net/bpf.h> @@ -63,7 +62,16 @@ static char rcsid[] = "$OpenBSD: sys-bsd.c,v 1.13 1998/03/20 03:10:03 angelos Ex #include <netinet/in.h> #if RTM_VERSION >= 3 +#include <sys/param.h> +#if defined(NetBSD) && (NetBSD >= 199703) +#include <netinet/if_inarp.h> +#else /* NetBSD 1.2D or later */ +#if defined(__FreeBSD__) || defined(__OpenBSD__) #include <netinet/if_ether.h> +#else +#include <net/if_ether.h> +#endif +#endif #endif #include "pppd.h" @@ -1521,6 +1529,15 @@ GetMask(addr) } /* + * Use the hostid as part of the random number seed. + */ +int +get_host_seed() +{ + return gethostid(); +} + +/* * lock - create a lock file for the named lock device */ #define LOCK_PREFIX "/var/spool/lock/LCK.." |