Commit 4411f5fc authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji Committed by David S. Miller

[IPV^]: Use correct icmp6 type in ip6_pkt_discard.

parent 7b9e6ace
...@@ -1173,7 +1173,7 @@ int ipv6_route_ioctl(unsigned int cmd, void *arg) ...@@ -1173,7 +1173,7 @@ int ipv6_route_ioctl(unsigned int cmd, void *arg)
int ip6_pkt_discard(struct sk_buff *skb) int ip6_pkt_discard(struct sk_buff *skb)
{ {
IP6_INC_STATS(Ip6OutNoRoutes); IP6_INC_STATS(Ip6OutNoRoutes);
icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_ADDR_UNREACH, 0, skb->dev); icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_NOROUTE, 0, skb->dev);
kfree_skb(skb); kfree_skb(skb);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment