]> The Tcpdump Group git mirrors - tcpdump/commit
Only print packets_captured as often as necessary.
authorDenis Ovsienko <[email protected]>
Thu, 12 Oct 2017 14:55:36 +0000 (15:55 +0100)
committerDenis Ovsienko <[email protected]>
Thu, 12 Oct 2017 15:03:55 +0000 (16:03 +0100)
commit6137b4ba9925abb6c97660820882d3a4573ea2d5
treeaa8986b87d2fb2d26bdfd261d01ddf48f91514d2
parent6bb6afbc123fd0f08f6a1250eb27cb91c69fdd6d
Only print packets_captured as often as necessary.

Before this change tcpdump would, when run with -w and -v, print the
number of captured packets regardless if it had already printed the same
number, e.g. it could print "Got 0" again and again, triggering the
terminal emulator activity detection all the time and making it useless.
Only print the string when it is different from the previous one.
tcpdump.c