NetBSD/usr.sbin/npf/npftest/npftest.h
rmind a79812ea10 NPF: add support for specifying the interfaces before they are attached.
If an interface is or gets detached, all associated rules and connections
will be deactivated (it might be useful to have an option to invalidate
the associated connections).  Once the interface is reattached they will
become active.

Bump NPF_VERSION.
2013-11-08 00:38:26 +00:00

35 lines
789 B
C

/* $NetBSD: npftest.h,v 1.10 2013/11/08 00:38:27 rmind Exp $ */
/*
* Public Domain.
*/
#ifndef _NPF_TEST_H_
#define _NPF_TEST_H_
#include <inttypes.h>
#include <stdbool.h>
#include <net/if.h>
void rumpns_npf_test_init(void);
int rumpns_npf_test_load(const void *);
ifnet_t * rumpns_npf_test_addif(const char *, bool, bool);
ifnet_t * rumpns_npf_test_getif(const char *);
int rumpns_npf_test_statetrack(const void *, size_t,
ifnet_t *, bool, int64_t *);
void rumpns_npf_test_conc(bool, unsigned);
bool rumpns_npf_nbuf_test(bool);
bool rumpns_npf_bpf_test(bool);
bool rumpns_npf_table_test(bool);
bool rumpns_npf_state_test(bool);
bool rumpns_npf_rule_test(bool);
bool rumpns_npf_nat_test(bool);
int process_stream(const char *, const char *, ifnet_t *);
#endif