]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: maps: update data expression dtype based on set
authorFlorian Westphal <fw@strlen.de>
Thu, 13 Feb 2020 11:45:55 +0000 (12:45 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 13 Feb 2020 12:16:48 +0000 (13:16 +0100)
commit76c358ccfea07fe8447359db00488e1bd13e1b73
treecb36309d2d4c6989746016f8968381e19e279ee2
parent79cb0868d22525a8812bc8b390f50d29f25ebf27
src: maps: update data expression dtype based on set

What we want:
-               update @sticky-set-svc-M53CN2XYVUHRQ7UB { ip saddr : 0x00000002 }
what we got:
+               update @sticky-set-svc-M53CN2XYVUHRQ7UB { ip saddr : 0x2000000 [invalid type] }

Reported-by: Serguei Bezverkhi <sbezverk@gmail.com>
Close: https://bugzilla.netfilter.org/show_bug.cgi?id=1405
Signed-off-by: Florian Westphal <fw@strlen.de>
src/netlink_delinearize.c
tests/shell/testcases/maps/dumps/typeof_maps_update_0.nft [new file with mode: 0644]
tests/shell/testcases/maps/typeof_maps_update_0 [new file with mode: 0755]