From: Olaf Kirch <okir@caldera.de>
To: Andi Kleen <ak@suse.de>
Cc: Olaf Kirch <okir@caldera.de>,
linux-kernel@vger.kernel.org, security-audit@ferret.lmh.ox.ac.uk
Subject: Re: Traceroute without s bit
Date: Wed, 6 Dec 2000 16:07:38 +0100 [thread overview]
Message-ID: <20001206160737.M9533@monad.caldera.de> (raw)
In-Reply-To: <20001206135019.L9533@monad.caldera.de> <20001206140905.A408@gruyere.muc.suse.de>
In-Reply-To: <20001206140905.A408@gruyere.muc.suse.de>; from ak@suse.de on Wed, Dec 06, 2000 at 02:09:05PM +0100
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.
However the good thing is that somewhere something seems to check that
the requested address is indeed one attached to a local interface.
> > 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.
You're right about the IP_RETOPS stuff though. I didn't look closely enough;
ip_cmsg_send does expect raw options.
Thanks,
Olaf
--
Olaf Kirch | --- o --- Nous sommes du soleil we love when we play
okir@monad.swb.de | / | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax
okir@caldera.de +-------------------- Why Not?! -----------------------
UNIX, n.: Spanish manufacturer of fire extinguishers.
-
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/
next prev parent reply other threads:[~2000-12-06 15:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-06 12:50 Traceroute without s bit Olaf Kirch
2000-12-06 13:09 ` Andi Kleen
2000-12-06 15:07 ` Olaf Kirch [this message]
2000-12-06 16:27 ` Andi Kleen
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=20001206160737.M9533@monad.caldera.de \
--to=okir@caldera.de \
--cc=ak@suse.de \
--cc=linux-kernel@vger.kernel.org \
--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