HomeFreeBSD

netpfil tests: improve sniffer.py

Description

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)

Details

Provenance
vegeta_tuxpowered.netAuthored on Jan 20 2023, 1:40 AM
kpCommitted on Jan 29 2023, 5:37 AM
Differential Revision
D38120: netpfil tests: Improve sniffer.py
Parents
rGc16c7b399645: nfsserver: Fix handling of SP4_NONE
Branches
Unknown
Tags
Unknown