File: tcsattpro

package info (click to toggle)
tcng 10b-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,636 kB
  • ctags: 2,515
  • sloc: ansic: 19,040; pascal: 4,640; yacc: 2,619; sh: 1,914; perl: 1,546; lex: 772; makefile: 756
file content (48 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# IP_PCK sets protocol to ETH_P_IP --------------------------------------------
tcsim | tcsim_filter -d tos
#include "packet.def"

attribute default protocol=0

dev eth0 100Mbps {
    dsmark (mask 0,default_index 0) {
	tcindex (protocol "ip") {
	    class (1,value 1) on (0);
	}
    }
}

#define NOTHING

send 0 x 40
send IP_PCK(NOTHING)
send IP6_PCK(NOTHING)
end
EOF
0.000000 D:00 40 0x0000000c
0.000003 D:01 20 0x0000000d
0.000005 D:00 40 0x0000000e
# IP_PCK sets protocol to ETH_P_IPV6 ------------------------------------------
tcsim | tcsim_filter -d tos
#include "packet.def"

attribute default protocol=ETH_P_IP

dev eth0 100Mbps {
    dsmark (mask 0,default_index 0) {
	tcindex (protocol "ip") {
	    class (1,value 1) on (0);
	}
    }
}

#define NOTHING

send 0 x 40
send IP_PCK(NOTHING)
send IP6_PCK(NOTHING)
end
EOF
0.000000 D:01 40 0x0000000c
0.000003 D:01 20 0x0000000d
0.000005 D:00 40 0x0000000e