Re: nfs root and default gateway problem (2.1.26)

A.N.Kuznetsov (kuznet@ms2.inr.ac.ru)
Sun, 16 Feb 1997 19:15:13 +0300


In article <199702151823.VAA13794@gemini.yars.free.net> you wrote:
: but the server IS on the local network... I looked in nfsroot.c
: and it appears netmask has the value INADDR_NONE = 0xffffffff,
: thus the check for local network always fails.

It is my fault. I honestly believed that INADDR_NONE==0 8)8)8)
I beg pardon for troubles. One-liner that should fix the bug is appended.
Please, report results. Note that, I have no information about
nfsroot status after 2.1.15, so that your report would be very valuable.

Alexey Kuznetsov.

--- nfsroot.c.orig Sun Feb 16 19:01:01 1997
+++ nfsroot.c Sun Feb 16 19:08:31 1997
@@ -1349,6 +1349,7 @@
root_dev->pa_addr | ~root_dev->pa_mask;
devinet_ioctl(SIOCSIFBRDADDR, &ifr);
}
+ netmask.sin_addr.s_addr = root_dev->pa_mask;
set_fs(fs);

/*