Re: [PATCH] ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19

Matthias Andree (
Tue, 11 Sep 2001 18:39:28 +0200

On Tue, 11 Sep 2001, wrote:

> A. No way to do the trick with SIOCSIF*.

Well, ioctl cannot configure IP aliases, however. Indeed, it may be
useful to change the patch to not touch the SIOCS* functions and
document that it only accesses the first one.

> B. The things does not become simpler when code does something random.
> The things become simpler when code checks something explicitly,
> otherwise you have to add comment: "Well, here we do this against
> plain logic, but this does not matter because of this, this and this."

That's true, but I would not want to make SIOCGIFADDR behave differently
than SIOCGIFNETMASK, in that case, I'd rather have SIOCGIFCONF just
return the first address per interface name.

I will prepare a new patch as my time permits (unless, of course,
someone is faster).

Matthias Andree
Outlook (Express) users: press Ctrl+F3 for the full source code of this post.
begin  dont_click_this_virus.exe
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at