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)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Apr 2012 14:29:34 +0000 (16:29 +0200)
commit95ad2f873d5d404dc9ebc2377de0b762346346c0
tree61a2b1897a62e245729667844204bbef01be2573
parent6ee0b693bdb8ec56689e0d1cc533b16466fda048
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