diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-24 02:26:05 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-05-24 02:26:05 +0000 |
commit | 7bcec1f4132cd47e9bfebd8952a49bdaf345b13c (patch) | |
tree | 2b86e7773554c39b4cf6dc9ef4e80be9b74e6096 /sys/net/if.h | |
parent | 636bf1e47edff0b4d9dcbd9462a287b72869c5da (diff) |
keep a list of member interfaces in ifg_group
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index 8eb6bce9823..f31c5c3c112 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if.h,v 1.67 2005/05/22 18:23:04 henning Exp $ */ +/* $OpenBSD: if.h,v 1.68 2005/05/24 02:26:04 henning Exp $ */ /* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */ /* @@ -408,10 +408,16 @@ struct if_announcemsghdr { * interface groups */ struct ifg_group { - char ifg_group[IFNAMSIZ]; - u_int ifg_refcnt; - caddr_t ifg_pf_kif; - TAILQ_ENTRY(ifg_group) ifg_next; + char ifg_group[IFNAMSIZ]; + u_int ifg_refcnt; + caddr_t ifg_pf_kif; + TAILQ_HEAD(, ifg_member) ifg_members; + TAILQ_ENTRY(ifg_group) ifg_next; +}; + +struct ifg_member { + TAILQ_ENTRY(ifg_member) ifgm_next; + struct ifnet *ifgm_ifp; }; struct ifg_list { |