diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-25 06:50:06 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-25 06:50:06 +0000 |
commit | 382c311d1f0871b6ed25ccc8058af517300c4f55 (patch) | |
tree | 7b5c703defca02090aa9c7f626370e026eba527e /sys/net/if.c | |
parent | 11526ce555d6cda677a05ff6a5afd5c247b3f691 (diff) |
when an interface joins or leaves a group call back into pf so it can
update the internal tables used for (ifgroup) notation
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 90cceed11fe..d9ff32eac9e 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.118 2005/05/24 06:48:49 reyk Exp $ */ +/* $OpenBSD: if.c,v 1.119 2005/05/25 06:50:05 henning Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1631,6 +1631,10 @@ if_addgroup(struct ifnet *ifp, char *groupname) TAILQ_INSERT_TAIL(&ifg->ifg_members, ifgm, ifgm_next); TAILQ_INSERT_TAIL(&ifp->if_groups, ifgl, ifgl_next); +#if NPF > 0 + pfi_group_change(groupname); +#endif + return (0); } @@ -1670,6 +1674,10 @@ if_delgroup(struct ifnet *ifp, char *groupname) free(ifgl, M_TEMP); +#if NPF > 0 + pfi_group_change(groupname); +#endif + return (0); } |