projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0506d40
)
[NETFILTER]: xtables: fixes warning on compilation of hashlimit
author
Yasuyuki Kozakai
<yasuyuki.kozakai@toshiba.co.jp>
Sun, 3 Dec 2006 06:19:01 +0000
(22:19 -0800)
committer
David S. Miller
<davem@davemloft.net>
Sun, 3 Dec 2006 06:19:01 +0000
(22:19 -0800)
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>
net/netfilter/xt_hashlimit.c
patch
|
blob
|
history
diff --git
a/net/netfilter/xt_hashlimit.c
b/net/netfilter/xt_hashlimit.c
index 46de566d37210902f8d2f0ed53f83d46ea4b5275..501c564e247ff301aa4b1e15b8a2851ce9203d78 100644
(file)
--- 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,
return 0;
nexthdr = skb->nh.iph->protocol;
break;
-#if defined(CONFIG_IP
V6) || defined(CONFIG_IPV6
_MODULE)
+#if defined(CONFIG_IP
6_NF_IPTABLES) || defined(CONFIG_IP6_NF_IPTABLES
_MODULE)
case AF_INET6:
if (hinfo->cfg.mode & XT_HASHLIMIT_HASH_DIP)
memcpy(&dst->addr.ip6.dst, &skb->nh.ipv6h->daddr,