npftest.h revision 1.17.8.1 1 1.17.8.1 perseant /* $NetBSD: npftest.h,v 1.17.8.1 2025/08/02 05:58:53 perseant Exp $ */
2 1.1 rmind
3 1.1 rmind /*
4 1.1 rmind * Public Domain.
5 1.1 rmind */
6 1.1 rmind
7 1.1 rmind #ifndef _NPF_TEST_H_
8 1.1 rmind #define _NPF_TEST_H_
9 1.1 rmind
10 1.8 rmind #include <inttypes.h>
11 1.1 rmind #include <stdbool.h>
12 1.1 rmind
13 1.14 christos #if !defined(_NPF_STANDALONE)
14 1.10 rmind #include <net/if.h>
15 1.14 christos #else
16 1.14 christos #define rumpns_npf_test_addif npf_test_addif
17 1.14 christos #define rumpns_npf_test_load npf_test_load
18 1.14 christos #define rumpns_npf_test_init npf_test_init
19 1.14 christos #define rumpns_npf_test_fini npf_test_fini
20 1.14 christos #define rumpns_npf_test_getif npf_test_getif
21 1.14 christos #define rumpns_npf_nbuf_test npf_nbuf_test
22 1.14 christos #define rumpns_npf_bpf_test npf_bpf_test
23 1.14 christos #define rumpns_npf_table_test npf_table_test
24 1.14 christos #define rumpns_npf_state_test npf_state_test
25 1.14 christos #define rumpns_npf_rule_test npf_rule_test
26 1.17.8.1 perseant #define rumpns_npf_layer2_rule_test npf_layer2_rule_test
27 1.14 christos #define rumpns_npf_nat_test npf_nat_test
28 1.17 rmind #define rumpns_npf_gc_test npf_gc_test
29 1.14 christos #define rumpns_npf_test_conc npf_test_conc
30 1.14 christos #define rumpns_npf_test_statetrack npf_test_statetrack
31 1.17.8.1 perseant #define rumpns_npf_guid_test npf_guid_test
32 1.17.8.1 perseant #define rumpns_npf_layer2only_test npf_layer2only_test
33 1.14 christos #endif
34 1.14 christos
35 1.14 christos #include "npf.h"
36 1.10 rmind
37 1.13 rmind void rumpns_npf_test_init(int (*)(int, const char *, void *),
38 1.13 rmind const char *(*)(int, const void *, char *, socklen_t),
39 1.13 rmind long (*)(void));
40 1.14 christos void rumpns_npf_test_fini(void);
41 1.15 rmind int rumpns_npf_test_load(const void *, size_t, bool);
42 1.10 rmind ifnet_t * rumpns_npf_test_addif(const char *, bool, bool);
43 1.10 rmind ifnet_t * rumpns_npf_test_getif(const char *);
44 1.8 rmind
45 1.8 rmind int rumpns_npf_test_statetrack(const void *, size_t,
46 1.10 rmind ifnet_t *, bool, int64_t *);
47 1.9 rmind void rumpns_npf_test_conc(bool, unsigned);
48 1.2 rmind
49 1.1 rmind bool rumpns_npf_nbuf_test(bool);
50 1.6 rmind bool rumpns_npf_bpf_test(bool);
51 1.12 rmind bool rumpns_npf_table_test(bool, void *, size_t);
52 1.3 rmind bool rumpns_npf_state_test(bool);
53 1.1 rmind
54 1.4 rmind bool rumpns_npf_rule_test(bool);
55 1.17.8.1 perseant bool rumpns_npf_layer2_rule_test(bool);
56 1.4 rmind bool rumpns_npf_nat_test(bool);
57 1.17.8.1 perseant bool rumpns_npf_guid_test(bool);
58 1.17 rmind bool rumpns_npf_gc_test(bool);
59 1.17.8.1 perseant bool rumpns_npf_layer2only_test(bool);
60 1.4 rmind
61 1.10 rmind int process_stream(const char *, const char *, ifnet_t *);
62 1.2 rmind
63 1.1 rmind #endif
64