diff options
author | Klemens Nanni <kn@cvs.openbsd.org> | 2022-09-08 10:22:08 +0000 |
---|---|---|
committer | Klemens Nanni <kn@cvs.openbsd.org> | 2022-09-08 10:22:08 +0000 |
commit | fae7b82c435ab26e6a5ae158943c81f3fb25a86a (patch) | |
tree | 6c7257f491c1be38c4a0dc409fb14d959d1a712b /sys/netinet/ip_mroute.c | |
parent | 8250e2cc1a067efb0f8df6265fbb03eefb97f05f (diff) |
Rename global ifnet TAILQ
Naming the list like the struct itself makes for awful grepping.
Call the global variable "ifnetlist" from now on.
There used to be kvm(3) consumers in base picking up this symbol, but those
have long been converted to other interfaces.
A few potential ports users remain, same deal as sys/net/if_var.h r1.116
"Remove struct ifnet's unused if_switchport member": they get bumped.
Previous users pointed out by deraadt
OK bluhm
Diffstat (limited to 'sys/netinet/ip_mroute.c')
-rw-r--r-- | sys/netinet/ip_mroute.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index d070bfbf100..5b27d73fbef 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_mroute.c,v 1.136 2022/08/06 15:57:59 bluhm Exp $ */ +/* $OpenBSD: ip_mroute.c,v 1.137 2022/09/08 10:22:06 kn Exp $ */ /* $NetBSD: ip_mroute.c,v 1.85 2004/04/26 01:31:57 matt Exp $ */ /* @@ -353,7 +353,7 @@ mrt_sysctl_vif(void *oldp, size_t *oldlenp) given = *oldlenp; needed = 0; memset(&vinfo, 0, sizeof vinfo); - TAILQ_FOREACH(ifp, &ifnet, if_list) { + TAILQ_FOREACH(ifp, &ifnetlist, if_list) { if ((vifp = (struct vif *)ifp->if_mcast) == NULL) continue; @@ -560,7 +560,7 @@ ip_mrouter_done(struct socket *so) } while (error == EAGAIN); /* Unregister all interfaces in the domain. */ - TAILQ_FOREACH(ifp, &ifnet, if_list) { + TAILQ_FOREACH(ifp, &ifnetlist, if_list) { if (ifp->if_rdomain != rtableid) continue; @@ -607,7 +607,7 @@ set_api_config(struct socket *so, struct mbuf *m) * - there are no vifs installed * - the MFC table is empty */ - TAILQ_FOREACH(ifp, &ifnet, if_list) { + TAILQ_FOREACH(ifp, &ifnetlist, if_list) { if (ifp->if_rdomain != rtableid) continue; if (ifp->if_mcast == NULL) @@ -1284,7 +1284,7 @@ if_lookupbyvif(vifi_t vifi, unsigned int rtableid) struct vif *v; struct ifnet *ifp; - TAILQ_FOREACH(ifp, &ifnet, if_list) { + TAILQ_FOREACH(ifp, &ifnetlist, if_list) { if (ifp->if_rdomain != rtableid) continue; if ((v = (struct vif *)ifp->if_mcast) == NULL) |