netfilter: x_tables: use correct integer types
authorFlorian Westphal <fw@strlen.de>
Thu, 23 Jun 2022 13:05:10 +0000 (15:05 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 11 Jul 2022 14:40:45 +0000 (16:40 +0200)
commit168141f7e0b4294f0bb45c10c710e85b812af891
treed591e3595c93b2d729a09d98d9db5a2567074768
parentec6f2ff0a3985907b0c224e482d790615be5772d
netfilter: x_tables: use correct integer types

Sparse complains because __be32 and u32 are mixed without
conversions.  Use the correct types, no code changes.

Furthermore, xt_DSCP generates a bit truncation warning:
"cast truncates bits from constant value (ffffff03 becomes 3)"

The truncation is fine (and wanted). Add a private definition and use that
instead.

objdiff shows no changes.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_DSCP.c
net/netfilter/xt_TCPMSS.c
net/netfilter/xt_connlimit.c