wireguard: device: use icmp_ndo_send helper
[linux-2.6-block.git] / drivers / net / wireguard / device.c
index 16b19824b9ad0385404fb6f084407df0a4033518..43db442b1373073eaf5e805cfe6cfee15875437a 100644 (file)
@@ -203,9 +203,9 @@ err_peer:
 err:
        ++dev->stats.tx_errors;
        if (skb->protocol == htons(ETH_P_IP))
-               icmp_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0);
+               icmp_ndo_send(skb, ICMP_DEST_UNREACH, ICMP_HOST_UNREACH, 0);
        else if (skb->protocol == htons(ETH_P_IPV6))
-               icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_ADDR_UNREACH, 0);
+               icmpv6_ndo_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_ADDR_UNREACH, 0);
        kfree_skb(skb);
        return ret;
 }