Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 13-Feb-2023 | - | ||||
libnpftest/ | H | 08-May-2022 | - | 2,605 | 1,915 | |
Makefile | H A D | 08-May-2022 | 953 | 45 | 27 | |
README | H A D | 08-May-2022 | 825 | 36 | 22 | |
npfstream.c | H A D | 08-May-2022 | 2.9 KiB | 126 | 100 | |
npftest.c | H A D | 08-May-2022 | 7 KiB | 355 | 285 | |
npftest.conf | H A D | 08-May-2022 | 1.4 KiB | 67 | 46 | |
npftest.h | H A D | 08-May-2022 | 1.6 KiB | 58 | 42 |
README
1$NetBSD: README,v 1.7 2018/09/29 14:41:36 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.nvlist 11npftest -c /tmp/npf.nvlist -t 12 13Stream: 14 15tcpdump -w stream.pcap -i $interface "host $host and tcp" 16npfctl debug npftest.conf /tmp/npf.nvlist 17npftest -c /tmp/npf.nvlist -s stream.pcap > stream_npf_data.txt 18 19Preferably, use MALLOC_OPTIONS="AJ" and/or other facilities. 20 21Benchmark: 22 23npftest -b rule -c /tmp/npf.nvlist -p $ncpu 24 25--- 26 27Update RUMP libraries once the kernel side has been changed. Hint: 28 29cd src/sys/net/npf 30sudo make includes 31 32cd src/sys/rump/net/lib/libnpf 33make distclean 34MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make -j8 35sudo MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make install 36