Home | History | Annotate | only in /src/usr.sbin/npf/npftest
Up to higher level directory
NameDateSize
libnpftest/20-Aug-2025
Makefile01-Jun-2025968
npfstream.c23-Jul-20192.9K
npftest.c10-Aug-20257.7K
npftest.conf20-Aug-20252.6K
npftest.h20-Jul-20251.9K
npftestl3.conf20-Jul-20251.9K
README29-Sep-2018825

README

      1 $NetBSD: README,v 1.7 2018/09/29 14:41:36 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.nvlist
     11 npftest -c /tmp/npf.nvlist -t
     12 
     13 Stream:
     14 
     15 tcpdump -w stream.pcap -i $interface "host $host and tcp"
     16 npfctl debug npftest.conf /tmp/npf.nvlist
     17 npftest -c /tmp/npf.nvlist -s stream.pcap > stream_npf_data.txt
     18 
     19 Preferably, use MALLOC_OPTIONS="AJ" and/or other facilities.
     20 
     21 Benchmark:
     22 
     23 npftest -b rule -c /tmp/npf.nvlist -p $ncpu
     24 
     25 ---
     26 
     27 Update RUMP libraries once the kernel side has been changed.  Hint:
     28 
     29 cd src/sys/net/npf
     30 sudo make includes
     31 
     32 cd src/sys/rump/net/lib/libnpf
     33 make distclean
     34 MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make -j8
     35 sudo MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make install
     36