1. 打印数据长度大于0的数据包
To print all IPv4 HTTP packets to and from port 80, i.e. print only packets that contain data, not, for example, SYN and FIN packets and ACK-only packets. (IPv6 is left as an exercise for the reader.) tcpdump 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'
标签:IP,packets,TCP,ip,80,tcpdump,port From: https://www.cnblogs.com/hixiaowei/p/17033935.html