Hello everyone,
I noticed that the output of the fields (when the -d 10 debug option is used):
Local socket TOS:
Remote socket TOS:
is not always correct. I have done the whole sequence of cases and this is the output.
However the traffic is generated with the correct value in the "tos" field.
This is netperf 2.7.0 compiled from sources with the following options:
configure --prefix=/usr --enable-demo --enable-histogram
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 0,0 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 4,4 -f m| grep TOS
Local socket TOS: reliability
Remote socket TOS: reliability
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 8,8 -f m| grep TOS
Local socket TOS: throughput
Remote socket TOS: throughput
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 12,12 -f m| grep TOS
Local socket TOS: 0x0c
Remote socket TOS: 0x0c
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 16,16 -f m| grep TOS
Local socket TOS: lowdelay
Remote socket TOS: lowdelay
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 32,32 -f m| grep TOS
Local socket TOS: cs1
Remote socket TOS: cs1
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 40,40 -f m| grep TOS
Local socket TOS: af11
Remote socket TOS: af11
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 48,48 -f m| grep TOS
Local socket TOS: af12
Remote socket TOS: af12
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 56,56 -f m| grep TOS
Local socket TOS: af13
Remote socket TOS: af13
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 64,64 -f m| grep TOS
Local socket TOS: cs2
Remote socket TOS: cs2
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 72,72 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 80,80 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 88,88 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 96,96 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 104,104 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 112,112 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 120,120 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 128,128 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 136,136 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 144,144 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 152,152 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 160,160 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 176,176 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 184,184 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 192,192 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0
[root@pakito ~]# netperf -H 10.68.68.56 -d 10 -l 2 -v 2 -D 1 -Y 224,224 -f m| grep TOS
Local socket TOS: cs0
Remote socket TOS: cs0