NetBSD/usr.sbin/npf/npftest
rmind 7da3b338d7 npftest: fix the example in the README file. 2014-05-14 21:46:50 +00:00
..
libnpftest NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6), 2014-02-13 03:34:40 +00:00
Makefile Add bsd.own.mk for MKSLJIT, reorder some vars. 2013-11-16 17:12:35 +00:00
README npftest: fix the example in the README file. 2014-05-14 21:46:50 +00:00
npfstream.c NPF: add support for specifying the interfaces before they are attached. 2013-11-08 00:38:26 +00:00
npftest.c NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6), 2014-02-13 03:34:40 +00:00
npftest.conf NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6), 2014-02-13 03:34:40 +00:00
npftest.h NPF: add support for IPv6-to-IPv6 Network Prefix Translation (NPTv6), 2014-02-13 03:34:40 +00:00

README

$NetBSD: README,v 1.5 2014/05/14 21:46:50 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.

---

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