OSDN Git Service

netfilter: x_tables: reduce xt_action_param by 8 byte
authorFlorian Westphal <fw@strlen.de>
Fri, 28 May 2021 10:30:03 +0000 (12:30 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 28 May 2021 23:04:53 +0000 (01:04 +0200)
commit586d5a8bcede47fda7bebf4b36be917c5010db16
tree4320ed35ca3f2e9240a90248f569c21b4e3f93e5
parente0241ae6ac59ffa318255640c047f7c90457fbe5
netfilter: x_tables: reduce xt_action_param by 8 byte

The fragment offset in ipv4/ipv6 is a 16bit field, so use
u16 instead of unsigned int.

On 64bit: 40 bytes to 32 bytes. By extension this also reduces
nft_pktinfo (56 to 48 byte).

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/x_tables.h
net/ipv6/netfilter/ip6_tables.c