我们有一个小脚本,基本上做到以下几点:
A) Capture packets using tcpdump and pipe to output file. B) Run our own clean + sort script on output file. C) Display results using | sort | etc etc...
所以,我们想知道是否有一个tcpdump参数设置tcpdump在退出之前将捕获的数据包的数量?
谢谢。
man tcpdump,-c是你的select。