summaryrefslogtreecommitdiff
path: root/sys/net/rtsock.c
diff options
context:
space:
mode:
authorKlemens Nanni <kn@cvs.openbsd.org>2022-09-08 10:22:08 +0000
committerKlemens Nanni <kn@cvs.openbsd.org>2022-09-08 10:22:08 +0000
commitfae7b82c435ab26e6a5ae158943c81f3fb25a86a (patch)
tree6c7257f491c1be38c4a0dc409fb14d959d1a712b /sys/net/rtsock.c
parent8250e2cc1a067efb0f8df6265fbb03eefb97f05f (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/net/rtsock.c')
-rw-r--r--sys/net/rtsock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index ffb8f8bc7be..f979e90f73f 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.354 2022/09/05 10:31:25 mvs Exp $ */
+/* $OpenBSD: rtsock.c,v 1.355 2022/09/08 10:22:06 kn Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -850,7 +850,7 @@ route_output(struct mbuf *m, struct socket *so)
*/
if (rtm->rtm_priority == RTP_PROPOSAL_SOLICIT) {
NET_LOCK();
- TAILQ_FOREACH(ifp, &ifnet, if_list) {
+ TAILQ_FOREACH(ifp, &ifnetlist, if_list) {
ifp->if_rtrequest(ifp, RTM_PROPOSAL, NULL);
}
NET_UNLOCK();
@@ -2027,7 +2027,7 @@ sysctl_iflist(int af, struct walkarg *w)
int len, error = 0;
bzero(&info, sizeof(info));
- TAILQ_FOREACH(ifp, &ifnet, if_list) {
+ TAILQ_FOREACH(ifp, &ifnetlist, if_list) {
if (w->w_arg && w->w_arg != ifp->if_index)
continue;
/* Copy the link-layer address first */
@@ -2085,7 +2085,7 @@ sysctl_ifnames(struct walkarg *w)
int error = 0;
/* XXX ignore tableid for now */
- TAILQ_FOREACH(ifp, &ifnet, if_list) {
+ TAILQ_FOREACH(ifp, &ifnetlist, if_list) {
if (w->w_arg && w->w_arg != ifp->if_index)
continue;
w->w_needed += sizeof(ifn);