Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/ip_var.h
Show First 20 Lines • Show All 286 Lines • ▼ Show 20 Lines | |||||
struct ip_fw_args; | struct ip_fw_args; | ||||
typedef int (*ip_fw_chk_ptr_t)(struct ip_fw_args *args); | typedef int (*ip_fw_chk_ptr_t)(struct ip_fw_args *args); | ||||
typedef int (*ip_fw_ctl_ptr_t)(struct sockopt *); | typedef int (*ip_fw_ctl_ptr_t)(struct sockopt *); | ||||
VNET_DECLARE(ip_fw_ctl_ptr_t, ip_fw_ctl_ptr); | VNET_DECLARE(ip_fw_ctl_ptr_t, ip_fw_ctl_ptr); | ||||
#define V_ip_fw_ctl_ptr VNET(ip_fw_ctl_ptr) | #define V_ip_fw_ctl_ptr VNET(ip_fw_ctl_ptr) | ||||
/* Divert hooks. */ | /* Divert hooks. */ | ||||
extern void (*ip_divert_ptr)(struct mbuf *m, int incoming); | extern void (*ip_divert_ptr)(struct mbuf *m, bool incoming); | ||||
/* ng_ipfw hooks -- XXX make it the same as divert and dummynet */ | /* ng_ipfw hooks -- XXX make it the same as divert and dummynet */ | ||||
extern int (*ng_ipfw_input_p)(struct mbuf **, int, | extern int (*ng_ipfw_input_p)(struct mbuf **, struct ip_fw_args *, bool); | ||||
struct ip_fw_args *, int); | |||||
extern int (*ip_dn_ctl_ptr)(struct sockopt *); | extern int (*ip_dn_ctl_ptr)(struct sockopt *); | ||||
extern int (*ip_dn_io_ptr)(struct mbuf **, int, struct ip_fw_args *); | extern int (*ip_dn_io_ptr)(struct mbuf **, struct ip_fw_args *); | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_NETINET_IP_VAR_H_ */ | #endif /* !_NETINET_IP_VAR_H_ */ |