Home | History | Annotate | Line # | Download | only in npftest
npftest.h revision 1.1.2.4
      1 /*	$NetBSD: npftest.h,v 1.1.2.4 2014/05/22 11:43:07 yamt 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(int (*)(int, const char *, void *),
     16 		    const char *(*)(int, const void *, char *, socklen_t),
     17 		    long (*)(void));
     18 int		rumpns_npf_test_load(const void *);
     19 ifnet_t *	rumpns_npf_test_addif(const char *, bool, bool);
     20 ifnet_t *	rumpns_npf_test_getif(const char *);
     21 
     22 int		rumpns_npf_test_statetrack(const void *, size_t,
     23 		    ifnet_t *, bool, int64_t *);
     24 void		rumpns_npf_test_conc(bool, unsigned);
     25 
     26 bool		rumpns_npf_nbuf_test(bool);
     27 bool		rumpns_npf_bpf_test(bool);
     28 bool		rumpns_npf_table_test(bool, void *, size_t);
     29 bool		rumpns_npf_state_test(bool);
     30 
     31 bool		rumpns_npf_rule_test(bool);
     32 bool		rumpns_npf_nat_test(bool);
     33 
     34 int		process_stream(const char *, const char *, ifnet_t *);
     35 
     36 #endif
     37