/src/sys/net/npf/ |
npf_impl.h | 162 bool (*match)(npf_cache_t *, npf_nat_t *, int); 163 bool (*translate)(npf_cache_t *, npf_nat_t *, npf_flow_t); 164 npf_conn_t * (*inspect)(npf_cache_t *, int); 277 bool (*proc)(npf_cache_t *, void *, const npf_match_info_t *, int *); 342 int npf_cache_all(npf_cache_t *); 343 void npf_recache(npf_cache_t *); 344 int npf_cache_ether(npf_cache_t *); 346 bool npf_rwrip(const npf_cache_t *, u_int, const npf_addr_t *); 347 bool npf_rwrport(const npf_cache_t *, u_int, const in_port_t); 348 bool npf_rwrcksum(const npf_cache_t *, u_int [all...] |
npf_conn.h | 117 unsigned npf_conn_conkey(const npf_cache_t *, npf_connkey_t *, 139 npf_conn_t * npf_conn_lookup(const npf_cache_t *, const unsigned, npf_flow_t *); 140 npf_conn_t * npf_conn_inspect(npf_cache_t *, const unsigned, int *); 141 npf_conn_t * npf_conn_establish(npf_cache_t *, const unsigned, bool); 149 int npf_conn_setnat(const npf_cache_t *, npf_conn_t *,
|
npf_bpf.c | 85 npf_bpf_prepare(npf_cache_t *npc, bpf_args_t *args, uint32_t *M) 156 const npf_cache_t * const npc = (const npf_cache_t *)args->arg; 176 const npf_cache_t * const npc = (const npf_cache_t *)args->arg;
|
npf_alg_icmp.c | 74 npfa_icmp_match(npf_cache_t *npc, npf_nat_t *nt, int di) 127 npfa_icmp4_inspect(const int type, npf_cache_t *npc, bool *hasqid) 160 npfa_icmp6_inspect(const int type, npf_cache_t *npc, bool *hasqid) 193 npfa_icmp_inspect(npf_cache_t *npc, npf_cache_t *enpc) 206 memset(enpc, 0, sizeof(npf_cache_t)); 238 npfa_icmp_conn(npf_cache_t *npc, int di) 241 npf_cache_t enpc; 320 npfa_icmp_nat(npf_cache_t *npc, npf_nat_t *nt, npf_flow_t flow) 323 npf_cache_t enpc [all...] |
npf_alg.c | 219 npf_alg_match(npf_cache_t *npc, npf_nat_t *nt, int di) 233 bool (*match_func)(npf_cache_t *, npf_nat_t *, int); 255 npf_alg_exec(npf_cache_t *npc, npf_nat_t *nt, const npf_flow_t flow) 266 bool (*translate_func)(npf_cache_t *, npf_nat_t *, npf_flow_t); 294 npf_alg_conn(npf_cache_t *npc, int di) 306 npf_conn_t *(*inspect_func)(npf_cache_t *, int);
|
npf_inet.c | 33 * This layer manipulates npf_cache_t structure i.e. caches requested headers 250 npf_tcpsaw(const npf_cache_t *npc, tcp_seq *seq, tcp_seq *ack, uint32_t *win) 277 npf_fetch_tcpopts(npf_cache_t *npc, uint16_t *mss, int *wscale) 351 npf_set_mss(npf_cache_t *npc, uint16_t mss, uint16_t *old, uint16_t *new, 424 npf_cache_ip(npf_cache_t *npc, nbuf_t *nbuf) 566 npf_cache_tcp(npf_cache_t *npc, nbuf_t *nbuf, unsigned hlen) 582 npf_cache_ether(npf_cache_t *npc) 608 npf_cache_all(npf_cache_t *npc) 689 npf_recache(npf_cache_t *npc) 707 npf_rwrip(const npf_cache_t *npc, u_int which, const npf_addr_t *addr [all...] |
npf_socket.c | 49 static struct socket * npf_ip6_socket(npf_cache_t *, int); 51 static struct socket * npf_ip_socket(npf_cache_t *, int); 89 npf_socket_lookup_rid(npf_cache_t *npc, get_rid_t get_rid, uint32_t *rid, int dir) 111 npf_ip_socket(npf_cache_t *npc, int dir) 173 npf_ip6_socket(npf_cache_t *npc, int dir)
|
npf_sendpkt.c | 73 npf_ip6_setscope(const npf_cache_t *npc, struct ip6_hdr *ip6) 92 npf_return_tcp(npf_cache_t *npc) 217 npf_return_icmp(const npf_cache_t *npc) 246 npf_return_block(npf_cache_t *npc, const int retfl)
|
npf_handler.c | 82 npf_reassembly(npf_t *npf, npf_cache_t *npc, bool *mff) 147 npf_cache_t npc; 162 memset(&npc, 0, sizeof(npf_cache_t)); 350 npf_cache_t npc;
|
npf_ext_normalize.c | 103 npf_normalize_ip4(npf_cache_t *npc, npf_normalize_t *np) 144 npf_normalize(npf_cache_t *npc, void *params, const npf_match_info_t *mi,
|
npf_state.c | 145 npf_state_init(npf_cache_t *npc, npf_state_t *nst) 187 npf_state_inspect(npf_cache_t *npc, npf_state_t *nst, const npf_flow_t flow)
|
npf_ext_rndblock.c | 100 npf_ext_rndblock(npf_cache_t *npc, void *meta, const npf_match_info_t *mi,
|
npf_nat.c | 413 npf_nat_inspect(npf_cache_t *npc, const unsigned di) 433 npf_nat_algo_netmap(const npf_cache_t *npc, const npf_natpolicy_t *np, 448 npf_nat_getaddr(npf_cache_t *npc, npf_natpolicy_t *np, const unsigned alen) 477 npf_nat_create(npf_cache_t *npc, npf_natpolicy_t *np, npf_conn_t *con) 584 npf_dnat_translate(npf_cache_t *npc, npf_nat_t *nt, npf_flow_t flow) 621 npf_snat_translate(npf_cache_t *npc, const npf_natpolicy_t *np, npf_flow_t flow) 648 npf_nat_share_policy(npf_cache_t *npc, npf_conn_t *con, npf_nat_t *src_nt) 678 npf_nat_lookup(const npf_cache_t *npc, npf_conn_t *con, 716 npf_do_nat(npf_cache_t *npc, npf_conn_t *con, const unsigned di)
|
npf.h | 202 } npf_cache_t; typedef in typeref:struct:__anonb49106fe0208 205 npf_iscached(const npf_cache_t *npc, const int inf)
|
npf_ext_log.c | 83 npf_log(npf_cache_t *npc, void *meta, const npf_match_info_t *mi, int *decision)
|
npf_state_tcp.c | 292 npf_tcp_inwindow(npf_cache_t *npc, npf_state_t *nst, const npf_flow_t flow) 458 npf_state_tcp(npf_cache_t *npc, npf_state_t *nst, npf_flow_t flow)
|
npf_conn.c | 257 npf_conn_trackable_p(const npf_cache_t *npc) 326 npf_conn_lookup(const npf_cache_t *npc, const unsigned di, npf_flow_t *flow) 360 npf_conn_inspect(npf_cache_t *npc, const unsigned di, int *error) 424 npf_conn_establish(npf_cache_t *npc, const unsigned di, bool global) 560 npf_conn_setnat(const npf_cache_t *npc, npf_conn_t *con,
|
npf_rproc.c | 366 npf_rproc_run(npf_cache_t *npc, npf_rproc_t *rp, const npf_match_info_t *mi,
|
/src/usr.sbin/npf/npftest/libnpftest/ |
npf_test.h | 116 npf_cache_t * get_cached_pkt(struct mbuf *, const char *, uint32_t); 117 void put_cached_pkt(npf_cache_t *);
|
npf_mbuf_subr.c | 331 npf_cache_t * 335 npf_cache_t *npc = kmem_zalloc(sizeof(npf_cache_t), KM_SLEEP); 355 put_cached_pkt(npf_cache_t *npc) 359 kmem_free(npc, sizeof(npf_cache_t));
|
npf_bpf_test.c | 50 npf_cache_t *npc;
|
npf_nat_test.c | 168 npf_cache_t npc; 179 memset(&npc, 0, sizeof(npf_cache_t));
|
npf_gc_test.c | 52 npf_cache_t *npc = get_cached_pkt(m, NULL, NPF_RULE_LAYER_3);
|
npf_state_test.c | 137 npf_cache_t *npc;
|
npf_l2rule_test.c | 75 npf_cache_t *npc;
|