path: root/id=d0218ea4573837d775c3e605913a45021f1526b9
diff options
authorSon Dinh <>2024-04-09 16:23:31 +1000
committerFlorian Westphal <>2024-06-16 13:52:50 +0200
commitaa791a12cb2b23fb49c233e40b6e12e0e3ce6b9b (patch)
tree2e54cf9864446833ec7f6b5187838349d066dd0a /id=d0218ea4573837d775c3e605913a45021f1526b9
parentb40bebbcee3602e2d849e48f3a50676bd8987204 (diff)
dynset: avoid errouneous assert with ipv6 concat dataHEADmaster
nft add rule ip6 table-test chain-1 update @map-X { ip6 saddr : 1000::1 . 5001 } nft: src/netlink_linearize.c:873: netlink_gen_expr: Assertion `dreg < ctx->reg_low' failed. Aborted (core dumped) This is because we pass the EXPR_SET_ELEM expr to the register allocation, which will make it reserve 1 128 bit register / 16 bytes. This happens to be enough for most cases, but its not for ipv6 concat data. Pass the actual key and data instead: This will reserve enough space to hold a possible concat expression. Also add test cases. Signed-off-by: Son Dinh <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'id=d0218ea4573837d775c3e605913a45021f1526b9')
0 files changed, 0 insertions, 0 deletions