1 1.2 rmind /* $NetBSD: npf_test.h,v 1.2 2012/05/30 21:38:04 rmind 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 _LIB_NPF_TEST_H_ 8 1.1 rmind #define _LIB_NPF_TEST_H_ 9 1.1 rmind 10 1.1 rmind #include <sys/types.h> 11 1.1 rmind #include <sys/mbuf.h> 12 1.1 rmind 13 1.1 rmind #include <netinet/in_systm.h> 14 1.1 rmind #include <netinet/in.h> 15 1.1 rmind #include <netinet6/in6.h> 16 1.1 rmind 17 1.1 rmind #include <netinet/ip.h> 18 1.1 rmind #include <netinet/ip6.h> 19 1.1 rmind #include <netinet/tcp.h> 20 1.1 rmind #include <netinet/udp.h> 21 1.1 rmind #include <netinet/ip_icmp.h> 22 1.1 rmind 23 1.1 rmind #include <net/if.h> 24 1.1 rmind #include <net/if_ether.h> 25 1.1 rmind #include <net/ethertypes.h> 26 1.1 rmind 27 1.2 rmind int npf_test_load(const void *); 28 1.2 rmind int npf_test_handlepkt(const void *, size_t, unsigned, 29 1.2 rmind bool, int64_t *); 30 1.2 rmind 31 1.2 rmind struct mbuf * mbuf_getwithdata(const void *, size_t); 32 1.1 rmind struct mbuf * mbuf_construct_ether(int); 33 1.1 rmind struct mbuf * mbuf_construct(int); 34 1.1 rmind void * mbuf_return_hdrs(struct mbuf *, bool, struct ip **); 35 1.1 rmind void mbuf_icmp_append(struct mbuf *, struct mbuf *); 36 1.1 rmind 37 1.1 rmind bool npf_nbuf_test(bool); 38 1.1 rmind bool npf_processor_test(bool); 39 1.1 rmind bool npf_table_test(bool); 40 1.1 rmind 41 1.1 rmind #endif 42