Re: 2.1.15 vs. "route"

A.N.Kuznetsov (
Sun, 15 Dec 1996 18:00:03 +0300 (MSK)

> Confirmed. What is the proper mask for a "default" route?

Apparently all zeros.

> If the default route
> netmask value doesn't matter, then the kernel shouldn't complain
> when I fail to specify one :-).

Doesn't matter??? The route is default == it has zero netmask,
if netmask is not zero, the route is not default.

Kernel WARNS you, when the family field in rt_genmask
was not specified, and it had to make an assumption about it.
This assumption could be right (in the case of default route) and
could be wrong (if it was interface route)
A lot of programs forget to make it,
fix them and this message will disappear.

In any case, it is just warning, kernel makes correct things.

Alexey Kuznetsov.