OSDN Git Service

netfilter: reduce size of nf_hook_state on 32bit platforms
authorFlorian Westphal <fw@strlen.de>
Fri, 28 May 2021 10:30:04 +0000 (12:30 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 28 May 2021 23:04:53 +0000 (01:04 +0200)
Reduce size from 28 to 24 bytes on 32bit platforms.

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

index f0f3a83..f161569 100644 (file)
@@ -65,8 +65,8 @@ struct nf_hook_ops;
 struct sock;
 
 struct nf_hook_state {
-       unsigned int hook;
-       u_int8_t pf;
+       u8 hook;
+       u8 pf;
        struct net_device *in;
        struct net_device *out;
        struct sock *sk;