File:  [ELWIX - Embedded LightWeight unIX -] / fwsync / patches / ip_fw_private_h.patch
Revision 1.5: download - view: text, annotated - select for diffs - revision graph
Wed Aug 3 17:10:59 2022 UTC (22 months ago) by misho
Branches: MAIN
CVS tags: HEAD
update patch set

    1: diff --git a/sys/netpfil/ipfw/ip_fw_private.h b/sys/netpfil/ipfw/ip_fw_private.h
    2: index 1440b1a40ee..61bf5115fdd 100644
    3: --- a/sys/netpfil/ipfw/ip_fw_private.h
    4: +++ b/sys/netpfil/ipfw/ip_fw_private.h
    5: @@ -251,6 +251,28 @@ VNET_DECLARE(unsigned int, fw_tables_sets);
    6:  
    7:  struct tables_config;
    8:  
    9: +#ifndef V_hook_state
   10: +typedef int (*ipfw_hook_t)(const void *arg, const void *extdata);
   11: +/* callback hooks for notify on update of internal states and aliases */
   12: +VNET_DECLARE(ipfw_hook_t, hook_state);
   13: +#define V_hook_state		VNET(hook_state)
   14: +VNET_DECLARE(ipfw_hook_t, hook_alias);
   15: +#define V_hook_alias		VNET(hook_alias)
   16: +#endif
   17: +
   18: +struct ipfw_dyn_hook_extdata {
   19: +	unsigned int	ruleid;
   20: +	unsigned short	rulenum;
   21: +	unsigned short	fibnum;
   22: +};
   23: +
   24: +int ipfw_dyn_install_sync_state(const struct ipfw_flow_id *pkt, void *rule, uint32_t ruleid, uint16_t rulenum);
   25: +
   26: +#define ipfw_unregister_state_hook()	V_hook_state = NULL
   27: +#define ipfw_unregister_alias_hook()	V_hook_alias = NULL
   28: +#define ipfw_register_state_hook(_hcb)	V_hook_state = (_hcb)
   29: +#define ipfw_register_alias_hook(_hcb)	V_hook_alias = (_hcb)
   30: +
   31:  #ifdef _KERNEL
   32:  /*
   33:   * Here we have the structure representing an ipfw rule.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>