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