OpenGrok
Cross Reference: npf_bpf_test.c
xref
: /
src
/
usr.sbin
/
npf
/
npftest
/
libnpftest
/
npf_bpf_test.c
Home
|
History
|
Annotate
|
Download
|
only in
libnpftest
History log of
/src/usr.sbin/npf/npftest/libnpftest/npf_bpf_test.c
Revision
Date
Author
Comments
1.12
01-Jul-2025
joe
Rump testing for layer 2 filtering in NPF
reviewed by christos@
1.11
23-Jul-2019
rmind
NPF improvements:
- Add support for dynamic NETMAP algorithm (stateful net-to-net).
- Add most of the support for the dynamic NAT rules; a little bit more
userland work is needed to finish this up and enable.
- Replace 'stateful-ends' with more permissive 'stateful-all'.
- Add various tunable parameters and document them, see npf-params(7).
- Reduce the memory usage of the connection state table (conndb).
- Portmap rewrite: use memory more efficiently, handle addresses dynamically.
- Bug fix: add splsoftnet()/splx() around the thmap writers and comment.
- npftest: clean up and simplify; fix some memleaks to make ASAN happy.
1.10
19-Jan-2019
rmind
Major NPF improvements:
- Convert NPF connection table to thmap. State lookup is now lock-free.
- Improve connection state G/C: it is now incremental and tunable.
- Add support for dynamic NAT address. Translation addresses can now be
selected from a pool of addresses. There are two selection algorithms,
"ip-hash" and "round-robin" (see the man page).
- Translation address can be specified as e.g. ifaddrs(wm0) in npf.conf
to dynamically choose an IP from the interface address(es).
- Add support for the NETMAP algorithm with static NAT for net-to-net
translation (it is equivalent to iptables NETMAP logic).
- Convert 'ipset' tables to use thmap; the table lookup is now lock-free.
- Misc improvements, bug fixes and more unit tests.
- Bump NPF_VERSION (will also bump libnpf).
1.9
29-Sep-2018
rmind
NPF: Major rework -- migrate NPF to the libnv library.
- This conversion significantly simplifies the code and moves NPF to
a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
previous versions. Also, different serialisation format means NPF
connection/config saving and loading is not compatible with the
previous versions either.
Thanks to christos@ for extra testing.
1.8
26-Dec-2016
christos
branches: 1.8.12; 1.8.14;
Sync NPF with the version on github: backport standalone NPF changes,
which allow us to create and run separate NPF instances. Minor fixes.
(from rmind@)
1.7
20-Jul-2014
rmind
branches: 1.7.4; 1.7.8;
NPF: add nbuf_t * into npf_cache_t and remove unnecessary carrying by argument.
1.6
25-Jun-2014
rmind
Adjust NPF to the recent BPF / BPF JIT changes and make it work again.
All regression tests are happy now (hi alnsn!).
1.5
24-Jun-2014
alnsn
Implement copfuncs and external memory in bpfjit.
1.4
23-Nov-2013
rmind
branches: 1.4.2; 1.4.4;
npftest: adjust for the npf_bpf_filter() change.
1.3
16-Nov-2013
rmind
Enable bpfjit for npftest.
1.2
08-Nov-2013
rmind
NPF: add support for specifying the interfaces before they are attached.
If an interface is or gets detached, all associated rules and connections
will be deactivated (it might be useful to have an option to invalidate
the associated connections). Once the interface is reattached they will
become active.
Bump NPF_VERSION.
1.1
19-Sep-2013
rmind
- Convert NPF to use BPF byte-code by default. Compile BPF byte-code in
npfctl(8) and generate separate marks to describe the filter criteria.
- Rewrite 'npfctl show' functionality and fix some of the bugs.
- npftest: add a test for BPF COP.
- Bump NPF_VERSION.
1.4.4.2
22-May-2014
yamt
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
1.4.4.1
23-Nov-2013
yamt
file npf_bpf_test.c was added on branch yamt-pagecache on 2014-05-22 11:43:07 +0000
1.4.2.1
10-Aug-2014
tls
Rebase.
1.7.8.1
07-Jan-2017
pgoyette
Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
1.7.4.2
20-Aug-2014
tls
Rebase to HEAD as of a few days ago.
1.7.4.1
20-Jul-2014
tls
file npf_bpf_test.c was added on branch tls-maxphys on 2014-08-20 00:05:11 +0000
1.8.14.2
13-Apr-2020
martin
Mostly merge changes from HEAD upto 20200411
1.8.14.1
10-Jun-2019
christos
Sync with HEAD
1.8.12.2
26-Jan-2019
pgoyette
Sync with HEAD
1.8.12.1
30-Sep-2018
pgoyette
Ssync with HEAD
Indexes created Tue Oct 14 08:09:56 GMT 2025