Reworked output
-v 1 now prints only unknown flows -v 2 now prints all flows
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ build_results() {
|
||||
#echo $f
|
||||
# create result files if not present
|
||||
if [ ! -f result/$f.out ]; then
|
||||
CMD="$READER -q -i pcap/$f -w result/$f.out -v 1"
|
||||
CMD="$READER -q -i pcap/$f -w result/$f.out -v 2"
|
||||
$CMD
|
||||
fi
|
||||
done
|
||||
@@ -17,7 +17,7 @@ build_results() {
|
||||
check_results() {
|
||||
for f in $PCAPS; do
|
||||
if [ -f result/$f.out ]; then
|
||||
CMD="$READER -q -i pcap/$f -w /tmp/reader.out -v 1"
|
||||
CMD="$READER -q -i pcap/$f -w /tmp/reader.out -v 2"
|
||||
$CMD
|
||||
NUM_DIFF=`diff result/$f.out /tmp/reader.out | wc -l`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user