]> The Tcpdump Group git mirrors - tcpdump/commit
Add --print-sampling option to print every Nth packet
authorNathan O'Sullivan <[email protected]>
Mon, 17 Jan 2022 00:05:15 +0000 (10:05 +1000)
committerDenis Ovsienko <[email protected]>
Mon, 17 Jan 2022 19:43:59 +0000 (19:43 +0000)
commit63b104dc5b765f14404449d52a4d307fa17089fa
tree2d9fbee37896b16e268ca61445c8cf121956f6a1
parent0153755fe7f102363cb25da1d18931cc0973c36c
Add --print-sampling option to print every Nth packet

New option `--print-sampling=NTH` will parse and print every NTH packet,
with all other packets producing no output. This option enables
`--print` and `-S` flags.

Print sampling is useful for real-time inspection of an interface with
a high packet rate, or initial inspection of large capture files.
CHANGES
netdissect.h
print.c
tcpdump.1.in
tcpdump.c
tests/TESTLIST
tests/print-sampling.out [new file with mode: 0644]