net: ipv6: Add IPv6 support to the ping socket.
[linux-2.6.git] / net / ipv4 / icmp.c
index 2cb2bf8..2e109ff 100644 (file)
@@ -788,7 +788,7 @@ static void icmp_redirect(struct sk_buff *skb)
        if (iph->protocol == IPPROTO_ICMP &&
            iph->ihl >= 5 &&
            pskb_may_pull(skb, (iph->ihl<<2)+8)) {
-               ping_err(skb, icmp_hdr(skb)->un.gateway);
+               ping_v4_err(skb, icmp_hdr(skb)->un.gateway);
        }
 
 out: