summaryrefslogtreecommitdiffstats
path: root/regress/sys/net (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Setup two pair(4) and one lo(4) interface in different routingbluhm2021-02-052-0/+181
| | | | | domains and with different interface MTU. Test that packet flow and TCP path MTU discovery works.
* Syntax of pf(4) route-to has changed. Adapt tests.bluhm2021-02-014-24/+24
|
* Check the rewritten address output from tcpdump -e on pflog.bluhm2021-01-201-15/+37
|
* If ip or ip6 forwarding is not set, expect af-to failure.bluhm2021-01-161-1/+8
|
* IPv4 loopback addresses do not work with af-to as in_canforward()bluhm2021-01-142-55/+92
| | | | | prevents forwarding such packets. Switch regress to IPv4 link-local addresses. Add tests for pflog(4) on af-to rules.
* IPv6 link-local addresses are broken in pf(4) as scope ID is usedbluhm2021-01-142-28/+73
| | | | | inconsistently. Switch regress to unique-local addresses. Add tests for pflog(4) on rdr-to and nat-to rules.
* Add pflog(4) tests for IPv6.bluhm2021-01-132-8/+74
|
* Check that rule without logopt user has no uid in log entry.bluhm2021-01-121-4/+3
|
* Add some basic tests for pflog(4) interface. Create special routingbluhm2021-01-113-2/+225
| | | | | doamin, load rules into pf(4) regress anchor, tcpdump on pflog, send packets over lo(4), grep for expected result in tcpdump output.
* py3-scapy is now scapykn2020-12-303-9/+9
| | | | OK bluhm sthen
* Switch to scapy with python 3.bluhm2020-12-2518-177/+177
|
* Switch to scapy with python 3.bluhm2020-12-243-26/+26
|
* Switch to scapy with python 3.bluhm2020-12-243-28/+28
|
* Fix a race where the ${SUDO} process was killed instead of tcpdump.bluhm2020-12-171-2/+2
|
* Link pflow and wg regress to build.bluhm2020-12-171-2/+2
|
* Remove echo headlines.bluhm2020-12-175-44/+5
|
* Use setup and cleanup feature from regress framework.bluhm2020-12-173-218/+170
| | | | | Remove echo headlines. Use consistent target names. Makefile cleanup.
* Since rework of source IP selection, we can reverse the last changesdenis2020-11-073-14/+7
|
* Compiling rtable.c kernel source file needs satosin() and satosin6()bluhm2020-11-062-6/+5
| | | | now. Provide macros via CPPFLAGS on command line.
* Set up two WireGuard wg(4) interfaces in different routing domains.bluhm2020-11-041-0/+154
| | | | | | | | Combinations of IPv4 and IPv6 are used for tunnel and interface addresses. Check that routes are created correctly by WireGuard setup. Ping addresses on the wg interfaces locally and through the VPN tunnel. Check with tcpdump that encrypted traffic appears on loopback. Configure wg interface with bad key and check that ping does not work.
* The 'source IP address' commit (route.c r1.249) broke the rtable regresstb2020-11-031-1/+9
| | | | | | | | | | tests since it introduced use of ifa_ifwithaddr() from if.c, so the tests no longer link due to the missing symbol. Provide an ifa_ifwithaddr() shim that makes the test link again. Passes on amd64 and sparc64. ok bluhm
* Since OpenBSD has switched to the strict host model, this regressbluhm2020-02-021-7/+9
| | | | | needs IP forwarding enabled on the packet source machine. Otherwise the pf reply-to test fails.
* Do not create files as dependency of .BEGIN rule. Noticed bybluhm2020-01-153-9/+9
| | | | deraadt@ with make obj in regress.
* Rework when tests have to be skipped due to insufficient configurationbluhm2020-01-086-83/+156
| | | | of the regress machine.
* Test should also run if there is no obj directory. Name regressbluhm2019-07-121-5/+5
| | | | targets consistently with a run- prefix.
* Do not use a warning flag that base gcc does not understand,visa2019-06-242-2/+4
| | | | | | and fix the warnings. From Moritz Buhl
* Fix test after kernel interface change.visa2019-06-242-5/+5
| | | | From Moritz Buhl
* To avoid SYN retransmit, kill local tcp pf state that will be reused.bluhm2019-06-041-5/+17
| | | | This makes the state reuse tests faster and more reliable.
* Simplify the detection for installed python and scapy. Refactorbluhm2019-05-103-89/+69
| | | | | these tests to make them similar. Use the setup and cleanup variables.
* Mutex functions have no __ prefix anymore. Adjust kernel compatbluhm2019-05-081-3/+3
| | | | macros to make art.c compile again in regress.
* Make ART data structure definitions visible to userland, in order to fixmpi2019-03-311-2/+2
| | | | | | netstat(1) inspection of routing tables. From Naoki Fukaumi, ok yasuoka@
* The field dom_rtkeylen has been removed from struct domain. Convertbluhm2018-12-031-8/+23
| | | | to designated initializers and adapt the test. Fix white space.
* Before running the tests, consistently check whether interfaces orbluhm2018-06-253-16/+16
| | | | routing domains are busy.
* During test setup, IPv6 duplicate address detection creates somebluhm2018-06-251-15/+19
| | | | | bogus pf states. Flush all states after the pf rules have been set. Then the first test run will use the correct routing domains.
* Fix a segfault when inserting the same prefix multiple timesdenis2018-06-231-2/+2
| | | | OK bluhm@, jca@, kn@
* Add gif subdir.bluhm2018-04-191-2/+2
|
* Create two gif(4) interfaces in different routing domains. Testbluhm2018-04-192-0/+224
| | | | encapsulating IPv4 and IPv6 packets in IPv4 and IPv6 gif tunnels.
* typosanton2018-02-051-4/+4
|
* Enable traceroute test for incoming reply-to rule.bluhm2018-01-161-7/+1
|
* Enable traceroute test for incoming route-to rule.bluhm2018-01-151-14/+7
|
* Fix after recent mutex change.mpi2018-01-141-1/+4
|
* Add tests for incoming route-to and outgoing reply-to rules. Disablebluhm2018-01-112-42/+82
| | | | the cases that currently fail.
* As the divert-to pf state is not connected, it is not linked to thebluhm2017-12-261-9/+42
| | | | | | | incpb and so not removed when the socket is closed. Packets matching reply and reply-to states are linked to the sockets immediately. So these states must go away when the socket is closed. Check this with the output of "pfctl -s states" after running the Perl scripts.
* Add some comments what the tests are doing.bluhm2017-12-2113-16/+50
|
* When setting KTRACE in the environment, client and server writebluhm2017-12-189-57/+194
| | | | | ktrace files. This simplifies debugging as system calls can be inspected with kdump.
* Do not run sysctl and pfctl by != during make clean and make obj.bluhm2017-11-241-1/+3
| | | | requested by miod@
* Skip the test and print a warning if pf does not process packetsbluhm2017-11-201-11/+22
| | | | on additional loopback devices.
* Let packets jump between routing domains until the ttl is used up.bluhm2017-11-172-12/+91
| | | | Use tcpdump to check that the ttl decrements to one.
* Link loopback test to build.bluhm2017-11-171-2/+2
|
* Set up two loopback interfaces in different routing domains. Trybluhm2017-11-172-0/+129
| | | | | | to ping existing and non existing addresses in these domains. Also test pinging to different rdomains via pf. Create routing loops and check that the packet vanishes.