NetBSD/usr.sbin/npf/npftest
rmind 64647e51e4 Implement NPF table listing and preservation of entries on reload.
Bump the version.
2012-10-29 02:27:11 +00:00
..
libnpftest Implement NPF table listing and preservation of entries on reload. 2012-10-29 02:27:11 +00:00
Makefile Move and rename librumpdev_npf to librumpnet_npf. 2012-08-14 22:31:43 +00:00
README Move and rename librumpdev_npf to librumpnet_npf. 2012-08-14 22:31:43 +00:00
npfstream.c Fix printf format 2012-09-12 16:26:02 +00:00
npftest.c More __dead 2012-09-14 15:37:03 +00:00
npftest.conf - Extend npftest: add ruleset inspection testing from the config generated 2012-08-12 03:35:13 +00:00
npftest.h Add npf_state_setsampler() for _NPF_TESTING case. This also fixes the build. 2012-08-15 19:47:38 +00:00

README

$NetBSD: README,v 1.2 2012/08/14 22:31:44 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

---

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 make -j8
sudo MKDEBUG=yes MKDEBUGLIB=yes DBG=-g make install