1 $NetBSD: README,v 1.2 2012/08/14 22:31:44 rmind Exp $ 2 3 npftest - a tool for regression testing and debugging NPF. 4 It uses RUMP framework to run NPF kernel module in the userspace. 5 6 --- 7 8 Test: 9 10 npfctl debug npftest.conf /tmp/npf.plist 11 npftest -c /tmp/npf.plist -t 12 13 Stream: 14 15 tcpdump -w stream.pcap -i $INTERFACE "host $HOST and tcp" 16 npfctl debug 17 npftest -c /tmp/npf.plist -s stream.pcap -o stream_npf_data.txt 18 19 --- 20 21 Update RUMP libraries once the kernel side has been changed. Hint: 22 23 cd src/sys/net/npf 24 sudo make includes 25 26 cd src/sys/rump/net/lib/libnpf 27 make distclean 28 MKDEBUG=yes MKDEBUGLIB=yes DBG=-g make -j8 29 sudo MKDEBUG=yes MKDEBUGLIB=yes DBG=-g make install 30