xref: /netbsd-src/usr.sbin/npf/npftest/npftest.h (revision 7788a0781fe6ff2cce37368b4578a7ade0850cb1)
1 /*	$NetBSD: npftest.h,v 1.5 2012/08/15 19:47:38 rmind Exp $	*/
2 
3 /*
4  * Public Domain.
5  */
6 
7 #ifndef _NPF_TEST_H_
8 #define _NPF_TEST_H_
9 
10 #include <stdint.h>
11 #include <stdbool.h>
12 
13 void		rumpns_npf_test_init(void);
14 int		rumpns_npf_test_load(const void *);
15 unsigned	rumpns_npf_test_addif(const char *, unsigned, bool);
16 unsigned	rumpns_npf_test_getif(const char *);
17 int		rumpns_npf_test_handlepkt(const void *, size_t,
18 		    unsigned, bool, int64_t *);
19 
20 bool		rumpns_npf_nbuf_test(bool);
21 bool		rumpns_npf_processor_test(bool);
22 bool		rumpns_npf_table_test(bool);
23 bool		rumpns_npf_state_test(bool);
24 
25 bool		rumpns_npf_rule_test(bool);
26 bool		rumpns_npf_nat_test(bool);
27 
28 int		process_stream(const char *, const char *, unsigned);
29 
30 #endif
31