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/ec514ba12b67
branches:  trunk
changeset: 823985:ec514ba12b67
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 713d67109962 -r ec514ba12b67 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