summaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-05-22 18:23:05 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-05-22 18:23:05 +0000
commitf4192b75d20bc1b7f08f5148e3db1ac5026003f9 (patch)
tree2a03e4fc2588566038f0317a2d08503091bc4a32 /sys/net/if.c
parentdcc7340dcf077fb35446e18f971a3a5d88bab26d (diff)
allow pf to match on interface groups
pass on mygroup ... markus ok
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index ab6f756d1f7..30e40a827f6 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.111 2005/05/21 21:24:38 henning Exp $ */
+/* $OpenBSD: if.c,v 1.112 2005/05/22 18:23:04 henning Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -1597,6 +1597,7 @@ if_addgroup(struct ifnet *ifp, char *groupname)
}
strlcpy(ifg->ifg_group, groupname, sizeof(ifg->ifg_group));
ifg->ifg_refcnt = 0;
+ pfi_attach_ifgroup(ifg);
TAILQ_INSERT_TAIL(&ifg_head, ifg, ifg_next);
}
@@ -1626,6 +1627,7 @@ if_delgroup(struct ifnet *ifp, char *groupname)
if (--ifgl->ifgl_group->ifg_refcnt == 0) {
TAILQ_REMOVE(&ifg_head, ifgl->ifgl_group, ifg_next);
+ pfi_detach_ifgroup(ifgl->ifgl_group);
free(ifgl->ifgl_group, M_TEMP);
}