summaryrefslogtreecommitdiffstats
path: root/sys/net/if_loop.c
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2005-06-12 06:23:43 +0000
committerhenning <henning@openbsd.org>2005-06-12 06:23:43 +0000
commit224594715e7c86de60ca8c1e66de1290e740be10 (patch)
tree7386aa31c07d36fc6e6221776fa6ee57d635a8e1 /sys/net/if_loop.c
parentlet 'ifconfig <group>' work, displaying all the interfaces which are member (diff)
downloadwireguard-openbsd-224594715e7c86de60ca8c1e66de1290e740be10.tar.xz
wireguard-openbsd-224594715e7c86de60ca8c1e66de1290e740be10.zip
lo0 is special, attaches early an different than the other loopback interfaces
needs special treatment to join the lo group, ryan ok
Diffstat (limited to 'sys/net/if_loop.c')
-rw-r--r--sys/net/if_loop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index c2f77ad859c..dc51a28c9b5 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_loop.c,v 1.34 2005/06/08 06:35:04 henning Exp $ */
+/* $OpenBSD: if_loop.c,v 1.35 2005/06/12 06:23:43 henning Exp $ */
/* $NetBSD: if_loop.c,v 1.15 1996/05/07 02:40:33 thorpej Exp $ */
/*
@@ -206,6 +206,7 @@ loop_clone_create(ifc, unit)
if (unit == 0) {
lo0ifp = ifp;
if_attachhead(ifp);
+ if_addgroup(lo0ifp, ifc->ifc_name);
} else
if_attach(ifp);
if_alloc_sadl(ifp);