From 98664e52dd2fdcc21ed6e0acaa56468df9fc5963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 11 Jan 2010 20:50:06 +0000 Subject: [PATCH] =?UTF-8?q?Patch=20by=20Andreas=20F=C3=A4rber:=20=20*=20Fi?= =?UTF-8?q?x=20the=20boot=20net=20stack's=20IPService=20to=20base=20the=20?= =?UTF-8?q?calculation=20payload=20size=20=20=20=20on=20the=20IP-indicated?= =?UTF-8?q?=20packet=20size=20instead=20of=20the=20Ethernet=20payload.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks a lot! Fixes ticket #5234. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35016 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/boot/loader/net/IP.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/system/boot/loader/net/IP.cpp b/src/system/boot/loader/net/IP.cpp index 2be9f26c52..807fb346b4 100644 --- a/src/system/boot/loader/net/IP.cpp +++ b/src/system/boot/loader/net/IP.cpp @@ -112,7 +112,8 @@ IPService::HandleEthernetPacket(EthernetService *ethernet, 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; } }