]> git.ipfire.org Git - thirdparty/nftables.git/commit
netlink: fix binop RHS byteorder
authorPatrick McHardy <kaber@trash.net>
Tue, 28 Jul 2009 12:17:42 +0000 (14:17 +0200)
committerPatrick McHardy <kaber@trash.net>
Tue, 28 Jul 2009 12:17:42 +0000 (14:17 +0200)
commiteaefa819182d968ba6f4958fc8d909165feee0b6
treed11b3a331c038b8327062fd1473baa3115084a08
parentaeb84096c8cc413f81829f07ec285c3668d795ec
netlink: fix binop RHS byteorder

The byteorder of the RHS of a binop must be set before post-processing it to
make sure it will get byteorder-switched if necessary.

Fixes invalid conntrack expression states when used with bitmasks:

 ct state 33554432,67108864 counter packets 1924 bytes 142960

 =>

 ct state established,related counter packets 2029 bytes 151508

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