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

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Thu Sep 06 2001 - 12:01:01 EST


> That is not practical. Surely there is an API to find out if an IP
> address connects to the machine itself. If every UNIX system on
> this planet can do it, then surely Linux can do it.

There are a very large number of networking configurations that Unix (here
meaning 4.*BSD networking or its various stream hacked abuses) cannot
handle.

How for example do you propose to answer the question for the case
Q: "is this local" A: "it depends on the sender"

With netfilter and transparent proxying active this is entirely possible

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



This archive was generated by hypermail 2b29 : Fri Sep 07 2001 - 21:00:36 EST