Created
August 31, 2013 00:36
-
-
Save fumin/6395512 to your computer and use it in GitHub Desktop.
command for filtering only packets with length > 0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Command for filtering only packets with length > 0 | |
# Copied from http://www.wains.be/pub/networking/tcpdump_advanced_filters.txt | |
# | |
sudo tcpdump -i lo0 -A -q '(((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0) && port 55976' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment