Debian Codegraph @

src/flowtest-wireshark

raw
1 #!/bin/bash -e
2
3 # This is a simple test to include all protocols and different features,
4 # particularly to test the NetPerfMeter dissector of Wireshark/T-Shark:
5 # - Different protocols, multiple flows of each protocol
6 # - Different UDP, DCCP and SCTP message sizes
7 # - Small SCTP messages -> bundling?
8 # - Large SCTP messages -> segmentation
9 # - SCTP Reliable/Unreliable and Ordered/Unordered options
10 #
11 # Capture example:
12 # tshark -i any -n -w netperfmeter.pcapng -f '(sctp port 9001) or ((tcp port 9000) or (tcp port 8999) or (udp port 9000) or (sctp port 9000) or (ip proto 33))'
13
14
15 TARGET="$1"
16 if [ "$TARGET" == "" ] ; then
17 TARGET="localhost:9000"
18 fi
19
20 # make && valgrind --tool=helgrind \
21 ./netperfmeter $TARGET \
22 -vector=f.vec.bz2 -scalar=f.sca.bz2 \
23 -tcp const4:const1024:const3:const1024 \
24 -tcp const2:const512:const3:const512 \
25 -udp const4:const1024:const3:const1024 \
26 -udp const2:const512:const3:const512 \
27 -dccp const4:const1024:const4:const1024 \
28 -dccp const2:const1024:const2:const1024 \
29 -dccp const2:const512:const2:const512 \
30 -dccp const2:const512:const2:const512 \
31 -dccp const3:const256:const2:const256 \
32 -dccp const4:const1024:const4:const1024 \
33 -dccp const2:const1024:const2:const1024 \
34 -dccp const2:const512:const2:const512 \
35 -dccp const2:const512:const2:const512 \
36 -dccp const3:const256:const2:const256 \
37 -sctp \
38 const2:const1024:const2:const1024 \
39 const2:const2048:const2:const2048 \
40 const8:const128:const2:const128 \
41 const2:const1024:const2:const1024:unreliable=0.5 \
42 const2:const1024:const2:const1024:unordered=0.5 \
43 const2:const1024:const2:const1024:unordered=0.5,unreliable=0.5 \
44 -sctp const1:const4096:const2:const1024:maxmsgsize=1400 \
45 -runtime=3