]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
test/libalias: Tests for instantiation and outgoing NAT
authorLutz Donnerhacke <donner@FreeBSD.org>
Sun, 16 May 2021 21:37:37 +0000 (23:37 +0200)
committerLutz Donnerhacke <donner@FreeBSD.org>
Sat, 29 May 2021 13:34:53 +0000 (15:34 +0200)
commitfb70e02fafc1bb029fa17ac0aa0d1e7cbc4a5b81
treed07aea51f1a25e973fe7436b9f8b9a35b6afe8f8
parentf146c0338c6cba4b782877d6185c99cb6e45d6ec
test/libalias: Tests for instantiation and outgoing NAT

In order to modify libalias for performance, the existing
functionality must not change.  Enforce this.

Testing LibAliasOut functionality. This concentrates the typical use
case of initiating data transfers from the inside.  Provide a
exhaustive test for the data structure in order to check for
performance improvements.

In order to compare upcoming changes for their effectivness, measure
performance by counting opertions and the runtime of each operation
over the time.  Accumulate all tests in a single instance, so make it
complicated over the time.  If you wait long enough, you will notice
the expiry of old flows.

Reviewed by: kp
Differential Revision: https://reviews.freebsd.org/D30307
Differential Revision: https://reviews.freebsd.org/D30335
Differential Revision: https://reviews.freebsd.org/D30379

(cherry picked from commit 7fd8baee756efa18b6bbb17cbf3a652eb2058d87)
(cherry picked from commit c1fbb54f4b100d576da7ab065d1887a21f691936)
(cherry picked from commit 33c1bdfc3e098862100bab7a8dc729d8c78ffa7c)
tests/sys/netinet/Makefile
tests/sys/netinet/libalias/1_instance.c [new file with mode: 0644]
tests/sys/netinet/libalias/2_natout.c [new file with mode: 0644]
tests/sys/netinet/libalias/Makefile [new file with mode: 0644]
tests/sys/netinet/libalias/perf.c [new file with mode: 0644]
tests/sys/netinet/libalias/util.c [new file with mode: 0644]
tests/sys/netinet/libalias/util.h [new file with mode: 0644]