Running tshark with a read filter ("-R") and without building the full tree
("-V") causes it to run into some more bugs (usually loops adding more than
100000 items to the tree).  Add some (commented out for now) code to do
this...

svn path=/trunk/; revision=49643
This commit is contained in:
Jeff Morriss 2013-05-31 01:38:55 +00:00
parent ecf32a1e7a
commit c56c403a52
2 changed files with 18 additions and 0 deletions

View File

@ -60,6 +60,13 @@ else
# r Read packet data from the following infile
RUNNER="$TSHARK"
declare -a RUNNER_ARGS=("${CONFIG_PROFILE}${TWO_PASS}-nVxr" "${CONFIG_PROFILE}${TWO_PASS}-nr")
# Running with a read filter but without generating the tree exposes some "More than 100000 items
# in tree" bugs (which currently need WIRESHARK_ABORT_ON_DISSECTOR_BUG to be noticed--maybe that
# error should have its own environment variable?).
# Leave this commented out for now until someone has time to run it through the menagerie once
# or twice (so we don't get buried in bugs)...
#declare -a RUNNER_ARGS=("${CONFIG_PROFILE}${TWO_PASS}-nVxr" "${CONFIG_PROFILE}${TWO_PASS}-nr" "-Rframe ${CONFIG_PROFILE}${TWO_PASS}-nr")
#export WIRESHARK_ABORT_ON_DISSECTOR_BUG=
fi

View File

@ -55,6 +55,17 @@ do
if $BIN_DIR/tshark -nr $file > /dev/null
then
echo "OK"
# We may not be ready to looking for all these bugs yet...
#echo -n " - without tree but with a read filter... "
#export WIRESHARK_ABORT_ON_DISSECTOR_BUG=
#if $BIN_DIR/tshark -Rframe -nr $file > /dev/null
#then
# echo "OK"
#else
# echo "Failed"
# exit 1
#fi
#unset WIRESHARK_ABORT_ON_DISSECTOR_BUG
else
echo "Failed"
exit 1