diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2012-12-02 02:58:29 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2012-12-02 02:58:29 +0000 |
commit | b5d14d6dcdf6c01eb5c0d96f7522a256d2cc3f5d (patch) | |
tree | 00b6f3c47505d160229d2ca4eedeaceeac21d1ac /tools/valgrind-wireshark.sh | |
parent | a92bbbcd5c3fe7a00646b30643f6da8beadc2537 (diff) |
Add an option to control whether tshark builds the tree (\"-T\").
Note the change in behavior: building the tree is now off by default.
Complain (and exit) if we get an argument we don't understand.
svn path=/trunk/; revision=46321
Diffstat (limited to 'tools/valgrind-wireshark.sh')
-rwxr-xr-x | tools/valgrind-wireshark.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/valgrind-wireshark.sh b/tools/valgrind-wireshark.sh index 8e3fcfce6e..14cc7dd37f 100755 --- a/tools/valgrind-wireshark.sh +++ b/tools/valgrind-wireshark.sh @@ -30,12 +30,12 @@ BIN_DIR=. # Use tshark by default COMMAND=tshark -COMMAND_ARGS="-nVxr" +COMMAND_ARGS="-nr" COMMAND_ARGS2= VALID=0 PCAP="" -while getopts ":2b:C:lnrtwce" OPTCHAR ; do +while getopts ":2b:C:lnrtTwce" OPTCHAR ; do case $OPTCHAR in 2) COMMAND_ARGS="-2 $COMMAND_ARGS" ;; b) BIN_DIR=$OPTARG ;; @@ -45,6 +45,7 @@ while getopts ":2b:C:lnrtwce" OPTCHAR ; do VALID=1 ;; r) REACHABLE="--show-reachable=yes" ;; t) TRACK_ORIGINS="--track-origins=yes" ;; + T) COMMAND_ARGS="-nVxr" ;; # "build the Tree" w) COMMAND=wireshark COMMAND_ARGS="-nr" ;; c) COMMAND=capinfos @@ -53,6 +54,8 @@ while getopts ":2b:C:lnrtwce" OPTCHAR ; do COMMAND_ARGS="-E 0.02" # We don't care about the output of editcap COMMAND_ARGS2="/dev/null" ;; + *) printf "Unknown option -$OPTARG!\n" + exit ;; esac done shift $(($OPTIND - 1)) |