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

Details

Provenance
vegeta_tuxpowered.netAuthored on Jan 20 2023, 1:40 AM
kpCommitted on Jan 22 2023, 3:26 AM
Differential Revision
D38120: netpfil tests: Improve sniffer.py
Parents
rG9cb6ba29cb70: vm: centralize VM_BATCHQUEUE_SIZE definition
Branches
Unknown
Tags
Unknown