Re: notion of a local address [was: Re: ioctl SIOCGIFNETMASK: ip alias

Andi Kleen (ak@suse.de)
Thu, 6 Sep 2001 22:31:03 +0200


On Thu, Sep 06, 2001 at 09:23:43PM +0100, Alan Cox wrote:
> > Alan, SIOCGIFCONF is working sufficiently, it's SIOCGIFNETMASK that
> > we're talking about. SIOCGIFNETMASK works properly on any other system
> > or - as far as I can currently test - with my patch.
>
> Then that is worth looking into.

First it would break lots of linux user land (which doesn't initialise sin_addr
in SIOCGIFNETMASK) and special casing for "local networks" is in any case bogus.
Netmask checking is only needed for that; it's not even needed for local address
checking.

-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/