diff options
Diffstat (limited to 'tests/py/ip6/meta.t.payload')
-rw-r--r-- | tests/py/ip6/meta.t.payload | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/py/ip6/meta.t.payload b/tests/py/ip6/meta.t.payload index f203baab..be04816e 100644 --- a/tests/py/ip6/meta.t.payload +++ b/tests/py/ip6/meta.t.payload @@ -32,3 +32,15 @@ ip6 test-ip6 input [ cmp eq reg 1 0x00000001 ] [ payload load 1b @ transport header + 0 => reg 1 ] [ cmp eq reg 1 0x00000008 ] + +# meta sdif "lo" accept +ip6 test-ip6 input + [ meta load sdif => reg 1 ] + [ cmp eq reg 1 0x00000001 ] + [ immediate reg 0 accept ] + +# meta sdifname != "vrf1" accept +ip6 test-ip6 input + [ meta load sdifname => reg 1 ] + [ cmp neq reg 1 0x31667276 0x00000000 0x00000000 0x00000000 ] + [ immediate reg 0 accept ] |