NetBSD/usr.sbin/npf/npftest
rmind 3107fd1eb5 - nbuf_ensure_contig: rework to use m_ensure_contig(9), which will not free
the mbuf chain on failure.  Fixes some corner cases.  Improve regression
  test and sprinkle some asserts.
- npf_reassembly: clear nbuf on IPv6 reassembly failure path (partial fix).
  The problem was found and fix provided by Anthony Mallet.
2013-01-20 18:45:56 +00:00
..
libnpftest - nbuf_ensure_contig: rework to use m_ensure_contig(9), which will not free 2013-01-20 18:45:56 +00:00
Makefile Move and rename librumpdev_npf to librumpnet_npf. 2012-08-14 22:31:43 +00:00
README - Rework NPF's nbuf interface: use advancing and ensuring as a main method. 2012-12-24 19:05:42 +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.3 2012/12/24 19:05:46 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 -O2" make -j8
sudo MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make install