npf_cache_t
npf_iscached(const npf_cache_t *npc, const int inf)
npf_alg_match(npf_cache_t *npc, npf_nat_t *nt, int di)
bool (*match_func)(npf_cache_t *, npf_nat_t *, int);
npf_alg_exec(npf_cache_t *npc, npf_nat_t *nt, const npf_flow_t flow)
bool (*translate_func)(npf_cache_t *, npf_nat_t *, npf_flow_t);
npf_alg_conn(npf_cache_t *npc, int di)
npf_conn_t *(*inspect_func)(npf_cache_t *, int);
npfa_icmp4_inspect(const int type, npf_cache_t *npc, bool *hasqid)
npfa_icmp6_inspect(const int type, npf_cache_t *npc, bool *hasqid)
npfa_icmp_inspect(npf_cache_t *npc, npf_cache_t *enpc)
memset(enpc, 0, sizeof(npf_cache_t));
npfa_icmp_conn(npf_cache_t *npc, int di)
npf_cache_t enpc;
npfa_icmp_nat(npf_cache_t *npc, npf_nat_t *nt, npf_flow_t flow)
npf_cache_t enpc;
npfa_icmp_match(npf_cache_t *npc, npf_nat_t *nt, int di)
const npf_cache_t * const npc = (const npf_cache_t *)args->arg;
const npf_cache_t * const npc = (const npf_cache_t *)args->arg;
npf_bpf_prepare(npf_cache_t *npc, bpf_args_t *args, uint32_t *M)
npf_conn_trackable_p(const npf_cache_t *npc)
npf_conn_lookup(const npf_cache_t *npc, const unsigned di, npf_flow_t *flow)
npf_conn_inspect(npf_cache_t *npc, const unsigned di, int *error)
npf_conn_establish(npf_cache_t *npc, const unsigned di, bool global)
npf_conn_setnat(const npf_cache_t *npc, npf_conn_t *con,
unsigned npf_conn_conkey(const npf_cache_t *, npf_connkey_t *,
npf_conn_t * npf_conn_lookup(const npf_cache_t *, const unsigned, npf_flow_t *);
npf_conn_t * npf_conn_inspect(npf_cache_t *, const unsigned, int *);
npf_conn_t * npf_conn_establish(npf_cache_t *, const unsigned, bool);
int npf_conn_setnat(const npf_cache_t *, npf_conn_t *,
npf_conn_conkey(const npf_cache_t *npc, npf_connkey_t *key,
npf_log(npf_cache_t *npc, void *meta, const npf_match_info_t *mi, int *decision)
npf_normalize_ip4(npf_cache_t *npc, npf_normalize_t *np)
npf_normalize(npf_cache_t *npc, void *params, const npf_match_info_t *mi,
npf_ext_rndblock(npf_cache_t *npc, void *meta, const npf_match_info_t *mi,
npf_route(npf_cache_t *npc, void *meta, const npf_match_info_t __unused *mi, int *decision)
npf_cache_t npc;
memset(&npc, 0, sizeof(npf_cache_t));
npf_cache_t npc;
npf_reassembly(npf_t *npf, npf_cache_t *npc, bool *mff)
bool (*match)(npf_cache_t *, npf_nat_t *, int);
bool (*translate)(npf_cache_t *, npf_nat_t *, npf_flow_t);
npf_conn_t * (*inspect)(npf_cache_t *, int);
bool (*proc)(npf_cache_t *, void *, const npf_match_info_t *, int *);
int npf_cache_all(npf_cache_t *);
void npf_recache(npf_cache_t *);
int npf_cache_ether(npf_cache_t *);
bool npf_rwrip(const npf_cache_t *, u_int, const npf_addr_t *);
bool npf_rwrport(const npf_cache_t *, u_int, const in_port_t);
bool npf_rwrcksum(const npf_cache_t *, u_int,
int npf_napt_rwr(const npf_cache_t *, u_int, const npf_addr_t *,
int npf_npt66_rwr(const npf_cache_t *, u_int, const npf_addr_t *,
int npf_tcpsaw(const npf_cache_t *, tcp_seq *, tcp_seq *,
bool npf_fetch_tcpopts(npf_cache_t *, uint16_t *, int *);
bool npf_set_mss(npf_cache_t *, uint16_t, uint16_t *, uint16_t *,
bool npf_return_block(npf_cache_t *, const int);
void npf_bpf_prepare(npf_cache_t *, bpf_args_t *, uint32_t *);
npf_rule_t * npf_ruleset_inspect(npf_cache_t *, const npf_ruleset_t *,
int npf_rule_reverse(npf_cache_t *, npf_match_info_t *, int);
int npf_socket_lookup_rid(npf_cache_t *, get_rid_t, uint32_t *, int);
int npf_rule_match_rid(npf_rule_t *, npf_cache_t *, int);
bool npf_rproc_run(npf_cache_t *, npf_rproc_t *,
bool npf_state_init(npf_cache_t *, npf_state_t *);
bool npf_state_inspect(npf_cache_t *, npf_state_t *, npf_flow_t);
bool npf_state_tcp(npf_cache_t *, npf_state_t *, npf_flow_t);
int npf_do_nat(npf_cache_t *, npf_conn_t *, const unsigned);
npf_nat_t * npf_nat_share_policy(npf_cache_t *, npf_conn_t *, npf_nat_t *);
bool npf_alg_match(npf_cache_t *, npf_nat_t *, int);
void npf_alg_exec(npf_cache_t *, npf_nat_t *, const npf_flow_t);
npf_conn_t * npf_alg_conn(npf_cache_t *, int);
npf_tcpsaw(const npf_cache_t *npc, tcp_seq *seq, tcp_seq *ack, uint32_t *win)
npf_fetch_tcpopts(npf_cache_t *npc, uint16_t *mss, int *wscale)
npf_set_mss(npf_cache_t *npc, uint16_t mss, uint16_t *old, uint16_t *new,
npf_cache_ip(npf_cache_t *npc, nbuf_t *nbuf)
npf_cache_tcp(npf_cache_t *npc, nbuf_t *nbuf, unsigned hlen)
npf_cache_ether(npf_cache_t *npc)
npf_cache_all(npf_cache_t *npc)
npf_recache(npf_cache_t *npc)
npf_rwrip(const npf_cache_t *npc, u_int which, const npf_addr_t *addr)
npf_rwrport(const npf_cache_t *npc, u_int which, const in_port_t port)
npf_rwrcksum(const npf_cache_t *npc, u_int which,
npf_napt_rwr(const npf_cache_t *npc, u_int which,
npf_npt66_rwr(const npf_cache_t *npc, u_int which, const npf_addr_t *pref,
npf_nat_inspect(npf_cache_t *npc, const unsigned di)
npf_nat_algo_netmap(const npf_cache_t *npc, const npf_natpolicy_t *np,
npf_nat_getaddr(npf_cache_t *npc, npf_natpolicy_t *np, const unsigned alen)
npf_nat_create(npf_cache_t *npc, npf_natpolicy_t *np, npf_conn_t *con)
npf_dnat_translate(npf_cache_t *npc, npf_nat_t *nt, npf_flow_t flow)
npf_snat_translate(npf_cache_t *npc, const npf_natpolicy_t *np, npf_flow_t flow)
npf_nat_share_policy(npf_cache_t *npc, npf_conn_t *con, npf_nat_t *src_nt)
npf_nat_lookup(const npf_cache_t *npc, npf_conn_t *con,
npf_do_nat(npf_cache_t *npc, npf_conn_t *con, const unsigned di)
npf_rproc_run(npf_cache_t *npc, npf_rproc_t *rp, const npf_match_info_t *mi,
npf_rule_match_rid(npf_rule_t *rl, npf_cache_t *npc, int dir)
npf_ruleset_inspect(npf_cache_t *npc, const npf_ruleset_t *rlset,
npf_rule_reverse(npf_cache_t *npc, npf_match_info_t *mi, int ret)
npf_return_icmp(const npf_cache_t *npc)
npf_return_block(npf_cache_t *npc, const int retfl)
npf_ip6_setscope(const npf_cache_t *npc, struct ip6_hdr *ip6)
npf_return_tcp(npf_cache_t *npc)
npf_ip_socket(npf_cache_t *npc, int dir)
npf_ip6_socket(npf_cache_t *npc, int dir)
static struct socket * npf_ip6_socket(npf_cache_t *, int);
static struct socket * npf_ip_socket(npf_cache_t *, int);
npf_socket_lookup_rid(npf_cache_t *npc, get_rid_t get_rid, uint32_t *rid, int dir)
npf_state_init(npf_cache_t *npc, npf_state_t *nst)
npf_state_inspect(npf_cache_t *npc, npf_state_t *nst, const npf_flow_t flow)
npf_tcp_inwindow(npf_cache_t *npc, npf_state_t *nst, const npf_flow_t flow)
npf_state_tcp(npf_cache_t *npc, npf_state_t *nst, npf_flow_t flow)
npf_cache_t *npc;
npf_cache_t *npc = get_cached_pkt(m, NULL, NPF_RULE_LAYER_3);
npf_cache_t *npc;
npf_cache_t *
npf_cache_t *npc = kmem_zalloc(sizeof(npf_cache_t), KM_SLEEP);
put_cached_pkt(npf_cache_t *npc)
kmem_free(npc, sizeof(npf_cache_t));
npf_cache_t npc;
memset(&npc, 0, sizeof(npf_cache_t));
npf_cache_t *npc;
npf_cache_t *npc;
npf_cache_t *npc;
npf_cache_t * get_cached_pkt(struct mbuf *, const char *, uint32_t);
void put_cached_pkt(npf_cache_t *);