Re: Subtleties of the netmask (inet_ifa_match)

From: Alexey Kuznetsov (
Date: Thu Jul 26 2001 - 19:32:00 EST


> o Does addresses with netmask have scope RT_SCOPE_NOWHERE?


> o and does it imply that routing would never route to them?

Even if you set this, it does not imply anything, but that address
will not be used on any packet while automaitc source address selection.

> o Are there subtle differences between and netmasks?

Subtle? :-) They are on exactly opposite poles.

> The inet_ifa_match function seems to be wrong with netmask.
> The netmask matches everything!

Of course. Zero mask matches everything.

> Will there be any routing problems if we use the netmask?

No problems provided you wanted this.
F.e. default route is route with netmask zero, it matches all,
so that all the addresses are routed there.
It is exactly which happens in your setup, but all the addresses
fall to loopback.

Looking at your original purpose, you wanted mask

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Tue Jul 31 2001 - 21:00:32 EST