Messages in this thread |  | | Subject | Re: ioctl SIOCGIFNETMASK: ip alias bug 2.4.9 and 2.2.19 | From | Andi Kleen <> | Date | 05 Sep 2001 21:26:50 +0200 |
| |
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
- 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/
|  |