summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/exthdr.t.payload.ip6
blob: be10d61ef6ccc14ac254b7cec3f4c4b5022cdd07 (plain)
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
49
50
51
52
53
54
55
56
57
58
59
60
# exthdr hbh exists
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 0 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000001 ]

# exthdr rt exists
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 43 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000001 ]

# exthdr frag exists
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 44 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000001 ]

# exthdr dst exists
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 60 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000001 ]

# exthdr mh exists
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 135 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000001 ]

# exthdr hbh missing
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 0 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000000 ]

# exthdr hbh == exists
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 0 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000001 ]

# exthdr hbh == missing
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 0 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000000 ]

# exthdr hbh != exists
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 0 + 0 present => reg 1 ]
  [ cmp neq reg 1 0x00000001 ]

# exthdr hbh != missing
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 0 + 0 present => reg 1 ]
  [ cmp neq reg 1 0x00000000 ]

# exthdr hbh 1
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 0 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000001 ]

# exthdr hbh 0
ip6 test-ip6 input
  [ exthdr load ipv6 1b @ 0 + 0 present => reg 1 ]
  [ cmp eq reg 1 0x00000000 ]