Ticket #5234: ip-packet-size.diff

File ip-packet-size.diff, 574 bytes (added by andreasf, 14 years ago)

patch

  • 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,  
    112112        if (service->IPProtocol() == header->protocol) {
    113113            service->HandleIPPacket(this, ntohl(header->source),
    114114                ntohl(header->destination),
    115                 (uint8*)data + headerLength, size - headerLength);
     115                (uint8*)data + headerLength,
     116                ntohs(header->total_length) - headerLength);
    116117            break;
    117118        }
    118119    }