From: Robert Olsson <Robert.Olsson@data.slu.se>
To: "Seong Moon" <seong@etri.re.kr>
Cc: <netdev@oss.sgi.com>
Subject: IPv6 : ICMPV6_DEST_UNREACH type with ICMPV6_NOROUTE code
Date: Fri, 9 May 2003 13:34:58 +0200 [thread overview]
Message-ID: <16059.37474.453731.39031@robur.slu.se> (raw)
In-Reply-To: <003e01c313b8$e55db620$28acfe81@seong>
Seong Moon writes:
> I found that when the kernel has no forwarding entry of a packet,
> the kernel sends an ICMPV6_DEST_UNREACH icmp message with
> ICMPV6_ADDR_UNREACH code to the source of the packet.
>
> But According to RFC 2463, If the kerenl has no forwarding entry of a
> packet,
> the kernel must send an ICMPV6_DEST_UNREACH icmp message with ICMPV6_NOROUTE
> code.
> How about you ? Am I right ?
I think you are...
--- linux/net/ipv6/route.c.030508 2003-03-24 23:01:14.000000000 +0100
+++ linux/net/ipv6/route.c 2003-05-09 13:29:31.000000000 +0200
@@ -1166,7 +1166,7 @@
int ip6_pkt_discard(struct sk_buff *skb)
{
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);
return 0;
}
Cheers.
--ro
next prev parent reply other threads:[~2003-05-09 11:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-06 10:18 IPv6 : ICMPV6_DEST_UNREACH type with ICMPV6_NOROUTE code Seong Moon
2003-05-09 11:34 ` Robert Olsson [this message]
2003-05-09 11:44 ` YOSHIFUJI Hideaki / 吉藤英明
2003-05-09 15:58 ` David S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16059.37474.453731.39031@robur.slu.se \
--to=robert.olsson@data.slu.se \
--cc=netdev@oss.sgi.com \
--cc=seong@etri.re.kr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).