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’"
Could you paste the output of 'sudo apt-get install xtables- addons- common' ?
My kernel is 3.5.0-23-generic #35~precise1- Ubuntu. addons- common old kernel packages, which are 3.2.0-40 linux-headers- 3.2.0-40- generic, are installed.
When install xtables-
linux-headers-
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
int target, unsigned short *fragoff);
int target, unsigned short *fragoff, int *fragflg);
extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
extern int ipv6_find_hdr(const struct sk_buff *skb, unsigned int *offset,
The reason of "/usr/src/ xtables- addons- 1.42/xt_ RAWNAT. c:184:3: error: too few arguments to function ‘ipv6_find_hdr’"