Comment 5 for bug 1085211

Revision history for this message
Jian Wen (wenjianhn) wrote :

Could you paste the output of 'sudo apt-get install xtables-addons-common'?

My kernel is 3.5.0-23-generic #35~precise1-Ubuntu.
When install xtables-addons-common old kernel packages, which are
linux-headers-3.2.0-40 linux-headers-3.2.0-40-generic, are installed.

From "$ diff /usr/src/linux-headers-3.2.0-40/include/linux/netfilter_ipv6/ip6_tables.h /usr/src/linux-headers-3.5.0-23/include/linux/netfilter_ipv6/ip6_tables.h"
293c308
< int target, unsigned short *fragoff);
---
> int target, unsigned short *fragoff, int *fragflg);

That's
extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
                         int target, unsigned short *fragoff);
extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
                         int target, unsigned short *fragoff, int *fragflg);

The reason of "/usr/src/xtables-addons-1.42/xt_RAWNAT.c:184:3: error: too few arguments to function ‘ipv6_find_hdr’"