diff options
author | glebius <glebius@FreeBSD.org> | 2013-10-28 07:45:03 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-10-28 07:45:03 +0000 |
commit | 9c54cb7e8ec1367dd664b17bceb913d02f9e109f (patch) | |
tree | 46381b40003dbc94fc775ef0d09c8455a9540cfb /sys/net/if_vlan_var.h | |
parent | f469ae1d459eb17461e1fdfa9af613fb107e7be2 (diff) | |
download | FreeBSD-src-9c54cb7e8ec1367dd664b17bceb913d02f9e109f.zip FreeBSD-src-9c54cb7e8ec1367dd664b17bceb913d02f9e109f.tar.gz |
Instead of putting ifnet declaration into eventhandler.h, move
bpf(4) and vlan(4) related event declarations to bpf.h and
if_vlan_var.h. To avoid dependency on eventhandler.h, protect
these declarations with ifdef SYS_EVENTHANDLER_H.
Sponsored by: Netflix
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/net/if_vlan_var.h')
-rw-r--r-- | sys/net/if_vlan_var.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/net/if_vlan_var.h b/sys/net/if_vlan_var.h index 4eb3b09..0e8d8ee 100644 --- a/sys/net/if_vlan_var.h +++ b/sys/net/if_vlan_var.h @@ -150,6 +150,14 @@ extern int (*vlan_tag_p)(struct ifnet *, uint16_t *); extern int (*vlan_setcookie_p)(struct ifnet *, void *); extern void *(*vlan_cookie_p)(struct ifnet *); +#ifdef SYS_EVENTHANDLER_H +/* VLAN state change events */ +typedef void (*vlan_config_fn)(void *, struct ifnet *, uint16_t); +typedef void (*vlan_unconfig_fn)(void *, struct ifnet *, uint16_t); +EVENTHANDLER_DECLARE(vlan_config, vlan_config_fn); +EVENTHANDLER_DECLARE(vlan_unconfig, vlan_unconfig_fn); +#endif /* SYS_EVENTHANDLER_H */ + #endif /* _KERNEL */ #endif /* _NET_IF_VLAN_VAR_H_ */ |