Re: ip6_tables warning

From: YOSHIFUJI Hideaki / 吉藤英明
Date: Thu Jun 17 2004 - 05:16:02 EST


In article <Pine.GSO.4.58.0406171139020.22919@xxxxxxxxxxxxxxxxxxxx> (at Thu, 17 Jun 2004 12:06:17 +0200 (MEST)), Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> says:

> This is not a new problem, but I never bothered to report it before:
>
> | ip6_tables.c: In function `tcp_match':
> | ip6_tables.c:1596: warning: implicit declaration of function `ipv6_skip_exthdr'
> It needs to include <net/ipv6.h> to kill the warning.

Here it is.

===== net/ipv6/netfilter/ip6_tables.c 1.17 vs edited =====
--- 1.17/net/ipv6/netfilter/ip6_tables.c 2004-06-07 12:13:18 +09:00
+++ edited/net/ipv6/netfilter/ip6_tables.c 2004-06-17 19:11:08 +09:00
@@ -20,6 +20,7 @@
#include <linux/udp.h>
#include <linux/icmpv6.h>
#include <net/ip.h>
+#include <net/ipv6.h>
#include <asm/uaccess.h>
#include <asm/semaphore.h>
#include <linux/proc_fs.h>

--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/