]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netpfil tests: improve sniffer.py
authorKajetan Staszkiewicz <vegeta@tuxpowered.net>
Fri, 20 Jan 2023 01:40:34 +0000 (02:40 +0100)
committerKristof Provost <kp@FreeBSD.org>
Sun, 29 Jan 2023 05:37:46 +0000 (06:37 +0100)
commit8968ad84e959d31d059c4c2990fe2d7554613ac0
tree1594d53f4cd6dc1c0859311feaf2d49118598ca8
parentc16c7b399645519b3b5a3999a5283eed088d6fed
netpfil tests: improve sniffer.py

Multiple improvements to sniffer.py:

* Remove ambiguity of configuring recvif, it must be now explicitly specified.
* Don't catch exceptions around creating the sniffer, let it properly
  fail and display the whole stack trace.
* Count correct packets so that duplicates can be found.

MFC after: 1 week
Sponsored by: InnoGames GmbH
Differential Revision: https://reviews.freebsd.org/D38120

(cherry picked from commit a39dedeb31052ec74b0cd394d56f8d7cc8534645)
tests/sys/net/pcp.py
tests/sys/net/stp.py
tests/sys/netpfil/common/pft_icmp_check.py
tests/sys/netpfil/common/pft_ping.py
tests/sys/netpfil/common/sniffer.py
tests/sys/netpfil/pf/CVE-2019-5598.py