Created
February 10, 2011 15:15
-
-
Save kjmkznr/820676 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -uNr ip6t_MAP66-0.5.orig//ip6t_MAP66.c ip6t_MAP66-0.5/ip6t_MAP66.c | |
--- ip6t_MAP66-0.5.orig//ip6t_MAP66.c 2010-10-16 13:52:42.000000000 +0900 | |
+++ ip6t_MAP66-0.5/ip6t_MAP66.c 2011-02-11 00:13:01.355090007 +0900 | |
@@ -135,7 +135,10 @@ | |
if (NULL != dev) { | |
const struct inet6_ifaddr *ifa; | |
const struct inet6_dev *idev = rcu_dereference(dev->ip6_ptr); | |
- for (ifa = idev->addr_list; NULL != ifa; ifa = ifa->if_next) { | |
+ list_for_each_entry(ifa, &idev->addr_list, if_list) { | |
if (ipv6_addr_equal(&ifa->addr, addr)) return true; | |
} | |
} | |
@@ -144,7 +147,7 @@ | |
static unsigned int MAP66_tg6( | |
struct sk_buff *skb, | |
- const struct xt_target_param *par) | |
+ const struct xt_action_param *par) | |
{ | |
u_int16_t* csum_transport = NULL; | |
struct ipv6hdr *hdr = ipv6_hdr(skb); | |
@@ -246,7 +249,7 @@ | |
NULL != par->out ? par->out->name : "", | |
NIP6(hdr->saddr), NIP6(hdr->daddr)); | |
- return IP6T_CONTINUE; | |
+ return XT_CONTINUE; | |
} | |
static bool MAP66_tg6_check( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment