netfilter: conntrack: compute l3proto nla size at compile time
authorFlorian Westphal <fw@strlen.de>
Fri, 11 Aug 2017 22:57:02 +0000 (00:57 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 24 Aug 2017 16:52:32 +0000 (18:52 +0200)
commit0d03510038bda70b5a4a252e8216822e6ce0cbdb
tree1c7acf5e1d75424f44404e2824521b341bd8e16f
parenteee6ebbac18a189ef33d25ea9b8bcae176515e49
netfilter: conntrack: compute l3proto nla size at compile time

avoids a pointer and allows struct to be const later on.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_l3proto.h
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nf_conntrack_proto.c