From f4da50b768e795933b15705c319602c0b29f40ca Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 19 Jul 2007 13:58:17 +0000 Subject: [PATCH] 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 --- src/system/kernel/fs/vfs_net_boot.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/system/kernel/fs/vfs_net_boot.cpp b/src/system/kernel/fs/vfs_net_boot.cpp index 48fd8d6cb5..611451350b 100644 --- a/src/system/kernel/fs/vfs_net_boot.cpp +++ b/src/system/kernel/fs/vfs_net_boot.cpp @@ -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); } }