[NLUUG]   Welcome to ftp.vim.org,
Hosted by ftp.nluug.nl
Current directory: /NetBSD/NetBSD-release-8/src/usr.sbin/npf/npftest/
Contents of README:
$NetBSD: README,v 1.6 2014/06/25 00:21:42 rmind Exp $

npftest - a tool for regression testing and debugging NPF.
It uses RUMP framework to run NPF kernel module in the userspace.

---

Test:

npfctl debug npftest.conf /tmp/npf.plist
npftest -c /tmp/npf.plist -t

Stream:

tcpdump -w stream.pcap -i $interface "host $host and tcp"
npfctl debug npftest.conf /tmp/npf.plist
npftest -c /tmp/npf.plist -s stream.pcap > stream_npf_data.txt

Preferably, use MALLOC_OPTIONS="AJ" and/or other facilities.

Benchmark:

npftest -b rule -c /tmp/npf.plist -p $ncpu

---

Update RUMP libraries once the kernel side has been changed.  Hint:

cd src/sys/net/npf
sudo make includes

cd src/sys/rump/net/lib/libnpf
make distclean
MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make -j8
sudo MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make install

Icon  Name                                       Last modified      Size  
[DIR] Parent Directory - [DIR] CVS/ 04-Jun-2017 10:21 - [DIR] libnpftest/ 04-Jun-2017 10:21 - [   ] Makefile 08-Aug-2016 18:31 707 [TXT] README 25-Jun-2014 02:21 820 [TXT] npfstream.c 27-Dec-2016 00:05 2.9K [TXT] npftest.c 17-May-2017 20:55 7.4K [   ] npftest.conf 13-Feb-2014 04:34 1.1K [TXT] npftest.h 27-Dec-2016 00:05 1.5K

NLUUG - Open Systems. Open Standards
Become a member and get discounts on conferences and more, see the NLUUG website!