Computed the netmask in net endianess. The wrong netmask caused

misrouting when the net server set up the loop device, thus stopping the
net boot process.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21662 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-07-19 13:58:17 +00:00
parent 210ea8a561
commit f4da50b768

View File

@ -345,13 +345,13 @@ NetBootMethod::Init()
if (IN_CLASSA(net)
|| (ntohl(net) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET) {
// class A, or loopback
netMask = IN_CLASSA_NET;
netMask = ntohl(IN_CLASSA_NET);
} else if (IN_CLASSB(net)) {
// class B
netMask = IN_CLASSB_NET;
netMask = ntohl(IN_CLASSB_NET);
} else {
// class C and rest
netMask = IN_CLASSC_NET;
netMask = ntohl(IN_CLASSC_NET);
}
}