diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-22 21:06:03 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-22 21:06:03 +0000 |
commit | 4e704cc3d798baca61ba044e33b04e53ca514ab6 (patch) | |
tree | 5976d4ce3dd87b787ae0a8c12419ef51eed58ef5 /sys | |
parent | 9d406d5395219f58cb21c7af414f7ae3ff2f31cd (diff) |
missing #if NPF > 0 around ifgroups attachments
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/if.c | 6 |
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); } |