lkml.org 
[lkml]   [1997]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: nfs root and default gateway problem (2.1.26)
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);

/*
\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.020 / U:2.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site