/*
- * Copyright (c) 2011-2012 Apple Inc. All rights reserved.
+ * Copyright (c) 2011-2019 Apple Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
struct route_in6;
struct sockaddr_in6;
struct pf_rule;
-struct ip_fw;
/*
* Arguments for calling ipfw_chk() and dummynet_io(). We put them
struct ip_fw_args {
struct mbuf *fwa_m; /* the mbuf chain */
struct ifnet *fwa_oif; /* output interface */
- struct sockaddr_in *fwa_next_hop; /* forward address */
- struct ip_fw *fwa_ipfw_rule; /* matching IPFW rule */
struct pf_rule *fwa_pf_rule; /* matching PF rule */
struct ether_header *fwa_eh; /* for bridged packets */
int fwa_flags; /* for dummynet */
u_int32_t fwa_unfragpartlen; /* for IPv6 output */
struct ip6_exthdrs *fwa_exthdrs; /* for IPv6 output */
struct ip_flow_id fwa_id; /* grabbed from IP header */
- u_int16_t fwa_divert_rule;/* divert cookie */
u_int32_t fwa_cookie;
};
#define fwa_ipoa fwa_ipoa_._fwa_ipoa
/* 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 */