Home
last modified time | relevance | path

Searched defs:npf (Results 1 – 25 of 37) sorted by relevance

12

/netbsd-src/sys/net/npf/
H A Dnpf_conf.c64 npf_config_init(npf_t *npf) in npf_config_init()
113 npf_config_fini(npf_t *npf) in npf_config_fini()
134 npf_config_load(npf_t *npf, npf_config_t *nc, npf_conndb_t *conns, bool flush) in npf_config_load()
199 npf_config_enter(npf_t *npf) in npf_config_enter()
206 npf_config_exit(npf_t *npf) in npf_config_exit()
212 npf_config_locked_p(npf_t *npf) in npf_config_locked_p()
218 npf_config_sync(npf_t *npf) in npf_config_sync()
229 npf_config_read_enter(npf_t *npf) in npf_config_read_enter()
236 npf_config_read_exit(npf_t *npf, int s) in npf_config_read_exit()
247 npf_config_ruleset(npf_t *npf) in npf_config_ruleset()
[all …]
H A Dnpf_if.c74 #define NPF_IFMAP_SLOT2ID(npf, slot) ((npf)->ifmap_off + (slot) + 1) argument
75 #define NPF_IFMAP_ID2SLOT(npf, id) \ argument
79 npf_ifmap_init(npf_t *npf, const npf_ifops_t *ifops) in npf_ifmap_init()
94 npf_ifmap_fini(npf_t *npf) in npf_ifmap_fini()
102 npf_ifmap_lookup(npf_t *npf, const char *ifname) in npf_ifmap_lookup()
124 npf_ifmap_register(npf_t *npf, const char *ifname) in npf_ifmap_register()
156 npf_ifmap_flush(npf_t *npf) in npf_ifmap_flush()
188 npf_ifmap_getid(npf_t *npf, const ifnet_t *ifp) in npf_ifmap_getid()
199 npf_ifmap_copylogname(npf_t *npf, unsigned id, char *buf, size_t len) in npf_ifmap_copylogname()
218 npf_ifmap_copyname(npf_t *npf, unsigned id, char *buf, size_t len) in npf_ifmap_copyname()
[all …]
H A Dnpf.c78 npf_t *npf; in npfk_create() local
104 npfk_destroy(npf_t *npf) in npfk_destroy()
135 npfk_load(npf_t *npf, const void *config_ref, npf_error_t *err) in npfk_load()
149 npfk_gc(npf_t *npf) in npfk_gc()
155 npfk_thread_register(npf_t *npf) in npfk_thread_register()
161 npfk_thread_unregister(npf_t *npf) in npfk_thread_unregister()
168 npfk_getarg(npf_t *npf) in npfk_getarg()
174 npf_setkernctx(npf_t *npf) in npf_setkernctx()
190 npf_stats_inc(npf_t *npf, npf_stats_t st) in npf_stats_inc()
198 npf_stats_dec(npf_t *npf, npf_stats_t st) in npf_stats_dec()
[all …]
H A Dnpf_impl.h209 struct npf { struct
213 npf_config_t * config; argument
219 const npf_mbufops_t * mbufops; argument
223 npf_paraminfo_t * paraminfo; argument
235 npf_conndb_t * conn_db; argument
239 npf_portmap_t * portmap; argument
240 npf_algset_t * algset; argument
243 const npf_ifops_t * ifops; argument
244 struct npf_ifmap * ifmap; argument
255 LIST_ENTRY(npf) worker_entry; argument
[all …]
H A Dnpf_params.c53 npf_param_general_register(npf_t *npf) in npf_param_general_register()
90 npf_param_init(npf_t *npf) in npf_param_init()
103 npf_param_fini(npf_t *npf) in npf_param_fini()
135 npf_params_export(const npf_t *npf, nvlist_t *nv) in npf_params_export()
161 npf_param_allocgroup(npf_t *npf, npf_paramgroup_t group, size_t len) in npf_param_allocgroup()
169 npf_param_freegroup(npf_t *npf, npf_paramgroup_t group, size_t len) in npf_param_freegroup()
179 npf_param_register(npf_t *npf, npf_param_t *params, unsigned count) in npf_param_register()
224 npf_param_lookup(npf_t *npf, const char *name) in npf_param_lookup()
232 npf_param_check(npf_t *npf, const char *name, int val) in npf_param_check()
246 npfk_param_get(npf_t *npf, const char *name, int *val) in npfk_param_get()
[all …]
H A Dnpf_alg.c71 npf_alg_init(npf_t *npf) in npf_alg_init()
80 npf_alg_fini(npf_t *npf) in npf_alg_fini()
88 npf_alg_lookup(npf_t *npf, const char *name) in npf_alg_lookup()
105 npf_alg_construct(npf_t *npf, const char *name) in npf_alg_construct()
130 npf_alg_register(npf_t *npf, const char *name, const npfa_funcs_t *funcs) in npf_alg_register()
180 npf_alg_unregister(npf_t *npf, npf_alg_t *alg) in npf_alg_unregister()
221 npf_t *npf = npc->npc_ctx; in npf_alg_match() local
257 npf_t *npf = npc->npc_ctx; in npf_alg_exec() local
296 npf_t *npf = npc->npc_ctx; in npf_alg_conn() local
321 npf_alg_destroy(npf_t *npf, npf_alg_t *alg, npf_nat_t *nat, npf_conn_t *con) in npf_alg_destroy()
[all …]
H A Dnpf_worker.c132 npf_worker_addfunc(npf_t *npf, npf_workfunc_t work) in npf_worker_addfunc()
147 npf_worker_signal(npf_t *npf) in npf_worker_signal()
165 npf_worker_enlist(npf_t *npf) in npf_worker_enlist()
186 npf_worker_discharge(npf_t *npf) in npf_worker_discharge()
212 remove_npf_instance(npf_workerinfo_t *winfo, npf_t *npf) in remove_npf_instance()
233 process_npf_instance(npf_workerinfo_t *winfo, npf_t *npf) in process_npf_instance()
271 npf_t *npf; in npf_worker() local
H A Dnpf_ctl.c55 npf_mk_params(npf_t *npf, const nvlist_t *req, nvlist_t *resp, bool set) in npf_mk_params()
142 npf_mk_table(npf_t *npf, const nvlist_t *req, nvlist_t *resp, in npf_mk_table()
196 npf_mk_tables(npf_t *npf, const nvlist_t *req, nvlist_t *resp, npf_config_t *nc) in npf_mk_tables()
231 npf_mk_singlerproc(npf_t *npf, const nvlist_t *rproc, nvlist_t *resp) in npf_mk_singlerproc()
261 npf_mk_rprocs(npf_t *npf, const nvlist_t *req, nvlist_t *resp, npf_config_t *nc) in npf_mk_rprocs()
294 npf_mk_algs(npf_t *npf, const nvlist_t *req, nvlist_t *resp) in npf_mk_algs()
323 npf_mk_singlerule(npf_t *npf, const nvlist_t *req, nvlist_t *resp, in npf_mk_singlerule()
390 npf_mk_rules(npf_t *npf, const nvlist_t *req, nvlist_t *resp, npf_config_t *nc) in npf_mk_rules()
431 npf_mk_singlenat(npf_t *npf, const nvlist_t *nat, nvlist_t *resp, in npf_mk_singlenat()
481 npf_mk_natlist(npf_t *npf, const nvlist_t *req, nvlist_t *resp, npf_config_t *nc) in npf_mk_natlist()
[all …]
H A Dnpf_ifaddr.c50 lookup_ifnet_table(npf_t *npf, ifnet_t *ifp) in lookup_ifnet_table()
88 replace_ifnet_table(npf_t *npf, npf_table_t *newt) in replace_ifnet_table()
109 npf_ifaddr_sync(npf_t *npf, ifnet_t *ifp) in npf_ifaddr_sync()
154 npf_ifaddr_flush(npf_t *npf, ifnet_t *ifp) in npf_ifaddr_flush()
169 npf_ifaddr_syncall(npf_t *npf) in npf_ifaddr_syncall()
H A Dnpf_conn.c149 npf_conn_init(npf_t *npf) in npf_conn_init()
185 npf_conn_fini(npf_t *npf) in npf_conn_fini()
209 npf_conn_load(npf_t *npf, npf_conndb_t *ndb, bool track) in npf_conn_load()
249 npf_conn_tracking(npf_t *npf, bool track) in npf_conn_tracking()
259 const npf_t *npf = npc->npc_ctx; in npf_conn_trackable_p() local
328 npf_t *npf = npc->npc_ctx; in npf_conn_lookup() local
426 npf_t *npf = npc->npc_ctx; in npf_conn_establish() local
528 npf_conn_destroy(npf_t *npf, npf_conn_t *con) in npf_conn_destroy()
568 npf_t *npf = npc->npc_ctx; in npf_conn_setnat() local
713 npf_conn_expired(npf_t *npf, const npf_conn_t *con, uint64_t tsnow) in npf_conn_expired()
[all …]
H A Dnpf_os.c137 npf_t *npf = npf_getkernctx(); in npf_fini() local
152 npf_t *npf; in npf_init() local
222 npf_stats_export(npf_t *npf, void *data) in npf_stats_export()
257 npf_t *npf = npf_getkernctx(); in npf_dev_ioctl() local
330 npf_t *npf = npf_getkernctx(); in npf_autounload_p() local
389 npf_t *npf = npf_getkernctx(); in npfos_packet_handler() local
399 npf_t *npf = npf_getkernctx(); in npf_ifhook() local
417 npf_t *npf = npf_getkernctx(); in npf_ifaddrhook() local
443 npf_t *npf = npf_getkernctx(); in npf_pfil_register() local
512 npf_t *npf = npf_getkernctx(); in npf_pfil_unregister() local
H A Dnpf_rproc.c81 npf_ext_init(npf_t *npf) in npf_ext_init()
88 npf_ext_fini(npf_t *npf) in npf_ext_fini()
102 npf_ext_lookup(npf_t *npf, const char *name, bool autoload) in npf_ext_lookup()
130 npf_ext_register(npf_t *npf, const char *name, const npf_ext_ops_t *ops) in npf_ext_register()
151 npf_ext_unregister(npf_t *npf, void *extid) in npf_ext_unregister()
176 npf_ext_construct(npf_t *npf, const char *name, in npf_ext_construct()
H A Dnpf_conndb.c100 npf_conndb_sysinit(npf_t *npf) in npf_conndb_sysinit()
128 npf_conndb_sysfini(npf_t *npf) in npf_conndb_sysfini()
164 npf_conndb_lookup(npf_t *npf, const npf_connkey_t *ck, npf_flow_t *flow) in npf_conndb_lookup()
302 npf_conndb_gc_incr(npf_t *npf, npf_conndb_t *cd, const time_t now) in npf_conndb_gc_incr()
373 gc_freq_tune(const npf_t *npf, const npf_conndb_t *cd, const unsigned n) in gc_freq_tune()
389 npf_conndb_gc(npf_t *npf, npf_conndb_t *cd, bool flush, bool sync) in npf_conndb_gc()
H A Dnpf_ext_log.c155 npf_ext_log_init(npf_t *npf) in npf_ext_log_init()
169 npf_ext_log_fini(npf_t *npf) in npf_ext_log_fini()
178 npf_t *npf = npf_getkernctx(); in npf_ext_log_modcmd() local
H A Dnpf_ext_rndblock.c138 npf_ext_rndblock_init(npf_t *npf) in npf_ext_rndblock_init()
158 npf_ext_rndblock_fini(npf_t *npf) in npf_ext_rndblock_fini()
174 npf_t *npf = npf_getkernctx(); in npf_ext_rndblock_modcmd() local
H A Dnpf_ext_normalize.c208 npf_ext_normalize_init(npf_t *npf) in npf_ext_normalize_init()
223 npf_ext_normalize_fini(npf_t *npf) in npf_ext_normalize_fini()
232 npf_t *npf = npf_getkernctx(); in npf_ext_normalize_modcmd() local
H A Dnpf_state.c92 npf_state_sysinit(npf_t *npf) in npf_state_sysinit()
130 npf_state_sysfini(npf_t *npf) in npf_state_sysfini()
216 npf_state_etime(npf_t *npf, const npf_state_t *nst, const int proto) in npf_state_etime()
H A Dnpf_handler.c82 npf_reassembly(npf_t *npf, npf_cache_t *npc, bool *mff) in npf_reassembly()
144 npfk_packet_handler(npf_t *npf, struct mbuf **mp, ifnet_t *ifp, int di) in npfk_packet_handler()
H A Dnpf_alg_icmp.c457 npf_alg_icmp_init(npf_t *npf) in npf_alg_icmp_init()
470 npf_alg_icmp_fini(npf_t *npf) in npf_alg_icmp_fini()
480 npf_t *npf = npf_getkernctx(); in npf_alg_icmp_modcmd() local
H A Dnpf_state_tcp.c490 npf_state_tcp_timeout(npf_t *npf, const npf_state_t *nst) in npf_state_tcp_timeout()
519 npf_state_tcp_sysinit(npf_t *npf) in npf_state_tcp_sysinit()
588 npf_state_tcp_sysfini(npf_t *npf) in npf_state_tcp_sysfini()
H A Dnpf_ruleset.c362 npf_ruleset_list(npf_t *npf, npf_ruleset_t *rlset, const char *rname, in npf_ruleset_list()
433 npf_ruleset_export(npf_t *npf, const npf_ruleset_t *rlset, in npf_ruleset_export()
470 npf_ruleset_reload(npf_t *npf, npf_ruleset_t *newset, in npf_ruleset_reload()
605 npf_rule_alloc(npf_t *npf, const nvlist_t *rule) in npf_rule_alloc()
662 npf_rule_export(npf_t *npf, const npf_rule_t *rl) in npf_rule_export()
950 npf_ruleset_dump(npf_t *npf, const char *name) in npf_ruleset_dump()
H A Dnpf_nat.c180 npf_natpolicy_create(npf_t *npf, const nvlist_t *nat, npf_ruleset_t *rset) in npf_natpolicy_create()
415 npf_t *npf = npc->npc_ctx; in npf_nat_inspect() local
482 npf_t *npf = npc->npc_ctx; in npf_nat_create() local
869 npf_t *npf = np->n_npfctx; in npf_nat_destroy() local
901 npf_nat_export(npf_t *npf, const npf_nat_t *nt, nvlist_t *con_nv) in npf_nat_export()
929 npf_nat_import(npf_t *npf, const nvlist_t *nat, in npf_nat_import()
/netbsd-src/usr.sbin/npf/npftest/libnpftest/
H A Dnpf_gc_test.c68 npf_t *npf = npf_getkernctx(); in run_conn_gc() local
158 run_conndb_tests(npf_t *npf) in run_conndb_tests()
176 worker_test_task(npf_t *npf) in worker_test_task()
183 run_worker_tests(npf_t *npf) in run_worker_tests()
255 npf_t *npf = npf_getkernctx(); in npf_gc_test() local
H A Dnpf_rule_test.c62 npf_t *npf = npf_getkernctx(); run_raw_testcase() local
90 npf_t *npf = npf_getkernctx(); run_handler_testcase() local
105 npf_t *npf = npf_getkernctx(); npf_blockall_rule() local
145 npf_t *npf = npf_getkernctx(); test_dynamic() local
[all...]
H A Dnpf_test_subr.c65 npf_t *npf; in npf_test_init() local
89 npf_t *npf = npf_getkernctx(); in npf_test_fini() local
116 npf_t *npf = npf_getkernctx(); in npf_test_addif() local
224 npf_t *npf = npf_getkernctx(); in npf_test_statetrack() local

12