diff options
author | Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp> | 2006-12-03 01:19:01 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2006-12-03 01:19:01 -0500 |
commit | 02dba025b0bc881432cf325bfb124fae523087d5 (patch) | |
tree | 638a7b00236d0f5fc3dde1af1203e148e45edcfe | |
parent | 0506d4068bad834aab1141b5dc5e748eb175c6b3 (diff) |
[NETFILTER]: xtables: fixes warning on compilation of hashlimit
To use ipv6_find_hdr(), IP6_NF_IPTABLES is necessary.
Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/netfilter/xt_hashlimit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/xt_hashlimit.c b/net/netfilter/xt_hashlimit.c index 46de566d3721..501c564e247f 100644 --- a/net/netfilter/xt_hashlimit.c +++ b/net/netfilter/xt_hashlimit.c | |||
@@ -388,7 +388,7 @@ hashlimit_init_dst(struct xt_hashlimit_htable *hinfo, struct dsthash_dst *dst, | |||
388 | return 0; | 388 | return 0; |
389 | nexthdr = skb->nh.iph->protocol; | 389 | nexthdr = skb->nh.iph->protocol; |
390 | break; | 390 | break; |
391 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | 391 | #if defined(CONFIG_IP6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES_MODULE) |
392 | case AF_INET6: | 392 | case AF_INET6: |
393 | if (hinfo->cfg.mode & XT_HASHLIMIT_HASH_DIP) | 393 | if (hinfo->cfg.mode & XT_HASHLIMIT_HASH_DIP) |
394 | memcpy(&dst->addr.ip6.dst, &skb->nh.ipv6h->daddr, | 394 | memcpy(&dst->addr.ip6.dst, &skb->nh.ipv6h->daddr, |