NetBSD/usr.sbin/npf/npftest
joerg d41a00c8da Add missing dead. 2013-09-24 22:52:14 +00:00
..
libnpftest Add missing dead. 2013-09-24 22:52:14 +00:00
Makefile NPF: 2013-02-09 03:35:31 +00:00
README NPF: 2013-02-09 03:35:31 +00:00
npfstream.c npftest: add some concurrency testing code. 2013-09-24 02:04:21 +00:00
npftest.c npftest: add a choice of "rule" or "state" for -b option. 2013-09-24 02:44:20 +00:00
npftest.conf Update npftest.conf for the recent syntax adjustments. 2013-09-23 15:30:32 +00:00
npftest.h npftest: add a choice of "rule" or "state" for -b option. 2013-09-24 02:44:20 +00:00

README

$NetBSD: README,v 1.4 2013/02/09 03:35:33 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 -c /tmp/npf.plist -s stream.pcap -o stream_npf_data.txt

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

---

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