Ticket #5234: ip-packet-size.diff
File ip-packet-size.diff, 574 bytes (added by , 14 years ago) |
---|
-
src/system/boot/loader/net/IP.cpp
diff --git a/src/system/boot/loader/net/IP.cpp b/src/system/boot/loader/net/IP.cpp index 2be9f26..807fb34 100644
a b IPService::HandleEthernetPacket(EthernetService *ethernet, 112 112 if (service->IPProtocol() == header->protocol) { 113 113 service->HandleIPPacket(this, ntohl(header->source), 114 114 ntohl(header->destination), 115 (uint8*)data + headerLength, size - headerLength); 115 (uint8*)data + headerLength, 116 ntohs(header->total_length) - headerLength); 116 117 break; 117 118 } 118 119 }