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; } }