4 if [ "$IF_NAME" = "" ]; then
5 # echo usage: "${`basename $0`}" ifname[eth0] <mac>
7 echo -n "$(basename $0)"
8 echo "ifname[${ETH_LAN}] <mac>"
14 if [ "$MAC" = "" ]; then
15 if [ "$MAC_SYS" = "" ]; then
16 echo "usage:[BIN] 00:11:22:33:44:55"
17 echo "OR, export MAC_SYS"
19 echo "usage:$0 00:11:22:33:44:55"
26 #sudo tethereal -R "eth.dst == "$MAC" || eth.src == "$MAC""
27 #sudo tethereal -R "eth.dst == $MAC || eth.src == $MAC"
29 sudo tethereal
-i $IF_NAME -R "eth.addr==$MAC"