summaryrefslogtreecommitdiff
path: root/regress/sys/net
AgeCommit message (Collapse)Author
2016-05-22Fix tests: Restrict getpid() to lower 16 bit so that it can stillAlexander Bluhm
be used as packet id. Now scapy calls nexthopmtu with this name explicitly in icmp structure.
2016-05-03Fix some Perl statements perlcritic was bitching about: VariableAlexander Bluhm
declared in conditional statement.
2016-03-24Remove #ifdef from code shared with the kernel, IPv6 is always enabledMartin Pieuchot
in the tests.
2016-03-23Assert that the mask to prefix length conversion is correct whenMartin Pieuchot
removing an entry. While here print the corresponding error string when available if rtable_* function fail.
2015-12-04Sync after rt_mask() removal.Martin Pieuchot
2015-12-03Sync to recent changes including SRP protection of rtable_get(), useMartin Pieuchot
of a SRPL for the multipath list and rtable_delete() API change.
2015-11-12ART-specific bits to make sure root tables are properly freed.Martin Pieuchot
While here make sure we test the special "default route" case.
2015-11-04Basic framework to test the rtable_* API directly from userland.Martin Pieuchot
You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table to really stress this test framework. I did not commit them because CVS certainly doesn't like ~7M file.
2015-11-01Route output to local addresses has changed, ping6 command lineAlexander Bluhm
options have changed, tun has been renamed to tap. Adapt tests.
2015-10-26Add regress test on local route insertionsVincent Gross
2015-09-11fter fixing poll(2) semantics in dynamic TCP buffer size update,Alexander Bluhm
making netcat non-blocking and fixing ip6_forward() ICMP6 checksum, this test can be made more aggressive. Delete the path MTU route before sending TCP streams through the pf firewall. This checks that PMTU discovery works with outgoing interface MTU and router MTU. Test IPv4 and IPv6 protocols ICMP echo, UDP, TCP with pf nat-to, rdr-to, af-to, route-to, reply-to. Some af-to cases seem to be broken.
2015-08-24Extend the pf forward and fragment tests with a second challengeAlexander Bluhm
for path MTU discovery. The router behind the pf machine has MTU 1300. The ICMP packet generated by the router matches the pf state and is NATed correctly. Additionally the pf machine itself has an interface MTU 1400. So when pf is sending a packet is has to generate a correct "fragmentation needed" or "packet too big" ICMP response. This is done with pf route-to and reply-to.
2015-08-24Enable path MTU test with ping for IPv6. Scapy srp1() does notAlexander Bluhm
accept inner IPv6 packets in ICMP6 with bad checksum created by pf. Use same workaround as in pf_forward tests and fork a process for sniffing.
2015-08-17Add forwarding tests for pf route-to and reply-to. Keep pf forwardAlexander Bluhm
and pf fragment tests in sync.
2015-08-13Add IPv6 fragment tests for pf route-to. A big ping packet is sentAlexander Bluhm
in fragments to a machine running pf. From there it is forwarded with route-to to a router with a smaller MTU. Path MTU discovery has to make successive fragments shorter and pf route-to has to preserve the fragment size.
2015-07-28Add more and deeper tests for pf divert-reply rules. EspeciallyAlexander Bluhm
the combination of sending and receiving multiple packets over one socket is tested for UDP, raw IP and ICMP.
2015-07-21Extend the setup with another address for testing pf route-to.Alexander Bluhm
2015-07-20When test pf.conf changes, check its syntax and use the new one.Alexander Bluhm
2015-06-25Align the three variants of Remote.pm.Alexander Bluhm
2015-02-09sort includes correctlyTheo de Raadt
2014-12-19Use a simpler expression to check the ether type in scapy. ThisAlexander Bluhm
makes the fragment tests work on FreeBSD. From Ilya Bakulin.
2014-08-18Make the perl modules consistent for the multiple regression tests.Alexander Bluhm
This includes coding style, better error messages and variable naming.
2014-07-18The pf forward tests were running rdr-to and nat-to simultaneouslyAlexander Bluhm
only. Change address layout and add individual tests for each feature rdr-to and nat-to and rdr-to together with nat-to.
2014-07-13Make the pf_fragment test pass again. pf does not adjust theAlexander Bluhm
checksum of a NATed UDP or TCP packet in the payload of an ICMP packet anymore. Disable all test that rely on this feature. Check that the router's interface mtu has been set to 1300.
2014-07-13Make the pf_forward test pass again. Check that the router'sAlexander Bluhm
interface mtu has been set to 1300. New netcat needs -N for shutdown. The IPv4 and IPv6 addresses for the af-to tests must have corresponding host numbers.
2014-07-12Automatically load the required pf rules into the kernel of theAlexander Bluhm
remote test machine.
2014-07-12Teach these pf regress tests to run with obj directory and to failAlexander Bluhm
softly if the setup is incomplete. Link them to the build.
2014-07-12Use a saner and consistent address layout for my network tests thatAlexander Bluhm
run over 4 machines. Add a check-setup target to verify that interface addresses and routes are properly set up.
2014-07-11Put a license file into the test directories with multiple argumentAlexander Bluhm
files. We do not want to put a license header into each subtest. suggested by reyk@
2014-07-11Make the test output easier to read by splitting the test casesAlexander Bluhm
with an empty line and a header line.
2014-03-29pflowproto 9 is no more.Florian Obser
While there fix regression for inaddr_any flowsrc.
2014-01-08Fix the tests for the pf divert state and socket reuse.Alexander Bluhm
2013-11-03Grep pf state table on remote machine to find state reuse problems.Alexander Bluhm
2013-06-03Add a regression test suite for the pf divert-to and divert-replyAlexander Bluhm
feature. It requires two machines, the local host is running the regression test, the remote host gets pf divert rules installed. The diverted TCP connections are running between these hosts in both directions. The remote host is controlled via ssh.
2013-11-03Add divert tests that reuse protocol and port. They show whatAlexander Bluhm
happens when we close the socket but the divert state remains. If a new socket uses the same protocol and port, it will use the old dangling state. Without searching for the correct rule, the divert-to will fail. There are real life corner cases where this occurred.
2013-11-01Link the pf_divert regression test to the build again as it doesAlexander Bluhm
not fail anymore if propper setup is missing.
2013-11-01Add a check-setup target. This allows to find setup errors moreAlexander Bluhm
easily. A remote machine with correct addresses, routes and pf rules is needed for the test.
2013-10-17Fix run-regress-fragping to use ping(8) instead of ping6(8) to send theLawrence Teo
initial Path-MTU discovery packet. OK bluhm@
2013-09-13Test various combinations of flowdst, flowsrc and proto.Florian Obser
2013-09-11Enable pf if it's not already running.Florian Obser
2013-08-23flow regression tests.Florian Obser
2013-08-13Sync with pflow changes.Florian Obser
2013-08-11Check wether the required perl packages are installed and that theAlexander Bluhm
environment for the remote testing machine is set up. If not, print a message and skip the regression tests.
2013-08-11typoFlorian Obser
2013-08-11pflow(4) template regression testsFlorian Obser
2013-08-09Add RCS id and ISC license.Alexander Bluhm
2013-08-01Some tests are currently failing. Only run those if the REGRESS_FULLMark Kettenis
variable is set.
2013-06-17Do not write my IP addresses into the pf_divert Makefile, the testerAlexander Bluhm
has to fill in his own addresses. Link the pf_divert regression tests to the build.
2013-06-05Add tests for ICMP and ICMP6 divert-to.Alexander Bluhm
2013-06-04Add tests for raw IP divert. Set effective user ID to 0 only duringAlexander Bluhm
privileged operations for raw sockets and bind any.