mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Olaf Kirch <okir@caldera.de>
Cc: Andi Kleen <ak@suse.de>,
	linux-kernel@vger.kernel.org, security-audit@ferret.lmh.ox.ac.uk
Subject: Re: Traceroute without s bit
Date: Wed, 6 Dec 2000 17:27:10 +0100	[thread overview]
Message-ID: <20001206172710.A5145@gruyere.muc.suse.de> (raw)
In-Reply-To: <20001206135019.L9533@monad.caldera.de> <20001206140905.A408@gruyere.muc.suse.de> <20001206160737.M9533@monad.caldera.de>
In-Reply-To: <20001206160737.M9533@monad.caldera.de>; from okir@caldera.de on Wed, Dec 06, 2000 at 04:07:38PM +0100

On Wed, Dec 06, 2000 at 04:07:38PM +0100, Olaf Kirch wrote:
> On Wed, Dec 06, 2000 at 02:09:05PM +0100, Andi Kleen wrote:
> > IP_PKTINFO does not allow to set source addresses, only destination
> > addresses. Source address depends on the boundage or the route. 
> 
> No. At least udp_sendmsg uses the spec_dst_addr field as the source
> address.  I added some code to my traceroute that lets you select the
> source address in order to verify that.

Please read the code again.

It uses spec_dst to select the possibly policy sourced route -- the
actual source address is only set from that route (either default or what
was set using ip route's from flag) or the bound address.



> However the good thing is that somewhere something seems to check that
> the requested address is indeed one attached to a local interface.

That's not actually checked, but in most simple routing configurations it is
true.


> 
> > > 	13:43:02 poll([{fd=4, events=POLLERR}], 1, 5) = 0
> > > 	13:43:02 poll([{fd=4, events=POLLERR}], 1, 5) = 0
> > > 	13:43:02 poll([{fd=4, events=POLLERR}], 1, 5) = 0
> > > 	13:43:02 poll([{fd=4, events=POLLERR}], 1, 5) = 0
> > 
> > POLLERR is returned until the error queue is empty. I suspect you're
> > not emptying it properly in all cases. It can contain multiple errors.
> 
> But it doesn't return POLLERR. If it was returning it, pollfd.revents
> would be set. pollfd.events is the event mask that's being passed _into_
> the poll() call.

Right. I missed your 5ms timeout @)

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  reply	other threads:[~2000-12-06 16:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-06 12:50 Olaf Kirch
2000-12-06 13:09 ` Andi Kleen
2000-12-06 15:07   ` Olaf Kirch
2000-12-06 16:27     ` Andi Kleen [this message]
2000-12-06 15:35 ` James Antill
2000-12-06 16:29   ` Olaf Kirch

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=20001206172710.A5145@gruyere.muc.suse.de \
    --to=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=okir@caldera.de \
    --cc=security-audit@ferret.lmh.ox.ac.uk \
    /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

all inboxes | Powered by JetHome®