On Thu, Jun 15, 2000 at 05:00:17PM +0200, Jeff Garzik wrote:
> I got a report saying that Tulip was slow when IP aliasing for a large
> number of hosts was in effect. This report was from a guy running a Web
> server which binds to a ton of IP aliases in order to do its virtual
> Talking with jamal on IRC he mentioned that IP aliases matching occurs
> through a linear search.
> Can someone point me to this code? I grepped for CONFIG_IP_ALIAS in
> 2.4.x but that seemed only to encompass very small bits of code, and not
> the actual IP matching code I am searching for.
Linear search only occurs in obscure cases. For all normal paths
local IPs are looked up via special local routes in the routing cache
and the FIB hash. About the only thing that could do something like
a linear alias search during normal operation (not configuration)
is inet_select_addr(), but it should not be called frequently.