]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink_delinearize: handle relational and lookup concat expressions
authorPatrick McHardy <kaber@trash.net>
Sun, 12 Apr 2015 20:10:42 +0000 (21:10 +0100)
committerPatrick McHardy <kaber@trash.net>
Tue, 2 Jun 2015 11:03:58 +0000 (13:03 +0200)
commit6377380bc265f8446f912420f393ef978acf6698
tree7d54aa57b5d7830b0fcdf50ee64cd677bf562769
parent8ede6005f41afb69e415e1227fc7800308a63819
netlink_delinearize: handle relational and lookup concat expressions

When the RHS length differs from the LHS length (which is only the
first expression), both expressions are assumed to be concat expressions.

The LHS concat expression is reconstructed from the available register
values, advancing by the number of registers required by the subexpressions'
register space, until the RHS length has been reached.

The RHS concat expression is reconstructed by splitting the data value
into multiple subexpressions based on the LHS concat expressions types.

Signed-off-by: Patrick McHardy <kaber@trash.net>
src/netlink_delinearize.c