:::: MENU ::::
Monthly Archives: April 2015

xtables-addons error: too few arguments to function ‘ipv6_find_hdr’

Enviorment:
Centos 6.5
xtables-addons-1.47.1

Error:
While installing xtables-addons-1.47.1 from code (in the make step) you get the next error:

/home/xxxxx/xtables-addons-1.47.1/extensions/compat_xtables.c: In function 'xtnu_ipv6_find_hdr':
/home/xxxxx/xtables-addons-1.47.1/extensions/compat_xtables.c:633: error: too few arguments to function 'ipv6_find_hdr'

Solution:
open the file with your preferred editor

#vi /usr/src/kernels/2.6.32-504.12.2.el6.x86_64/include/linux/autoconf.h

where 2.6.32-504.12.2.el6.x86_64 is the version of your kernel-devel you have installed

change this line

#define CONFIG_IP6_NF_IPTABLES_MODULE 1

by this other one (to comment it):

/*#define CONFIG_IP6_NF_IPTABLES_MODULE 1*/