|
@@ -210,14 +210,14 @@ static void ila_free_cb(void *ptr, void *arg)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-static int ila_xlat_addr(struct sk_buff *skb);
|
|
|
|
|
|
+static int ila_xlat_addr(struct sk_buff *skb, bool set_csum_neutral);
|
|
|
|
|
|
static unsigned int
|
|
static unsigned int
|
|
ila_nf_input(void *priv,
|
|
ila_nf_input(void *priv,
|
|
struct sk_buff *skb,
|
|
struct sk_buff *skb,
|
|
const struct nf_hook_state *state)
|
|
const struct nf_hook_state *state)
|
|
{
|
|
{
|
|
- ila_xlat_addr(skb);
|
|
|
|
|
|
+ ila_xlat_addr(skb, false);
|
|
return NF_ACCEPT;
|
|
return NF_ACCEPT;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -597,7 +597,7 @@ static struct pernet_operations ila_net_ops = {
|
|
.size = sizeof(struct ila_net),
|
|
.size = sizeof(struct ila_net),
|
|
};
|
|
};
|
|
|
|
|
|
-static int ila_xlat_addr(struct sk_buff *skb)
|
|
|
|
|
|
+static int ila_xlat_addr(struct sk_buff *skb, bool set_csum_neutral)
|
|
{
|
|
{
|
|
struct ila_map *ila;
|
|
struct ila_map *ila;
|
|
struct ipv6hdr *ip6h = ipv6_hdr(skb);
|
|
struct ipv6hdr *ip6h = ipv6_hdr(skb);
|
|
@@ -616,7 +616,7 @@ static int ila_xlat_addr(struct sk_buff *skb)
|
|
|
|
|
|
ila = ila_lookup_wildcards(iaddr, skb->dev->ifindex, ilan);
|
|
ila = ila_lookup_wildcards(iaddr, skb->dev->ifindex, ilan);
|
|
if (ila)
|
|
if (ila)
|
|
- ila_update_ipv6_locator(skb, &ila->xp.ip);
|
|
|
|
|
|
+ ila_update_ipv6_locator(skb, &ila->xp.ip, set_csum_neutral);
|
|
|
|
|
|
rcu_read_unlock();
|
|
rcu_read_unlock();
|
|
|
|
|