netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mick McCreath <mick_mccreath@au.securecomputing.com>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: netdev@vger.kernel.org
Subject: Re: raw sockets ignore IP_HDRINCL data
Date: Mon, 04 Jun 2007 08:52:07 +1000	[thread overview]
Message-ID: <1180911127.5956.64.camel@localhost> (raw)
In-Reply-To: <E1HuRS1-0002aE-00@gondolin.me.apana.org.au>

Hi Herbet,

Thanks for the feedback.

On Sat, 2007-06-02 at 21:07 +1000, Herbert Xu wrote:
> Mick McCreath <mick_mccreath@au.securecomputing.com> wrote:
> > 
> > When I run traceroute -i eth1 5.4.3.2, the UDP packets are routed out
> > eth2.
> > 
> > Has anybody seen this behaviour with traceroute??
> 
> Well the version of traceroute here actually does a BINDTODEVICE so it
> will go out of the right interface.  It also binds the socket so that
> it gets the right source address.
> 

Which traceroute are you using??

I am using version 1.4a12 by Van Jacobson downloaded from Lawrence
Berkeley Labs.

In this one, it only binds if IP_HDRINCL is not defined (in a #ifndef).

> I can see your point of view that it would be nice if the kernel read
> the IP headers in making its routing decision.  However, the current
> behaviour has been there forever and it's unclear what we might break
> by changing it.

I sort of thought that might be the case :-)

Cheers,

-- 
--
Mick McCreath
Sr Engineer

Secure Computing®
your trusted source for enterprise security™
www.securecomputing.com
NASDAQ: SCUR

61 7 3435 2803 (Direct Phone)
mick_mccreath@securecomputing.com

Secure Computing Corporation
825 Stanley Street
Woolloongabba
Queensland 4102
Australia

The information contained in this email message may be privileged,
confidential and protected from disclosure. If you are not the intended
recipient, any review, dissemination, distribution or copying is
strictly prohibited. If you have received this email message in error,
please notify the sender by reply email and delete the message and any
attachments.


  reply	other threads:[~2007-06-03 22:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-01  5:36 raw sockets ignore IP_HDRINCL data Mick McCreath
2007-06-02 11:07 ` Herbert Xu
2007-06-03 22:52   ` Mick McCreath [this message]
2007-06-03 23:59     ` Herbert Xu

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=1180911127.5956.64.camel@localhost \
    --to=mick_mccreath@au.securecomputing.com \
    --cc=herbert@gondor.apana.org.au \
    --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).