Remove some explicit references to loif.

This commit is contained in:
mycroft 1995-04-11 04:30:47 +00:00
parent dc3e1242b8
commit 8b77f9cd5f
7 changed files with 10 additions and 17 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_arcsubr.c,v 1.1 1995/02/23 07:19:51 glass Exp $ */ /* $NetBSD: if_arcsubr.c,v 1.2 1995/04/11 04:32:09 mycroft Exp $ */
/* /*
* Copyright (c) 1994, 1995 Ignatios Souvatzis * Copyright (c) 1994, 1995 Ignatios Souvatzis
@ -61,7 +61,6 @@
#include <netinet/if_arc.h> #include <netinet/if_arc.h>
u_char arcbroadcastaddr = 0; u_char arcbroadcastaddr = 0;
extern struct ifnet loif;
#define senderr(e) { error = (e); goto bad;} #define senderr(e) { error = (e); goto bad;}

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_x25subr.c,v 1.6 1994/06/29 06:37:19 cgd Exp $ */ /* $NetBSD: if_x25subr.c,v 1.7 1995/04/11 04:30:47 mycroft Exp $ */
/* /*
* Copyright (c) 1990, 1993 * Copyright (c) 1990, 1993
@ -73,7 +73,6 @@ int tp_incoming();
#include <netiso/iso_var.h> #include <netiso/iso_var.h>
#endif #endif
extern struct ifnet loif;
struct llinfo_x25 llinfo_x25 = {&llinfo_x25, &llinfo_x25}; struct llinfo_x25 llinfo_x25 = {&llinfo_x25, &llinfo_x25};
#ifndef _offsetof #ifndef _offsetof
#define _offsetof(t, m) ((int)((caddr_t)&((t *)0)->m)) #define _offsetof(t, m) ((int)((caddr_t)&((t *)0)->m))

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_arp.c,v 1.20 1995/04/07 22:26:04 mycroft Exp $ */ /* $NetBSD: if_arp.c,v 1.21 1995/04/11 04:30:52 mycroft Exp $ */
/* /*
* Copyright (c) 1982, 1986, 1988, 1993 * Copyright (c) 1982, 1986, 1988, 1993
@ -224,7 +224,6 @@ arp_rtrequest(req, rt, sa)
LLADDR(SDL(gate)), SDL(gate)->sdl_alen = 6); LLADDR(SDL(gate)), SDL(gate)->sdl_alen = 6);
if (useloopback) if (useloopback)
rt->rt_ifp = &loif; rt->rt_ifp = &loif;
} }
break; break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ether.c,v 1.20 1995/04/07 22:26:04 mycroft Exp $ */ /* $NetBSD: if_ether.c,v 1.21 1995/04/11 04:30:52 mycroft Exp $ */
/* /*
* Copyright (c) 1982, 1986, 1988, 1993 * Copyright (c) 1982, 1986, 1988, 1993
@ -224,7 +224,6 @@ arp_rtrequest(req, rt, sa)
LLADDR(SDL(gate)), SDL(gate)->sdl_alen = 6); LLADDR(SDL(gate)), SDL(gate)->sdl_alen = 6);
if (useloopback) if (useloopback)
rt->rt_ifp = &loif; rt->rt_ifp = &loif;
} }
break; break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: in.c,v 1.16 1995/04/10 00:06:57 mycroft Exp $ */ /* $NetBSD: in.c,v 1.17 1995/04/11 04:30:55 mycroft Exp $ */
/* /*
* Copyright (c) 1982, 1986, 1991, 1993 * Copyright (c) 1982, 1986, 1991, 1993
@ -155,7 +155,6 @@ in_socktrim(ap)
} }
int in_interfaces; /* number of external internet interfaces */ int in_interfaces; /* number of external internet interfaces */
extern struct ifnet loif;
/* /*
* Generic internet control operations (ioctl's). * Generic internet control operations (ioctl's).
@ -238,7 +237,7 @@ in_control(so, cmd, data, ifp)
ia->ia_broadaddr.sin_family = AF_INET; ia->ia_broadaddr.sin_family = AF_INET;
} }
ia->ia_ifp = ifp; ia->ia_ifp = ifp;
if (ifp != &loif) if ((ifp->if_flags & IFF_LOOPBACK) == 0)
in_interfaces++; in_interfaces++;
} }
break; break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_output.c,v 1.19 1994/06/29 06:38:27 cgd Exp $ */ /* $NetBSD: ip_output.c,v 1.20 1995/04/11 04:30:56 mycroft Exp $ */
/* /*
* Copyright (c) 1982, 1986, 1988, 1990, 1993 * Copyright (c) 1982, 1986, 1988, 1990, 1993
@ -159,7 +159,6 @@ ip_output(m0, opt, ro, flags, imo)
} }
if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) { if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr))) {
struct in_multi *inm; struct in_multi *inm;
extern struct ifnet loif;
m->m_flags |= M_MCAST; m->m_flags |= M_MCAST;
/* /*
@ -240,7 +239,7 @@ ip_output(m0, opt, ro, flags, imo)
* loop back a copy if this host actually belongs to the * loop back a copy if this host actually belongs to the
* destination group on the loopback interface. * destination group on the loopback interface.
*/ */
if (ip->ip_ttl == 0 || ifp == &loif) { if (ip->ip_ttl == 0 || (ifp->if_flags & IFF_LOOPBACK) != 0) {
m_freem(m); m_freem(m);
goto done; goto done;
} }

View File

@ -1,4 +1,4 @@
/* $NetBSD: iso.c,v 1.8 1995/03/08 02:16:11 cgd Exp $ */ /* $NetBSD: iso.c,v 1.9 1995/04/11 04:30:59 mycroft Exp $ */
/*- /*-
* Copyright (c) 1991, 1993 * Copyright (c) 1991, 1993
@ -91,7 +91,6 @@ SOFTWARE.
#ifdef ISO #ifdef ISO
int iso_interfaces = 0; /* number of external interfaces */ int iso_interfaces = 0; /* number of external interfaces */
extern struct ifnet loif; /* loopback interface */
int ether_output(); int ether_output();
void llc_rtrequest(); void llc_rtrequest();
@ -478,7 +477,7 @@ iso_control(so, cmd, data, ifp)
ia->ia_ifa.ifa_netmask ia->ia_ifa.ifa_netmask
= (struct sockaddr *)&ia->ia_sockmask; = (struct sockaddr *)&ia->ia_sockmask;
ia->ia_ifp = ifp; ia->ia_ifp = ifp;
if (ifp != &loif) if ((ifp->if_flags & IFF_LOOPBACK) == 0)
iso_interfaces++; iso_interfaces++;
} }
break; break;