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:
parent
210ea8a561
commit
f4da50b768
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user