Skip to content

Instantly share code, notes, and snippets.

@fumin
Created August 31, 2013 00:36
Show Gist options
  • Save fumin/6395512 to your computer and use it in GitHub Desktop.
Save fumin/6395512 to your computer and use it in GitHub Desktop.
command for filtering only packets with length > 0
# 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