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