npf_test.h revision 1.3.2.4 1 1.3.2.3 riz /* $NetBSD: npf_test.h,v 1.3.2.4 2012/08/13 17:49:53 riz Exp $ */
2 1.3.2.2 riz
3 1.3.2.2 riz /*
4 1.3.2.2 riz * Public Domain.
5 1.3.2.2 riz */
6 1.3.2.2 riz
7 1.3.2.2 riz #ifndef _LIB_NPF_TEST_H_
8 1.3.2.2 riz #define _LIB_NPF_TEST_H_
9 1.3.2.2 riz
10 1.3.2.2 riz #include <sys/types.h>
11 1.3.2.2 riz #include <sys/mbuf.h>
12 1.3.2.2 riz
13 1.3.2.2 riz #include <netinet/in_systm.h>
14 1.3.2.2 riz #include <netinet/in.h>
15 1.3.2.2 riz #include <netinet6/in6.h>
16 1.3.2.2 riz
17 1.3.2.2 riz #include <netinet/ip.h>
18 1.3.2.2 riz #include <netinet/ip6.h>
19 1.3.2.2 riz #include <netinet/tcp.h>
20 1.3.2.2 riz #include <netinet/udp.h>
21 1.3.2.2 riz #include <netinet/ip_icmp.h>
22 1.3.2.2 riz
23 1.3.2.2 riz #include <net/if.h>
24 1.3.2.2 riz #include <net/if_ether.h>
25 1.3.2.2 riz #include <net/ethertypes.h>
26 1.3.2.2 riz
27 1.3.2.2 riz int npf_test_load(const void *);
28 1.3.2.4 riz unsigned npf_test_addif(const char *, unsigned, bool);
29 1.3.2.4 riz unsigned npf_test_getif(const char *);
30 1.3.2.2 riz int npf_test_handlepkt(const void *, size_t, unsigned,
31 1.3.2.2 riz bool, int64_t *);
32 1.3.2.2 riz
33 1.3.2.2 riz struct mbuf * mbuf_getwithdata(const void *, size_t);
34 1.3.2.2 riz struct mbuf * mbuf_construct_ether(int);
35 1.3.2.2 riz struct mbuf * mbuf_construct(int);
36 1.3.2.3 riz struct mbuf * mbuf_construct6(int);
37 1.3.2.2 riz void * mbuf_return_hdrs(struct mbuf *, bool, struct ip **);
38 1.3.2.2 riz void mbuf_icmp_append(struct mbuf *, struct mbuf *);
39 1.3.2.2 riz
40 1.3.2.2 riz bool npf_nbuf_test(bool);
41 1.3.2.2 riz bool npf_processor_test(bool);
42 1.3.2.2 riz bool npf_table_test(bool);
43 1.3.2.2 riz bool npf_state_test(bool);
44 1.3.2.2 riz
45 1.3.2.4 riz bool npf_rule_test(bool);
46 1.3.2.4 riz bool npf_nat_test(bool);
47 1.3.2.4 riz
48 1.3.2.2 riz #endif
49