summaryrefslogtreecommitdiffstats
path: root/regress/sys/net/pf_fragment/frag_dropold.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switch to scapy with python 3.bluhm2020-12-251-10/+10
|
* Do not use privileged or NFS source ports for UDP packets as inetdbluhm2017-01-181-6/+8
| | | | | ignores such packets. This should avoid some sporadic failures. While there, use variable names consistently in all tests.
* By removing all the sleeps I created a race in the pf tests. Thebluhm2016-10-201-0/+1
| | | | | | | | packet was sent and its reply received before the sniffer was up and running. So sleep a second after starting the sniffer thread but before sending the packet. With pf_forward 0m51.54s, pf_fragment 1m33.59s, pf_state 0m03.64s the test are still faster than with forking.
* Replace fork() and sleep() with a Python thread for sniffing packets.bluhm2016-10-201-7/+17
| | | | This reduces test execution time from 2m21.95s to 1m09.80s.
* Fix tests: Restrict getpid() to lower 16 bit so that it can stillbluhm2016-05-221-1/+1
| | | | | be used as packet id. Now scapy calls nexthopmtu with this name explicitly in icmp structure.
* Use a simpler expression to check the ether type in scapy. Thisbluhm2014-12-191-1/+1
| | | | makes the fragment tests work on FreeBSD. From Ilya Bakulin.
* Kill trailing whitespaces.bluhm2012-07-101-1/+1
|
* Add tests for pf fragment reassembly with all kinds of overlapping.bluhm2011-09-211-0/+58
Some fragments contain invalid data, this must be replaced to reassemble a valid packet.