summaryrefslogtreecommitdiff
path: root/debug/tcpdump
diff options
context:
space:
mode:
Diffstat (limited to 'debug/tcpdump')
-rwxr-xr-xdebug/tcpdump3
1 files changed, 3 insertions, 0 deletions
diff --git a/debug/tcpdump b/debug/tcpdump
new file mode 100755
index 0000000..6a8aa9f
--- /dev/null
+++ b/debug/tcpdump
@@ -0,0 +1,3 @@
+#!/bin/bash
+PORT=$(sockstat -n | grep segfault | tr -s ' ' | cut -d. -f5 | cut '-d ' -f1)
+tcpdump -q -s0 -nXXi lo0 port $PORT