summaryrefslogtreecommitdiffstats
path: root/tests/py/ip6/flowtable.t.payload
blob: 559475f6d2c6f037e700f3850efa6b177d719f39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# meter acct_out size 4096 { meta iif . ip6 saddr timeout 600s counter }
acct_out test-ip6 31
acct_out test-ip6 0
ip6 test-ip6 input
  [ meta load iif => reg 1 ]
  [ payload load 16b @ network header + 8 => reg 9 ]
  [ dynset update reg_key 1 set acct_out timeout 600000ms expr [ counter pkts 0 bytes 0 ] ]

# meter acct_out size 12345 { ip6 saddr . meta iif timeout 600s counter }
acct_out test-ip6 31
acct_out test-ip6 0
ip6 test-ip6 input
  [ payload load 16b @ network header + 8 => reg 1 ]
  [ meta load iif => reg 2 ]
  [ dynset update reg_key 1 set acct_out timeout 600000ms expr [ counter pkts 0 bytes 0 ] ]