summaryrefslogtreecommitdiff
path: root/sys/net/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 30e40a827f6..75049c3b755 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.112 2005/05/22 18:23:04 henning Exp $ */
+/* $OpenBSD: if.c,v 1.113 2005/05/22 21:06:02 henning Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -1597,7 +1597,9 @@ if_addgroup(struct ifnet *ifp, char *groupname)
}
strlcpy(ifg->ifg_group, groupname, sizeof(ifg->ifg_group));
ifg->ifg_refcnt = 0;
+#if NPF > 0
pfi_attach_ifgroup(ifg);
+#endif
TAILQ_INSERT_TAIL(&ifg_head, ifg, ifg_next);
}
@@ -1627,7 +1629,9 @@ if_delgroup(struct ifnet *ifp, char *groupname)
if (--ifgl->ifgl_group->ifg_refcnt == 0) {
TAILQ_REMOVE(&ifg_head, ifgl->ifgl_group, ifg_next);
+#if NPF > 0
pfi_detach_ifgroup(ifgl->ifgl_group);
+#endif
free(ifgl->ifgl_group, M_TEMP);
}