在调试似乎无法连接的python irc bot的过程中,我想:“我知道,我只是将其tcpdump并查看其作用。” 因此,我像往常一样运行tcpdump,它说这是捕获的数据包,但实际上并未写入cap文件。
akraut@lance ~/pcaps $ sudo tcpdump -w pyhole -s 0 "port 6667"
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
^C17 packets captured
17 packets received by filter
0 packets dropped by kernel
4294966881 packets dropped by interface
akraut@lance ~/pcaps $ ls -la
total 8
drwxr-xr-x 2 akraut akraut 4096 Feb 6 11:50 .
drwxr-xr-x 8 akraut akraut 4096 Feb 6 11:50 ..
akraut@lance ~/pcaps $
eth0
吗?如果使用环回或其他接口,则不会有任何流量转储到文件中。
17 packets received by filter
这并不意味着它捕获了一些流量?