From: Andrey Savochkin <saw@saw.sw.com.sg>
To: Julian Anastasov <ja@ssi.bg>
Cc: Wietse Venema <wietse@porcupine.org>,
Matthias Andree <matthias.andree@stud.uni-dortmund.de>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip aliasbug 2.4.9 and 2.2.19]
Date: Fri, 7 Sep 2001 11:54:16 +0400 [thread overview]
Message-ID: <20010907115416.A26786@castle.nmd.msu.ru> (raw)
In-Reply-To: <Pine.LNX.4.33.0109070944510.1449-100000@u.domain.uli>
In-Reply-To: <Pine.LNX.4.33.0109070944510.1449-100000@u.domain.uli>; from "Julian Anastasov" on Fri, Sep 07, 2001 at 10:10:01AM
Hi,
On Fri, Sep 07, 2001 at 10:10:01AM +0000, Julian Anastasov wrote:
>
> Andrey Savochkin wrote:
>
> > > > connect a datagram socket (which won't produce any actual traffic) to
> > > > the remote host with INADDR_ANY as the local address, and then query
> > > > the local address. If the local address is the same as the remote
> > > > address, the address is local.
> > >
> > > That will always work, even when you have multiple ethernet
> > > interfaces??
> >
> > It will work almost always, except cases where administrator set different
> > preffered sources in local routes.
>
> It seems if connect() is called without bind() and the target
> is local address the selected source is the same (the preferred address
> is not used). The postfix guys simply can try this proposal (I don't
I've just checked, you're right.
In the mainstream 2.4 kernels for local routes setting the source to be equal
to the target overrides the preferred source from the route.
I personally consider it as a bug.
Why do we have preferred source field in the routes if not to override how
the kernel selects the source by itself?
Andrey
next prev parent reply other threads:[~2001-09-07 7:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-07 10:10 Julian Anastasov
2001-09-07 7:54 ` Andrey Savochkin [this message]
2001-09-07 11:09 ` Julian Anastasov
2001-09-07 8:42 ` Andrey Savochkin
2001-09-07 12:08 ` Julian Anastasov
2001-09-07 16:39 ` Christopher Friesen
-- strict thread matches above, loose matches on Subject: below --
2001-09-06 17:23 notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug " Andrey Savochkin
2001-09-06 17:39 ` Wietse Venema
2001-09-06 18:23 ` H. Peter Anvin
2001-09-07 5:48 ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip aliasbug " Ben Greear
2001-09-07 5:50 ` H. Peter Anvin
2001-09-17 21:39 ` Ben Greear
2001-09-07 6:26 ` Andrey Savochkin
2001-09-07 6:21 ` H. Peter Anvin
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=20010907115416.A26786@castle.nmd.msu.ru \
--to=saw@saw.sw.com.sg \
--cc=ja@ssi.bg \
--cc=linux-kernel@vger.kernel.org \
--cc=matthias.andree@stud.uni-dortmund.de \
--cc=wietse@porcupine.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
all inboxes | Powered by JetHome®