Add a -Y option to match test-captures.sh: it runs tshark with a read filter but without building the tree.

svn path=/trunk/; revision=49797
This commit is contained in:
Jeff Morriss 2013-06-05 21:30:08 +00:00
parent 77cf790b76
commit 1cc0587d00
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,7 @@ VALID=0
PCAP=""
TOOL=""
while getopts ":2b:C:lmnprtTwcevW" OPTCHAR ; do
while getopts ":2b:C:lmnprtTYwcevW" OPTCHAR ; do
case $OPTCHAR in
2) COMMAND_ARGS="-2 $COMMAND_ARGS" ;;
b) BIN_DIR=$OPTARG ;;
@ -49,6 +49,7 @@ while getopts ":2b:C:lmnprtTwcevW" OPTCHAR ; do
r) REACHABLE="--show-reachable=yes" ;;
t) TRACK_ORIGINS="--track-origins=yes" ;;
T) COMMAND_ARGS="-Vx $COMMAND_ARGS" ;; # "build the Tree"
Y) COMMAND_ARGS="-Yframe $COMMAND_ARGS" ;; # Run with a read filter (but no tree)
w) COMMAND=wireshark
COMMAND_ARGS="-nr" ;;
c) COMMAND=capinfos