Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/npf/npftest set "testing mode" for ioctl I/O
details: https://anonhg.NetBSD.org/src/rev/be36559f086b
branches: trunk
changeset: 353684:be36559f086b
user: christos <christos%NetBSD.org@localhost>
date: Wed May 17 18:55:13 2017 +0000
description:
set "testing mode" for ioctl I/O
diffstat:
usr.sbin/npf/npftest/npftest.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (26 lines):
diff -r 667845bdf1ad -r be36559f086b usr.sbin/npf/npftest/npftest.c
--- a/usr.sbin/npf/npftest/npftest.c Wed May 17 18:21:40 2017 +0000
+++ b/usr.sbin/npf/npftest/npftest.c Wed May 17 18:55:13 2017 +0000
@@ -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 @@
#endif
}
+extern int rumpns_npfctl_testing;
+
int
main(int argc, char **argv)
{
@@ -276,6 +278,7 @@
/*
* Initialise the NPF kernel component.
*/
+ rumpns_npfctl_testing = 1;
npf_kern_init();
rumpns_npf_test_init(inet_pton, inet_ntop, random);
Home |
Main Index |
Thread Index |
Old Index