| /netbsd/src/sys/net/npf/ |
| D | npf_impl.h | 160 bool (*match)(npf_cache_t *, npf_nat_t *, int); 161 bool (*translate)(npf_cache_t *, npf_nat_t *, npf_flow_t); 162 npf_conn_t * (*inspect)(npf_cache_t *, int); 275 bool (*proc)(npf_cache_t *, void *, const npf_match_info_t *, int *); 340 int npf_cache_all(npf_cache_t *); 341 void npf_recache(npf_cache_t *); 343 bool npf_rwrip(const npf_cache_t *, u_int, const npf_addr_t *); 344 bool npf_rwrport(const npf_cache_t *, u_int, const in_port_t); 345 bool npf_rwrcksum(const npf_cache_t *, u_int, 347 int npf_napt_rwr(const npf_cache_t *, u_int, const npf_addr_t *, [all …]
|
| D | npf_alg_icmp.c | 74 npfa_icmp_match(npf_cache_t *npc, npf_nat_t *nt, int di) in npfa_icmp_match() 127 npfa_icmp4_inspect(const int type, npf_cache_t *npc, bool *hasqid) in npfa_icmp4_inspect() 160 npfa_icmp6_inspect(const int type, npf_cache_t *npc, bool *hasqid) in npfa_icmp6_inspect() 193 npfa_icmp_inspect(npf_cache_t *npc, npf_cache_t *enpc) in npfa_icmp_inspect() 206 memset(enpc, 0, sizeof(npf_cache_t)); in npfa_icmp_inspect() 238 npfa_icmp_conn(npf_cache_t *npc, int di) in npfa_icmp_conn() 241 npf_cache_t enpc; in npfa_icmp_conn() 320 npfa_icmp_nat(npf_cache_t *npc, npf_nat_t *nt, npf_flow_t flow) in npfa_icmp_nat() 323 npf_cache_t enpc; in npfa_icmp_nat()
|
| D | 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 *,
|
| D | npf_bpf.c | 85 npf_bpf_prepare(npf_cache_t *npc, bpf_args_t *args, uint32_t *M) in npf_bpf_prepare() 156 const npf_cache_t * const npc = (const npf_cache_t *)args->arg; in npf_cop_l3() 176 const npf_cache_t * const npc = (const npf_cache_t *)args->arg; in npf_cop_table()
|
| D | npf_inet.c | 250 npf_tcpsaw(const npf_cache_t *npc, tcp_seq *seq, tcp_seq *ack, uint32_t *win) in npf_tcpsaw() 277 npf_fetch_tcpopts(npf_cache_t *npc, uint16_t *mss, int *wscale) in npf_fetch_tcpopts() 351 npf_set_mss(npf_cache_t *npc, uint16_t mss, uint16_t *old, uint16_t *new, in npf_set_mss() 424 npf_cache_ip(npf_cache_t *npc, nbuf_t *nbuf) in npf_cache_ip() 566 npf_cache_tcp(npf_cache_t *npc, nbuf_t *nbuf, unsigned hlen) in npf_cache_tcp() 588 npf_cache_all(npf_cache_t *npc) in npf_cache_all() 669 npf_recache(npf_cache_t *npc) in npf_recache() 687 npf_rwrip(const npf_cache_t *npc, u_int which, const npf_addr_t *addr) in npf_rwrip() 700 npf_rwrport(const npf_cache_t *npc, u_int which, const in_port_t port) in npf_rwrport() 725 npf_rwrcksum(const npf_cache_t *npc, u_int which, in npf_rwrcksum() [all …]
|
| D | npf_alg.c | 219 npf_alg_match(npf_cache_t *npc, npf_nat_t *nt, int di) in npf_alg_match() 233 bool (*match_func)(npf_cache_t *, npf_nat_t *, int); in npf_alg_match() 255 npf_alg_exec(npf_cache_t *npc, npf_nat_t *nt, const npf_flow_t flow) in npf_alg_exec() 266 bool (*translate_func)(npf_cache_t *, npf_nat_t *, npf_flow_t); in npf_alg_exec() 294 npf_alg_conn(npf_cache_t *npc, int di) in npf_alg_conn() 306 npf_conn_t *(*inspect_func)(npf_cache_t *, int); in npf_alg_conn()
|
| D | npf_sendpkt.c | 73 npf_ip6_setscope(const npf_cache_t *npc, struct ip6_hdr *ip6) in npf_ip6_setscope() 92 npf_return_tcp(npf_cache_t *npc) in npf_return_tcp() 217 npf_return_icmp(const npf_cache_t *npc) in npf_return_icmp() 246 npf_return_block(npf_cache_t *npc, const int retfl) in npf_return_block()
|
| D | npf_nat.c | 413 npf_nat_inspect(npf_cache_t *npc, const unsigned di) in npf_nat_inspect() 433 npf_nat_algo_netmap(const npf_cache_t *npc, const npf_natpolicy_t *np, in npf_nat_algo_netmap() 448 npf_nat_getaddr(npf_cache_t *npc, npf_natpolicy_t *np, const unsigned alen) in npf_nat_getaddr() 477 npf_nat_create(npf_cache_t *npc, npf_natpolicy_t *np, npf_conn_t *con) in npf_nat_create() 584 npf_dnat_translate(npf_cache_t *npc, npf_nat_t *nt, npf_flow_t flow) in npf_dnat_translate() 621 npf_snat_translate(npf_cache_t *npc, const npf_natpolicy_t *np, npf_flow_t flow) in npf_snat_translate() 648 npf_nat_share_policy(npf_cache_t *npc, npf_conn_t *con, npf_nat_t *src_nt) in npf_nat_share_policy() 678 npf_nat_lookup(const npf_cache_t *npc, npf_conn_t *con, in npf_nat_lookup() 716 npf_do_nat(npf_cache_t *npc, npf_conn_t *con, const unsigned di) in npf_do_nat()
|
| D | npf_handler.c | 82 npf_reassembly(npf_t *npf, npf_cache_t *npc, bool *mff) in npf_reassembly() 147 npf_cache_t npc; in npfk_packet_handler() 162 memset(&npc, 0, sizeof(npf_cache_t)); in npfk_packet_handler()
|
| D | npf_state.c | 145 npf_state_init(npf_cache_t *npc, npf_state_t *nst) in npf_state_init() 187 npf_state_inspect(npf_cache_t *npc, npf_state_t *nst, const npf_flow_t flow) in npf_state_inspect()
|
| D | npf_ext_normalize.c | 103 npf_normalize_ip4(npf_cache_t *npc, npf_normalize_t *np) in npf_normalize_ip4() 144 npf_normalize(npf_cache_t *npc, void *params, const npf_match_info_t *mi, in npf_normalize()
|
| D | npf.h | 188 } npf_cache_t; typedef 191 npf_iscached(const npf_cache_t *npc, const int inf) in npf_iscached()
|
| D | npf_conn.c | 257 npf_conn_trackable_p(const npf_cache_t *npc) in npf_conn_trackable_p() 326 npf_conn_lookup(const npf_cache_t *npc, const unsigned di, npf_flow_t *flow) in npf_conn_lookup() 360 npf_conn_inspect(npf_cache_t *npc, const unsigned di, int *error) in npf_conn_inspect() 424 npf_conn_establish(npf_cache_t *npc, const unsigned di, bool global) in npf_conn_establish() 560 npf_conn_setnat(const npf_cache_t *npc, npf_conn_t *con, in npf_conn_setnat()
|
| D | npf_state_tcp.c | 292 npf_tcp_inwindow(npf_cache_t *npc, npf_state_t *nst, const npf_flow_t flow) in npf_tcp_inwindow() 458 npf_state_tcp(npf_cache_t *npc, npf_state_t *nst, npf_flow_t flow) in npf_state_tcp()
|
| D | npf_ext_rndblock.c | 100 npf_ext_rndblock(npf_cache_t *npc, void *meta, const npf_match_info_t *mi, in npf_ext_rndblock()
|
| D | npf_ext_log.c | 83 npf_log(npf_cache_t *npc, void *meta, const npf_match_info_t *mi, int *decision) in npf_log()
|
| D | npf_rproc.c | 366 npf_rproc_run(npf_cache_t *npc, npf_rproc_t *rp, const npf_match_info_t *mi, in npf_rproc_run()
|
| D | npf_connkey.c | 226 npf_conn_conkey(const npf_cache_t *npc, npf_connkey_t *key, in npf_conn_conkey()
|
| /netbsd/src/usr.sbin/npf/npftest/libnpftest/ |
| D | npf_mbuf_subr.c | 306 npf_cache_t * 310 npf_cache_t *npc = kmem_zalloc(sizeof(npf_cache_t), KM_SLEEP); in get_cached_pkt() 326 put_cached_pkt(npf_cache_t *npc) in put_cached_pkt() 330 kmem_free(npc, sizeof(npf_cache_t)); in put_cached_pkt()
|
| D | npf_test.h | 115 npf_cache_t * get_cached_pkt(struct mbuf *, const char *); 116 void put_cached_pkt(npf_cache_t *);
|
| D | npf_nat_test.c | 168 npf_cache_t npc; in checkresult() 179 memset(&npc, 0, sizeof(npf_cache_t)); in checkresult()
|
| D | npf_bpf_test.c | 50 npf_cache_t *npc; in test_bpf_code()
|
| D | npf_state_test.c | 137 npf_cache_t *npc; in process_packet()
|
| D | npf_gc_test.c | 52 npf_cache_t *npc = get_cached_pkt(m, NULL); in enqueue_connection()
|
| D | npf_rule_test.c | 201 npf_cache_t *npc; in run_raw_testcase()
|