Module Name: src
Committed By: christos
Date: Wed May 17 18:55:13 UTC 2017
Modified Files:
src/usr.sbin/npf/npftest: npftest.c
Log Message:
set "testing mode" for ioctl I/O
To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/usr.sbin/npf/npftest/npftest.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/npf/npftest/npftest.c
diff -u src/usr.sbin/npf/npftest/npftest.c:1.20 src/usr.sbin/npf/npftest/npftest.c:1.21
--- src/usr.sbin/npf/npftest/npftest.c:1.20 Mon Dec 26 18:05:05 2016
+++ src/usr.sbin/npf/npftest/npftest.c Wed May 17 14:55:13 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: npftest.c,v 1.20 2016/12/26 23:05:05 christos Exp $ */
+/* $NetBSD: npftest.c,v 1.21 2017/05/17 18:55:13 christos Exp $ */
/*
* NPF testing framework.
@@ -195,6 +195,8 @@ npf_kern_fini(void)
#endif
}
+extern int rumpns_npfctl_testing;
+
int
main(int argc, char **argv)
{
@@ -276,6 +278,7 @@ main(int argc, char **argv)
/*
* Initialise the NPF kernel component.
*/
+ rumpns_npfctl_testing = 1;
npf_kern_init();
rumpns_npf_test_init(inet_pton, inet_ntop, random);