Messages in this thread |  | | Date | Tue, 11 Sep 2001 18:39:28 +0200 | From | Matthias Andree <> | Subject | Re: [PATCH] ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19 |
| |
On Tue, 11 Sep 2001, kuznet@ms2.inr.ac.ru 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 end - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |