opnsense-src/tests/sys/netinet
Lutz Donnerhacke 488f39f355 tests/libalias: Test LibAliasIn and redirection
Rework the tests to check the correct layer in a single test. Factor
out tests for reuse in other modules. Extend the test suite for
libalias(3) to incoming connections. Test the various types of
redirections.

gettimeofday(3) is almost as expensive as the calls to libalias.
So the call frequency for this call is reduced by a factor of 1000 in
order to neglect it's influence.

Using NAT entries became more realistic: A communication of a random
length of up to 150 packets (10% outgoing, 90% incoming) is applied
for each entry.

Add port forwardings to the performance tests.  This will cause random
incoming packets to match the random port forwardings opends beforehand.

After a long test run, a lot of ressouces have been allocated.
Measure the time tot free them.

Reviewed by:	kp (partially)
Differential Revision: https://reviews.freebsd.org/D30412
Differential Revision: https://reviews.freebsd.org/D30408
Differential Revision: https://reviews.freebsd.org/D30405
Differential Revision: https://reviews.freebsd.org/D30443

(cherry picked from commit f1462ab051)
(cherry picked from commit 755bab6d55)
(cherry picked from commit 6e87898a2c)
(cherry picked from commit d62e1ecba0)
(cherry picked from commit 5434ebd256)

Fix various bugs:
(cherry picked from commit ccac04cae5)
(cherry picked from commit 7b8696bf12)
(cherry picked from commit fef99da69f)
(cherry picked from commit f4c460dacd)
2021-06-02 11:35:09 +02:00
..
libalias tests/libalias: Test LibAliasIn and redirection 2021-06-02 11:35:09 +02:00
carp.sh ping: fix some man pages and tests after r368045 2020-11-26 04:55:02 +00:00
divert.sh Proper check if divert(4) module is present by the relevant tests 2020-05-27 16:33:00 +00:00
fibs.sh Add basic test for net.fibs dynamic growth. 2020-09-10 19:25:51 +00:00
fibs_test.sh Skip the right test case 2020-02-26 15:15:55 +00:00
forward.sh Add basic IPv4/IPv6 forwarding tests. 2020-03-10 19:52:19 +00:00
ip_reass_test.c Plug a trivial memory leak. 2018-11-20 18:13:18 +00:00
lpm.sh Add basic routing LPM tests. 2020-05-06 07:48:37 +00:00
Makefile test/libalias: Tests for instantiation and outgoing NAT 2021-05-29 15:09:55 +02:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
output.sh Try to enable multipath routing in flowid tests. 2020-10-16 21:51:17 +00:00
redirect.py Bring back redirect route expiration. 2020-01-22 13:53:18 +00:00
redirect.sh Fix dynamic redrects by adding forgotten RTF_HOST flag. 2020-03-03 15:33:43 +00:00
so_reuseport_lb_test.c Enable SO_LINGER to the so_reuseport_lb_test regression tests, preventing 2020-09-25 16:02:13 +00:00
socket_afinet.c Only skip sys.netinet.socket_afinet.socket_afinet_bind_zero in CI env 2020-04-20 14:24:13 +00:00
tcp_connect_port_test.c Add a regression test for the port-selection behavior fixed in r367680. 2020-11-14 15:44:28 +00:00
tcp_user_cookie.c Initial srv before using it in bind(2) 2017-05-28 09:08:30 +00:00
udp_dontroute.c Add fibs_test:udp_dontroute6, another IPv6 multi-FIB test 2017-02-07 17:40:59 +00:00