]> The Tcpdump Group git mirrors - tcpdump/commit
Print an optional packet count on stderr instead of printing packets
authorFrancois-Xavier Le Bail <[email protected]>
Wed, 26 Feb 2020 15:55:21 +0000 (16:55 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Wed, 26 Feb 2020 19:12:30 +0000 (20:12 +0100)
commit4d810e062dc6bdfd75f7c70a24c90eeaf3094636
tree31d0d173d37240fce940dd6deb0fa7ff9cb3ed6b
parenta3bbf1e278bcfd4479f06b499d3c993adecda69f
Print an optional packet count on stderr instead of printing packets

This change add an option to print only on stderr the packet count
when reading capture file(s) instead of parsing/printing the packets.

If a filter is specified on the command line, tcpdump counts only
packets that were matched by the filter expression.

The option name is '--count'.
tcpdump.1.in
tcpdump.c