mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-29 13:19:26 +00:00
Allow the interface to be specified.
This commit is contained in:
parent
e12139c636
commit
0732c60bb2
@ -1,5 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
PORT=${1:-"80"}
|
||||
IFACE=${2:-"any"}
|
||||
|
||||
sudo tcpdump -i any -s0 -l -n -q -A "tcp port ${PORT} and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)"
|
||||
sudo tcpdump -i $IFACE -s0 -l -n -q -A "tcp port ${PORT} and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user