X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/316670eb35587141e969394ae8537d66b9211e80..490019cf9519204c5fb36b2fba54ceb983bb6b72:/bsd/netinet/ip_flowid.h diff --git a/bsd/netinet/ip_flowid.h b/bsd/netinet/ip_flowid.h index 1fe210311..8e84eec1f 100644 --- a/bsd/netinet/ip_flowid.h +++ b/bsd/netinet/ip_flowid.h @@ -78,7 +78,7 @@ struct ip_flow_id { #define IS_IP6_FLOW_ID(id) ((id)->addr_type == 6) -#ifdef KERNEL +#ifdef BSD_KERNEL_PRIVATE struct route_in6; struct sockaddr_in6; struct pf_rule; @@ -127,6 +127,14 @@ struct ip_fw_args { #define fwa_dst fwa_dst_._fwa_dst #define fwa_dst6 fwa_dst_._fwa_dst6 -#endif /* KERNEL */ +/* Allocate a separate structure for inputs args to save space and bzero time */ +struct ip_fw_in_args { + struct sockaddr_in *fwai_next_hop; /* forward address */ + struct ip_fw *fwai_ipfw_rule;/* matching IPFW rule */ + struct pf_rule *fwai_pf_rule; /* matching PF rule */ + u_int16_t fwai_divert_rule;/* divert cookie */ +}; + +#endif /* BSD_KERNEL_PRIVATE */ #endif /* __IP_FLOWID_H__ */