[haiku-commits] r35016 - haiku/trunk/src/system/boot/loader/net

  • From: superstippi@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 11 Jan 2010 21:50:06 +0100 (CET)

Author: stippi
Date: 2010-01-11 21:50:06 +0100 (Mon, 11 Jan 2010)
New Revision: 35016
Changeset: http://dev.haiku-os.org/changeset/35016/haiku
Ticket: http://dev.haiku-os.org/ticket/5234

Modified:
   haiku/trunk/src/system/boot/loader/net/IP.cpp
Log:
Patch by Andreas F?\195?\164rber:
 * Fix the boot net stack's IPService to base the calculation payload size
   on the IP-indicated packet size instead of the Ethernet payload.

Thanks a lot! Fixes ticket #5234.


Modified: haiku/trunk/src/system/boot/loader/net/IP.cpp
===================================================================
--- haiku/trunk/src/system/boot/loader/net/IP.cpp       2010-01-11 20:36:24 UTC 
(rev 35015)
+++ haiku/trunk/src/system/boot/loader/net/IP.cpp       2010-01-11 20:50:06 UTC 
(rev 35016)
@@ -112,7 +112,8 @@
                if (service->IPProtocol() == header->protocol) {
                        service->HandleIPPacket(this, ntohl(header->source),
                                ntohl(header->destination),
-                               (uint8*)data + headerLength, size - 
headerLength);
+                               (uint8*)data + headerLength,
+                               ntohs(header->total_length) - headerLength);
                        break;
                }
        }


Other related posts:

  • » [haiku-commits] r35016 - haiku/trunk/src/system/boot/loader/net - superstippi