Home | History | Annotate | Line # | Download | only in npftest
npftest.h revision 1.15
      1   1.4     rmind /*	$NetBSD: npftest.h,v 1.15 2018/09/29 14:41:36 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 _NPF_TEST_H_
      8   1.1     rmind #define _NPF_TEST_H_
      9   1.1     rmind 
     10   1.8     rmind #include <inttypes.h>
     11   1.1     rmind #include <stdbool.h>
     12   1.1     rmind 
     13  1.14  christos #if !defined(_NPF_STANDALONE)
     14  1.10     rmind #include <net/if.h>
     15  1.14  christos #else
     16  1.14  christos #define	rumpns_npf_test_addif		npf_test_addif
     17  1.14  christos #define	rumpns_npf_test_load		npf_test_load
     18  1.14  christos #define	rumpns_npf_test_init		npf_test_init
     19  1.14  christos #define	rumpns_npf_test_fini		npf_test_fini
     20  1.14  christos #define	rumpns_npf_test_getif		npf_test_getif
     21  1.14  christos #define	rumpns_npf_nbuf_test		npf_nbuf_test
     22  1.14  christos #define	rumpns_npf_bpf_test		npf_bpf_test
     23  1.14  christos #define	rumpns_npf_table_test		npf_table_test
     24  1.14  christos #define	rumpns_npf_state_test		npf_state_test
     25  1.14  christos #define	rumpns_npf_rule_test		npf_rule_test
     26  1.14  christos #define	rumpns_npf_nat_test		npf_nat_test
     27  1.14  christos #define	rumpns_npf_test_conc		npf_test_conc
     28  1.14  christos #define	rumpns_npf_test_statetrack	npf_test_statetrack
     29  1.14  christos #endif
     30  1.14  christos 
     31  1.14  christos #include "npf.h"
     32  1.10     rmind 
     33  1.13     rmind void		rumpns_npf_test_init(int (*)(int, const char *, void *),
     34  1.13     rmind 		    const char *(*)(int, const void *, char *, socklen_t),
     35  1.13     rmind 		    long (*)(void));
     36  1.14  christos void		rumpns_npf_test_fini(void);
     37  1.15     rmind int		rumpns_npf_test_load(const void *, size_t, bool);
     38  1.10     rmind ifnet_t *	rumpns_npf_test_addif(const char *, bool, bool);
     39  1.10     rmind ifnet_t *	rumpns_npf_test_getif(const char *);
     40   1.8     rmind 
     41   1.8     rmind int		rumpns_npf_test_statetrack(const void *, size_t,
     42  1.10     rmind 		    ifnet_t *, bool, int64_t *);
     43   1.9     rmind void		rumpns_npf_test_conc(bool, unsigned);
     44   1.2     rmind 
     45   1.1     rmind bool		rumpns_npf_nbuf_test(bool);
     46   1.6     rmind bool		rumpns_npf_bpf_test(bool);
     47  1.12     rmind bool		rumpns_npf_table_test(bool, void *, size_t);
     48   1.3     rmind bool		rumpns_npf_state_test(bool);
     49   1.1     rmind 
     50   1.4     rmind bool		rumpns_npf_rule_test(bool);
     51   1.4     rmind bool		rumpns_npf_nat_test(bool);
     52   1.4     rmind 
     53  1.10     rmind int		process_stream(const char *, const char *, ifnet_t *);
     54   1.2     rmind 
     55   1.1     rmind #endif
     56