diff options
author | Evan Huus <eapache@gmail.com> | 2012-07-26 02:38:34 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2012-07-26 02:38:34 +0000 |
commit | 69a95ad3a2558713bd405ff8bb88be1e9e03929e (patch) | |
tree | b92a4a24e9e780b0135b51b4cfaeb7c760b20f70 /tools/valgrind-wireshark.sh | |
parent | a3a50ecb031853af9823b2ae0ae6528b096c3a26 (diff) | |
download | wireshark-69a95ad3a2558713bd405ff8bb88be1e9e03929e.tar.gz |
valgrind-wireshark.sh:
- add support for 2-pass dissection and config profiles
- make whitespace a consistent 4-spaces
fuzz-test.sh:
- update 2-pass support to use -2 and not the old -P
- add support for fuzz-testing under valgrind with the new -g option
svn path=/trunk/; revision=44024
Diffstat (limited to 'tools/valgrind-wireshark.sh')
-rwxr-xr-x | tools/valgrind-wireshark.sh | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/tools/valgrind-wireshark.sh b/tools/valgrind-wireshark.sh index 63fa8e210d..512f000018 100755 --- a/tools/valgrind-wireshark.sh +++ b/tools/valgrind-wireshark.sh @@ -33,27 +33,29 @@ COMMAND=tshark COMMAND_ARGS="-nVxr" COMMAND_ARGS2= -while getopts ":b:ltwce" OPTCHAR ; do +while getopts ":2b:C:ltwce" OPTCHAR ; do case $OPTCHAR in + 2) COMMAND_ARGS="-2 $COMMAND_ARGS" ;; b) BIN_DIR=$OPTARG ;; + C) COMMAND_ARGS="-C $OPTARG $COMMAND_ARGS" ;; l) LEAK_CHECK="--leak-check=full" ;; t) TRACK_ORIGINS="--track-origins=yes" ;; - w) COMMAND=wireshark - COMMAND_ARGS="-nr" ;; - c) COMMAND=capinfos - COMMAND_ARGS="" ;; - e) COMMAND=editcap - COMMAND_ARGS="-E 0.02" - # We don't care about the output of editcap - COMMAND_ARGS2="/dev/null" ;; + w) COMMAND=wireshark + COMMAND_ARGS="-nr" ;; + c) COMMAND=capinfos + COMMAND_ARGS="" ;; + e) COMMAND=editcap + COMMAND_ARGS="-E 0.02" + # We don't care about the output of editcap + COMMAND_ARGS2="/dev/null" ;; esac done shift $(($OPTIND - 1)) if [ $# -ne 1 ] then - printf "Usage: $0 [-b bin_dir] [-l] [-t] [-w] /path/to/file.pcap\n" - exit 1 + printf "Usage: $0 [-2] [-b bin_dir] [-C config_profile] [-l] [-t] [-w] /path/to/file.pcap\n" + exit 1 fi if [ "$BIN_DIR" = "." ]; then |