diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-02-06 00:22:26 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-02-06 00:22:26 +0000 |
commit | b2ad256d635f41da2c0217f8326a2f7c99ac44eb (patch) | |
tree | 6640bdd1d3a66949fec08460bb6a3fc426921f97 /sys/netinet | |
parent | a64bc62d54ad86a3b2fa0197206f5e5766d59241 (diff) |
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/netinet')
-rw-r--r-- | sys/netinet/if_ether.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index b4bd2f55e9f..e13c12aec00 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ether.c,v 1.27 2001/02/05 15:22:11 jason Exp $ */ +/* $OpenBSD: if_ether.c,v 1.28 2001/02/06 00:22:24 mickey Exp $ */ /* $NetBSD: if_ether.c,v 1.31 1996/05/11 12:59:58 mycroft Exp $ */ /* @@ -87,7 +87,6 @@ void arptimer __P((void *)); static struct llinfo_arp *arplookup __P((u_int32_t, int, int)); static void in_arpinput __P((struct mbuf *)); -extern struct ifnet loif; LIST_HEAD(, llinfo_arp) llinfo_arp; struct ifqueue arpintrq = {0, 0, 0, 50}; int arp_inuse, arp_allocated, arp_intimer; @@ -228,7 +227,7 @@ arp_rtrequest(req, rt, info) (IA_SIN(rt->rt_ifa))->sin_addr.s_addr) { /* * This test used to be - * if (loif.if_flags & IFF_UP) + * if (lo0ifp->if_flags & IFF_UP) * It allowed local traffic to be forced through * the hardware by configuring the loopback down. * However, it causes problems during network @@ -242,7 +241,7 @@ arp_rtrequest(req, rt, info) LLADDR(SDL(gate)), SDL(gate)->sdl_alen = ETHER_ADDR_LEN); if (useloopback) - rt->rt_ifp = &loif; + rt->rt_ifp = lo0ifp; } break; |