Home | History | Annotate | Line # | Download | only in npftest
README revision 1.5
      1  1.5  rmind $NetBSD: README,v 1.5 2014/05/14 21:46:50 rmind Exp $
      2  1.1  rmind 
      3  1.1  rmind npftest - a tool for regression testing and debugging NPF.
      4  1.1  rmind It uses RUMP framework to run NPF kernel module in the userspace.
      5  1.1  rmind 
      6  1.1  rmind ---
      7  1.1  rmind 
      8  1.1  rmind Test:
      9  1.1  rmind 
     10  1.1  rmind npfctl debug npftest.conf /tmp/npf.plist
     11  1.1  rmind npftest -c /tmp/npf.plist -t
     12  1.1  rmind 
     13  1.1  rmind Stream:
     14  1.1  rmind 
     15  1.1  rmind tcpdump -w stream.pcap -i $INTERFACE "host $HOST and tcp"
     16  1.5  rmind npfctl debug npftest.conf /tmp/npf.plist
     17  1.5  rmind npftest -c /tmp/npf.plist -s stream.pcap > stream_npf_data.txt
     18  1.1  rmind 
     19  1.4  rmind Preferably, use MALLOC_OPTIONS="AJ" and/or other facilities.
     20  1.4  rmind 
     21  1.1  rmind ---
     22  1.1  rmind 
     23  1.1  rmind Update RUMP libraries once the kernel side has been changed.  Hint:
     24  1.1  rmind 
     25  1.1  rmind cd src/sys/net/npf
     26  1.1  rmind sudo make includes
     27  1.1  rmind 
     28  1.2  rmind cd src/sys/rump/net/lib/libnpf
     29  1.1  rmind make distclean
     30  1.3  rmind MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make -j8
     31  1.3  rmind sudo MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make install
     32