From: Matthias Andree <matthias.andree@stud.uni-dortmund.de>
To: kuznet@ms2.inr.ac.ru
Cc: matthias.andree@gmx.de, alan@lxorguk.ukuu.org.uk,
wietse@porcupine.org, linux-kernel@vger.kernel.org,
linux-net@vger.kernel.org, netdev@oss.sgi.com
Subject: Re: [PATCH] ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19
Date: Mon, 10 Sep 2001 22:14:48 +0200 [thread overview]
Message-ID: <20010910221448.E30149@emma1.emma.line.org> (raw)
In-Reply-To: <20010910100537.W26627@khan.acc.umu.se> <200109101936.XAA00707@ms2.inr.ac.ru>
In-Reply-To: <200109101936.XAA00707@ms2.inr.ac.ru>
On Mon, 10 Sep 2001, kuznet@ms2.inr.ac.ru wrote:
> (BTW Matthias, while applying it to my tree, I noticed that
> it does not check for SIOGGIFNETMASK. It would be better to do this only
> when it is meaningful: I see only SIOGGIFNETMASK and SIOGGIFBROADCAST).
Thanks for reviewing it again.
However, I think it should not be complicated. It's clear, simple and
can easily be understood.
Further reasons:
1/ It's not worth it.
a/ If someone configures two IP addresses for a P2P-interface,
something is wrong in a different part of the kernel, so
SIOCGIFDSTADDR need not be exempt.
b/ Treating SIOCGIFADDR the same way as SIOCGIFNETMASK has the
advantage that kernels with 4.3BSD ioctl interface (Linux up to 2.2.19
and 2.4.9) will return the first address of the interface rather than
the alias address passed in. This way, an application can check if the
kernel's ioctl interface is really IP alias aware, by just matching
the ifr it passed in against the one it got back after SIOCGIFADDR.
I have actually sent a patch to Wietse Venema which lets Postfix warn
about alias interface addresses that it cannot obtain the netmasks for
and just skip them, so it does not treat something it does not know
how to handle.
2/ The search-for-ifa code is unconditionally called upon entry to that
function. If it depends on the ioctl, it will confuse all people that
expect all SIOCGIF* ioctls to have the same search properties and
hinder debugging of applications.
Let's keep this as simple as possible. Performance is not an issue,
ioctl is not read, you don't call it from tight inner loops. Let's not
make it more error prone than it needs to be.
--
Matthias Andree
Outlook (Express) users: press Ctrl+F3 for the full source code of this post.
begin dont_click_this_virus.exe
end
next prev parent reply other threads:[~2001-09-10 20:47 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20010906155920.B29583@maggie.dt.e-technik.uni-dortmund.de>
[not found] ` <200109061554.TAA11031@ms2.inr.ac.ru>
2001-09-06 17:48 ` Matthias Andree
2001-09-06 18:06 ` kuznet
2001-09-06 18:18 ` Wietse Venema
2001-09-06 18:38 ` kuznet
2001-09-06 19:45 ` Alan Cox
2001-09-06 19:59 ` Wietse Venema
2001-09-06 20:20 ` jamal
2001-09-06 20:41 ` Wietse Venema
2001-09-06 20:44 ` jamal
2001-09-06 21:20 ` Matthias Andree
2001-09-07 6:11 ` Patrick Schaaf
2001-09-07 9:24 ` Henning P. Schmiedehausen
2001-09-07 11:13 ` Matthias Andree
2001-09-08 13:25 ` Kai Henningsen
2001-09-06 20:22 ` Alan Cox
2001-09-06 20:38 ` Wietse Venema
2001-09-10 16:11 ` Dennis
2001-09-06 20:13 ` Matthias Andree
2001-09-10 8:05 ` David Weinehall
2001-09-10 12:26 ` Wietse Venema
2001-09-10 12:53 ` David Weinehall
2001-09-10 13:52 ` Wietse Venema
2001-09-10 15:18 ` Matthias Andree
2001-09-10 15:12 ` Matthias Andree
2001-09-10 19:36 ` kuznet
2001-09-10 20:14 ` Matthias Andree [this message]
2001-09-11 15:22 ` kuznet
2001-09-11 16:39 ` Matthias Andree
2001-09-10 20:40 ` Andi Kleen
2001-09-10 21:19 ` Matthias Andree
2001-09-11 11:26 ` 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=20010910221448.E30149@emma1.emma.line.org \
--to=matthias.andree@stud.uni-dortmund.de \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-net@vger.kernel.org \
--cc=matthias.andree@gmx.de \
--cc=netdev@oss.sgi.com \
--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®