[NLUUG]   Welcome to ftp.nluug.nl
Current directory: /NetBSD/NetBSD-release-10/src/usr.sbin/npf/npftest/
 
Current bandwidth utilization 1982.81 Mbit/s
Bandwidth utilization bar
Contents of README:
$NetBSD: README,v 1.7 2018/09/29 14:41:36 rmind Exp $

npftest - a tool for regression testing and debugging NPF.
It uses RUMP framework to run NPF kernel module in the userspace.

---

Test:

npfctl debug npftest.conf /tmp/npf.nvlist
npftest -c /tmp/npf.nvlist -t

Stream:

tcpdump -w stream.pcap -i $interface "host $host and tcp"
npfctl debug npftest.conf /tmp/npf.nvlist
npftest -c /tmp/npf.nvlist -s stream.pcap > stream_npf_data.txt

Preferably, use MALLOC_OPTIONS="AJ" and/or other facilities.

Benchmark:

npftest -b rule -c /tmp/npf.nvlist -p $ncpu

---

Update RUMP libraries once the kernel side has been changed.  Hint:

cd src/sys/net/npf
sudo make includes

cd src/sys/rump/net/lib/libnpf
make distclean
MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make -j8
sudo MKDEBUG=yes MKDEBUGLIB=yes DBG="-g -O2" make install

Icon  Name                                        Last modified      Size  
[DIR] Parent Directory - [DIR] CVS/ 17-Dec-2022 21:36 - [DIR] libnpftest/ 17-Dec-2022 21:36 - [   ] Makefile 07-Jul-2021 13:51 953 [TXT] README 29-Sep-2018 16:41 825 [TXT] npfstream.c 23-Jul-2019 02:52 2.9K [TXT] npftest.c 30-May-2020 16:16 7.0K [   ] npftest.conf 30-May-2020 16:16 1.4K [TXT] npftest.h 30-May-2020 16:16 1.6K

NLUUG - Open Systems. Open Standards
Become a member and get discounts on conferences and more, see the NLUUG website!