Created
December 8, 2013 16:59
-
-
Save strlcp/7860235 to your computer and use it in GitHub Desktop.
get the time between tcp packets, sync packets are ignored.
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
| #!/bin/sh | |
| OBSERVED="gist.github.com" | |
| tcpdump -tt -i wlan0 host $OBSERVED | awk '{ if (! match ($7, "S]")) { if (($1 - timeNow) >= 1) { print strftime("%a %b %e %H:%M:%S %Z %Y", $1), " --- ",($1 -timeNow) ; } }; timeNow=$1; }' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment