netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: John Dykstra <john.dykstra1@gmail.com>
Cc: Brian Haley <brian.haley@hp.com>,
	Eric Dumazet <dada1@cosmosbay.com>,
	Florian Westphal <fw@strlen.de>, netdev <netdev@vger.kernel.org>
Subject: Re: [PATCH] ipv4/ipv6: check hop limit field on input
Date: Tue, 02 Jun 2009 11:35:03 +0200	[thread overview]
Message-ID: <4A24F247.2040406@dev.6wind.com> (raw)
In-Reply-To: <1243907646.15854.16.camel@merlyn>

John Dykstra wrote:
> On Mon, 2009-06-01 at 14:55 -0400, Brian Haley wrote: 
>> 'ping6 -t 0 host' does work however.  The problem I see is that if you ping a system,
>> if it's a host it will respond, if it's a router it won't - the RFCs don't
>> explicitly state the host should drop the packet.  
> 
> There are two cases--an echo request to an address assigned to a
> router's interface, and to an address _beyond_ the router on another
> link.
> 
> Any given interface on a router can have forwarding dynamically enabled
> or disabled.  I don't remember prescribed echo request or hop limit
> behavior changing depending on the forwarding enable, so it seems that
> if you ping an address assigned to a router's interface, the router is
> expected to follow the (apparently unwritten) host rules.  
Good point.

> 
> Echo requests forwarded by a router should obviously have the hop limit
> decremented and checked.
> 
>> I don't know if that difference
>> in behavior is desired.  Do we know how any other OSes behave?
> 
> FWIW, the random BSD flavors I have on hand all check hop limit when
> forwarding, but not when processing local ingress traffic.
> 
> Also FWIW, as I remember, the TAHI tests only check hop limit behavior
> on forwarded traffic.
Right.

> 
> Nicolas, what's driving your patch?  Are you trying to align slow path
> behavior with one of the 6WIND fast path implementations?
No. I'm just checking RFC conformance ;-)


Nicolas

> 
>   --  John
> 
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-06-02 10:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-01 15:13 [PATCH] ipv4/ipv6: check hop limit field on input Nicolas Dichtel
2009-06-01 16:19 ` Florian Westphal
2009-06-01 16:49   ` Nicolas Dichtel
2009-06-01 17:13     ` Florian Westphal
2009-06-02  9:30       ` Nicolas Dichtel
2009-06-01 18:43     ` Eric Dumazet
2009-06-01 18:55       ` Brian Haley
2009-06-02  1:54         ` John Dykstra
2009-06-02  2:02           ` David Miller
2009-06-02  9:22             ` John Dykstra
2009-06-02  9:32               ` David Miller
2009-06-02  9:35           ` Nicolas Dichtel [this message]
2009-06-02  9:30         ` Nicolas Dichtel
2009-06-02  9:30       ` Nicolas Dichtel
2009-06-02  2:04 ` David Miller
2009-06-02  5:31   ` Eric Dumazet
2009-06-02  5:43     ` David Miller
2009-06-02  9:36   ` Nicolas Dichtel
2009-06-02  9:37     ` David 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=4A24F247.2040406@dev.6wind.com \
    --to=nicolas.dichtel@6wind.com \
    --cc=brian.haley@hp.com \
    --cc=dada1@cosmosbay.com \
    --cc=fw@strlen.de \
    --cc=john.dykstra1@gmail.com \
    --cc=netdev@vger.kernel.org \
    /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).