ipv6: Add redirect support to all protocol icmp error handlers.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3a5ad2ee5e
commit
ec18d9a269
13 changed files with 69 additions and 14 deletions
|
@ -539,6 +539,8 @@ static int ipip6_err(struct sk_buff *skb, u32 info)
|
|||
if (code != ICMP_EXC_TTL)
|
||||
return 0;
|
||||
break;
|
||||
case ICMP_REDIRECT:
|
||||
break;
|
||||
}
|
||||
|
||||
err = -ENOENT;
|
||||
|
@ -557,6 +559,12 @@ static int ipip6_err(struct sk_buff *skb, u32 info)
|
|||
err = 0;
|
||||
goto out;
|
||||
}
|
||||
if (type == ICMP_REDIRECT) {
|
||||
ipv4_redirect(skb, dev_net(skb->dev), t->dev->ifindex, 0,
|
||||
IPPROTO_IPV6, 0);
|
||||
err = 0;
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (t->parms.iph.daddr == 0)
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue