summaryrefslogtreecommitdiffstats
path: root/sys/netiso/if_eon.c
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2001-02-06 00:22:14 +0000
committermickey <mickey@openbsd.org>2001-02-06 00:22:14 +0000
commitfcc641ef9d62b3cc0e85a702ec5246f36decc135 (patch)
tree21d105a9b747ad0b60d54c6b03e998169a5f061f /sys/netiso/if_eon.c
parentonly call apm_perror() if get_event() failed (diff)
downloadwireguard-openbsd-fcc641ef9d62b3cc0e85a702ec5246f36decc135.tar.xz
wireguard-openbsd-fcc641ef9d62b3cc0e85a702ec5246f36decc135.zip
allow changing number of loopbacks in ukc.
change rest of the code to use lo0ifp pointing to the corresponding struct ifnet. itojun@ and niklas@ ok
Diffstat (limited to 'sys/netiso/if_eon.c')
-rw-r--r--sys/netiso/if_eon.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netiso/if_eon.c b/sys/netiso/if_eon.c
index 1d6a16a1fde..79dca64acb5 100644
--- a/sys/netiso/if_eon.c
+++ b/sys/netiso/if_eon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_eon.c,v 1.8 2001/01/19 06:37:38 itojun Exp $ */
+/* $OpenBSD: if_eon.c,v 1.9 2001/02/06 00:22:25 mickey Exp $ */
/* $NetBSD: if_eon.c,v 1.15 1996/05/09 22:29:37 scottr Exp $ */
/*-
@@ -109,10 +109,6 @@ SOFTWARE.
#include <machine/stdarg.h>
-#include "loop.h"
-
-extern struct ifnet loif[NLOOP];
-
extern struct timeval time;
#define EOK 0
@@ -299,7 +295,7 @@ eonrtrequest(cmd, rt, info)
case RTM_ADD:
case RTM_RESOLVE:
- rt->rt_rmx.rmx_mtu = loif[0].if_mtu; /* unless better below */
+ rt->rt_rmx.rmx_mtu = lo0ifp->if_mtu; /* unless better below */
R_Malloc(el, struct eon_llinfo *, sizeof(*el));
rt->rt_llinfo = (caddr_t) el;
if (el == 0)