netfilter: ip6_tables: ip6t_ext_hdr is now static inline
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 6 Apr 2012 16:12:54 +0000 (18:12 +0200)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 14:06:49 +0000 (19:06 +0530)
commit2c2549e14c7c0c6c361802a173acfdc37a3b4620
treee6e0788ca13892d23f76456727056b2cc59a8f16
parent0fbdba8649c6dd1891c476c696097d509cec3a77
netfilter: ip6_tables: ip6t_ext_hdr is now static inline

We may hit this in xt_LOG:

net/built-in.o:xt_LOG.c:function dump_ipv6_packet:
error: undefined reference to 'ip6t_ext_hdr'

happens with these config options:

CONFIG_NETFILTER_XT_TARGET_LOG=y
CONFIG_IP6_NF_IPTABLES=m

ip6t_ext_hdr is fairly small and it is called in the packet path.
Make it static inline.

Reported-by: Simon Kirby <sim@netnation.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter_ipv6/ip6_tables.h
net/ipv6/netfilter/ip6_tables.c