summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/ip.t.payload.got
blob: 9a5c9422f145b08a4ef81dbd85adbd3b6e81d32f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# ip frag-off & 0x1fff != 0x0
ip test-ip4 input
  [ payload load 2b @ network header + 6 => reg 1 ]
  [ bitwise reg 1 = ( reg 1 & 0x0000ff1f ) ^ 0x00000000 ]
  [ cmp neq reg 1 0x00000000 ]

# ip frag-off & 0x2000 != 0x0
ip test-ip4 input
  [ payload load 2b @ network header + 6 => reg 1 ]
  [ bitwise reg 1 = ( reg 1 & 0x00000020 ) ^ 0x00000000 ]
  [ cmp neq reg 1 0x00000000 ]

# ip frag-off & 0x4000 != 0x0
ip test-ip4 input
  [ payload load 2b @ network header + 6 => reg 1 ]
  [ bitwise reg 1 = ( reg 1 & 0x00000040 ) ^ 0x00000000 ]
  [ cmp neq reg 1 0x00000000 ]