ipv6: Add redirect support to all protocol icmp error handlers.
[deliverable/linux.git] / net / ipv6 / ah6.c
index 49d4d26bda88d798fc5a5284e412f1bd0152cc95..7e6139508ee7616f10996f33d75ae88e56bc5ca8 100644 (file)
@@ -613,16 +613,18 @@ static void ah6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
        struct xfrm_state *x;
 
        if (type != ICMPV6_DEST_UNREACH &&
-           type != ICMPV6_PKT_TOOBIG)
+           type != ICMPV6_PKT_TOOBIG &&
+           type != NDISC_REDIRECT)
                return;
 
        x = xfrm_state_lookup(net, skb->mark, (xfrm_address_t *)&iph->daddr, ah->spi, IPPROTO_AH, AF_INET6);
        if (!x)
                return;
 
-       NETDEBUG(KERN_DEBUG "pmtu discovery on SA AH/%08x/%pI6\n",
-                ntohl(ah->spi), &iph->daddr);
-       ip6_update_pmtu(skb, net, info, 0, 0);
+       if (type == NDISC_REDIRECT)
+               ip6_redirect(skb, net, 0, 0);
+       else
+               ip6_update_pmtu(skb, net, info, 0, 0);
        xfrm_state_put(x);
 }
 
This page took 0.038142 seconds and 5 git commands to generate.