# iproute2/tc: dsmark used to ignore default_index ----------------------------
tcsim | tcsim_filter -d -c tos
#include "ip.def"

dev eth0 10000 {
    dsmark (indices 64,set_tc_index,default_index 0) {
       class (0)
	  on tcindex(mask 0xff,pass_on) element(0);
       class (1,mask 0,value 0xb8)
	  on tcindex(mask 0x0f,pass_on) element(0);
    }
}

send IP_HDR($tos=1 $src=1.2.3.4 $dst=5.6.7.8 $ipproto=UDP)
EOF
D:01 1
