summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/sets.t.payload.inet
blob: b45f6303650595f4abb4c4b228e1c26ae35adb9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# ip6 saddr @set2 drop
inet test-inet input 
  [ meta load nfproto => reg 1 ]
  [ cmp eq reg 1 0x0000000a ]
  [ payload load 16b @ network header + 8 => reg 1 ]
  [ lookup reg 1 set set2 ]
  [ immediate reg 0 drop ]

# ip6 saddr != @set2 drop
inet test-inet input 
  [ meta load nfproto => reg 1 ]
  [ cmp eq reg 1 0x0000000a ]
  [ payload load 16b @ network header + 8 => reg 1 ]
  [ lookup reg 1 set set2 0x1 ]
  [ immediate reg 0 drop ]