diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-11-18 09:16:31 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-11-18 09:16:31 +0000 |
commit | ce2fb986d5ad44761ff5d96b8e2770b7e5cd8b6a (patch) | |
tree | a765ab2473c1cbd472ec848ec7f01f1bf03cd699 /sys/net/if_trunk.h | |
parent | a19f520db1fd453b247a9c81abe07775c4708c3e (diff) |
Convert trunk(4) to use a detachhook, discussed at b2k13 with many.
While here add a comment explaining detach hooks' order of execution when
destroying/detaching an interface.
Diffstat (limited to 'sys/net/if_trunk.h')
-rw-r--r-- | sys/net/if_trunk.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_trunk.h b/sys/net/if_trunk.h index 2d0763527ee..0a2a6b647a3 100644 --- a/sys/net/if_trunk.h +++ b/sys/net/if_trunk.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_trunk.h,v 1.17 2011/07/04 04:29:17 claudio Exp $ */ +/* $OpenBSD: if_trunk.h,v 1.18 2013/11/18 09:16:30 mpi Exp $ */ /* * Copyright (c) 2005, 2006, 2007 Reyk Floeter <reyk@openbsd.org> @@ -136,6 +136,7 @@ struct trunk_port { u_int32_t tp_prio; /* port priority */ u_int32_t tp_flags; /* port flags */ void *lh_cookie; /* if state hook */ + void *dh_cookie; /* if detach hook */ /* Redirected callbacks */ void (*tp_watchdog)(struct ifnet *); @@ -219,7 +220,6 @@ struct trunk_lb { struct trunk_port *lb_ports[TRUNK_MAX_PORTS]; }; -void trunk_port_ifdetach(struct ifnet *); int trunk_input(struct ifnet *, struct ether_header *, struct mbuf *); int trunk_enqueue(struct ifnet *, struct mbuf *); |