mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrey Savochkin <saw@saw.sw.com.sg>
To: Andi Kleen <ak@suse.de>,
	Matthias Andree <matthias.andree@stud.uni-dortmund.de>
Cc: linux-kernel@vger.kernel.org, Wietse Venema <wietse@porcupine.org>
Subject: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19
Date: Thu, 6 Sep 2001 17:35:34 +0400	[thread overview]
Message-ID: <20010906173534.A21874@castle.nmd.msu.ru> (raw)
In-Reply-To: <20010905170037.A6473@emma1.emma.line.org.suse.lists.linux.kernel> <20010905152738.C5912BC06D@spike.porcupine.org.suse.lists.linux.kernel> <20010905182033.D3926@emma1.emma.line.org.suse.lists.linux.kernel> <oupg0a1wi9x.fsf@pigdrop.muc.suse.de>
In-Reply-To: <oupg0a1wi9x.fsf@pigdrop.muc.suse.de>; from "Andi Kleen" on Wed, Sep 05, 2001 at 09:26:50PM

Hi,

On Wed, Sep 05, 2001 at 09:26:50PM +0200, Andi Kleen wrote:
> Matthias Andree <matthias.andree@stud.uni-dortmund.de> writes:
> > 
> > I believe this would require fixing for compatibility reasons, in the
> > sense that the address is also compared to figure the interface, but I'm
> > out of time now and cannot try anything before tomorrow, I'd happily
> > test patches sent by then.
> 
> Even if it checked the address it would not be unique because you can have multiple
> interfaces with the same addresses but different netmasks.
> The SIOCGIFNETMASK interface is just broken. If you really wanted it you should use
> rtnetlink instead, which allows multiple answers to a single question.
> Likely postfix doesn't really need it though, the concept of checking for "local"
> address is pretty dubious and likely to be incorrect for many cases.

Andi, it's right to the point.
The only one good reason for an SMTP server to bother about IP addresses at
all is a quick check for mail loops, i.e. a check at the moment of opening
TCP connection to send a message whether your peer is yourself.
Bothering about network masks just doesn't have any valid grounds.

In fact, sending message to yourself this way is not a disaster, mail system
has loop protection by design.  However, sending message to yourself wastes
system resources.

It's not possible to answer the right question (whether you talk to yourself)
inspecting IP addresses.
One may have several mail servers on a single computer, each with its own
configuration file, using different local IP addresses.
In the original example, mail systems on 192.168.0.4 and 192.168.1.1 may be
different.

So, the very right way of doing things is:
 - make admin specify the listening addresses for a mail system in the
   configuration and use them to check for loops;
 - never try to learn anything about networking configuration.

	Andrey

  parent reply	other threads:[~2001-09-06 13:28 UTC|newest]

Thread overview: 76+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20010905170037.A6473@emma1.emma.line.org.suse.lists.linux.kernel>
     [not found] ` <20010905152738.C5912BC06D@spike.porcupine.org.suse.lists.linux.kernel>
     [not found]   ` <20010905182033.D3926@emma1.emma.line.org.suse.lists.linux.kernel>
2001-09-05 19:26     ` Andi Kleen
2001-09-06 13:11       ` Matthias Andree
2001-09-06 13:35       ` Andrey Savochkin [this message]
2001-09-06 14:04         ` Wietse Venema
2001-09-06 14:21           ` Matthias Andree
2001-09-06 15:37             ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19] Andrey Savochkin
2001-09-06 15:58               ` Wietse Venema
2001-09-06 16:39                 ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias Alan Cox
2001-09-06 16:45                   ` Wietse Venema
2001-09-06 16:44                 ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19] Andrey Savochkin
2001-09-06 16:47                   ` Andi Kleen
2001-09-06 17:04                     ` Andrey Savochkin
2001-09-06 16:50                   ` Wietse Venema
2001-09-06 17:01                     ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias Alan Cox
2001-09-06 17:23                       ` Wietse Venema
2001-09-06 17:45                         ` Charles Cazabon
2001-09-06 19:34                         ` Alan Cox
2001-09-06 19:41                           ` Wietse Venema
2001-09-06 20:18                             ` Alan Cox
2001-09-06 20:11                           ` Matthias Andree
2001-09-06 20:23                             ` Alan Cox
2001-09-06 20:31                               ` Andi Kleen
2001-09-06 20:52                                 ` Matthias Andree
2001-09-07  9:06                             ` Henning P. Schmiedehausen
2001-09-07  8:52                         ` Matthew Kirkwood
2001-09-08 16:31                           ` Wietse Venema
2001-09-06 18:11                       ` Steve VanDevender
2001-09-06 18:25                         ` Wietse Venema
2001-09-06 19:47                           ` Alan Cox
2001-09-06 20:16                             ` Wietse Venema
2001-09-06 19:10                         ` Steve VanDevender
2001-09-13 14:35                       ` Pavel Machek
2001-09-06 17:03                     ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19] Andi Kleen
2001-09-06 17:23                     ` Andrey Savochkin
2001-09-06 17:39                       ` Wietse Venema
2001-09-06 18:23                         ` H. Peter Anvin
2001-09-07  1:47                           ` Jamie Lokier
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
2001-09-06 19:15                         ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug " dean gaudet
2001-09-06 19:33                           ` Wietse Venema
2001-09-06 20:51                         ` Matti Aarnio
2001-09-07  7:29                           ` Andrey Savochkin
2001-09-07  7:35                             ` Matthias Andree
2001-09-07 10:30                         ` Mike Jagdis
2001-09-07 11:04                           ` Matthias Andree
2001-09-07 15:34                         ` Kurt Roeckx
2001-09-08 13:16                         ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias Kai Henningsen
2001-09-06 18:20                 ` notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19] H. Peter Anvin
2001-09-06 16:01               ` Matthias Andree
2001-09-06 16:38                 ` Andrey Savochkin
2001-09-06 16:43                   ` Wietse Venema
2001-09-06 17:03                     ` Charles Cazabon
2001-09-06 17:05                   ` Alex Bligh - linux-kernel
2001-09-06 17:37                     ` Andrey Savochkin
2001-09-06 17:55               ` kuznet
2001-09-06 14:51           ` ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19 Alan Cox
2001-09-06 14:17         ` Matthias Andree
2001-09-08 12:42     ` Kai Henningsen
2001-09-09  0:37       ` Matthias Andree
     [not found] <fa.k8o5i6v.4i8gis@ifi.uio.no>
     [not found] ` <fa.fuk70gv.mk6m09@ifi.uio.no>
2001-09-06 21:19   ` Sam Varshavchik
2001-09-05 22:08 jamal
2001-09-06 15:11 ` kuznet
2001-09-06 20:22 ` Matthias Andree
     [not found] <20010905170037.A6473@emma1.emma.line.org>
     [not found] ` <20010905152738.C5912BC06D@spike.porcupine.org>
2001-09-05 16:20   ` Matthias Andree
2001-09-05 18:25     ` Christopher Friesen
2001-09-05 18:34       ` Alan Cox
2001-09-05 21:23         ` Wietse Venema
2001-09-06 18:36           ` Andi Kleen
2001-09-06 18:51             ` Wietse Venema
2001-09-06 19:05               ` Andi Kleen
2001-09-07  9:30               ` Henning P. Schmiedehausen
2001-09-07 11:15                 ` Matthias Andree

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=20010906173534.A21874@castle.nmd.msu.ru \
    --to=saw@saw.sw.com.sg \
    --cc=ak@suse.de \
    --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®