diff options
author | Phil Sutter <phil@nwl.cc> | 2021-02-04 02:20:23 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2021-03-09 14:25:41 +0100 |
commit | 6671d9d137f66c9a6044dec0206a3e989203d7b1 (patch) | |
tree | f7ac94c59c23af7b2b5f88926bff0e3dd4684d28 /tests/py/ip/ip.t.payload.netdev | |
parent | 8f5f6a77c3a08d0ac83dc7249b0f211b8a675438 (diff) |
mnl: Set NFTNL_SET_DATA_TYPE before dumping set elements
In combination with libnftnl's commit "set_elem: Fix printing of verdict
map elements", This adds the vmap target to netlink dumps. Adjust dumps
in tests/py accordingly.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'tests/py/ip/ip.t.payload.netdev')
-rw-r--r-- | tests/py/ip/ip.t.payload.netdev | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/py/ip/ip.t.payload.netdev b/tests/py/ip/ip.t.payload.netdev index d4e029b0..f75f789f 100644 --- a/tests/py/ip/ip.t.payload.netdev +++ b/tests/py/ip/ip.t.payload.netdev @@ -585,7 +585,7 @@ netdev test-netdev ingress # ip hdrlength vmap { 0-4 : drop, 5 : accept, 6 : continue } counter __map%d test-netdev f size 4 __map%d test-netdev 0 - element 00000000 : 0 [end] element 00000005 : 0 [end] element 00000006 : 0 [end] element 00000007 : 1 [end] + element 00000000 : drop 0 [end] element 00000005 : accept 0 [end] element 00000006 : continue 0 [end] element 00000007 : drop 1 [end] netdev test-netdev ingress [ meta load protocol => reg 1 ] [ cmp eq reg 1 0x00000008 ] @@ -686,7 +686,7 @@ netdev test-netdev ingress # ip dscp vmap { cs1 : continue , cs4 : accept } counter __map%d test-netdev b size 2 __map%d test-netdev 0 - element 00000020 : 0 [end] element 00000080 : 0 [end] + element 00000020 : continue 0 [end] element 00000080 : accept 0 [end] netdev test-netdev ingress [ meta load protocol => reg 1 ] [ cmp eq reg 1 0x00000008 ] |