summaryrefslogtreecommitdiffstats
path: root/tests/py/ip/ip_tcp.t.payload
blob: 4f3d962e3ba9661b987c4ef2508c493ebbdc5ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# ip protocol tcp tcp dport 22
ip test-inet input
  [ payload load 1b @ network header + 9 => reg 1 ]
  [ cmp eq reg 1 0x00000006 ]
  [ payload load 2b @ transport header + 2 => reg 1 ]
  [ cmp eq reg 1 0x00001600 ]

# ip protocol tcp meta mark set 1 tcp dport 22
ip test-inet input
  [ payload load 1b @ network header + 9 => reg 1 ]
  [ cmp eq reg 1 0x00000006 ]
  [ immediate reg 1 0x00000001 ]
  [ meta set mark with reg 1 ]
  [ payload load 2b @ transport header + 2 => reg 1 ]
  [ cmp eq reg 1 0x00001600 ]