xref: /netbsd-src/usr.sbin/npf/npftest/npftest.h (revision 6a493d6bc668897c91594964a732d38505b70cbb)
1 /*	$NetBSD: npftest.h,v 1.10 2013/11/08 00:38:27 rmind Exp $	*/
2 
3 /*
4  * Public Domain.
5  */
6 
7 #ifndef _NPF_TEST_H_
8 #define _NPF_TEST_H_
9 
10 #include <inttypes.h>
11 #include <stdbool.h>
12 
13 #include <net/if.h>
14 
15 void		rumpns_npf_test_init(void);
16 int		rumpns_npf_test_load(const void *);
17 ifnet_t *	rumpns_npf_test_addif(const char *, bool, bool);
18 ifnet_t *	rumpns_npf_test_getif(const char *);
19 
20 int		rumpns_npf_test_statetrack(const void *, size_t,
21 		    ifnet_t *, bool, int64_t *);
22 void		rumpns_npf_test_conc(bool, unsigned);
23 
24 bool		rumpns_npf_nbuf_test(bool);
25 bool		rumpns_npf_bpf_test(bool);
26 bool		rumpns_npf_table_test(bool);
27 bool		rumpns_npf_state_test(bool);
28 
29 bool		rumpns_npf_rule_test(bool);
30 bool		rumpns_npf_nat_test(bool);
31 
32 int		process_stream(const char *, const char *, ifnet_t *);
33 
34 #endif
35