Ticket #6165: 0001-Ethernet-Don-t-make-assumptions-about-receive-buffer.patch

File 0001-Ethernet-Don-t-make-assumptions-about-receive-buffer.patch, 894 bytes (added by andreasf, 11 years ago)

proposed patch

  • src/system/boot/loader/net/Ethernet.cpp

    From bfd74bc7df771a06c9a09b6540398875b631f371 Mon Sep 17 00:00:00 2001
    From: Andreas Faerber <andreas.faerber@web.de>
    Date: Sun, 13 Jun 2010 01:02:13 +0200
    Subject: [PATCH] Ethernet: Don't make assumptions about receive buffer size
    
    ---
     src/system/boot/loader/net/Ethernet.cpp |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/system/boot/loader/net/Ethernet.cpp b/src/system/boot/loader/net/Ethernet.cpp
    index 2aa472c..6e16756 100644
    a b EthernetService::Init(EthernetInterface *interface)  
    9191    fInterface = interface;
    9292
    9393    fSendBuffer = fInterface->AllocateSendReceiveBuffer(
    94         2 * SEND_BUFFER_SIZE);
     94        SEND_BUFFER_SIZE + RECEIVE_BUFFER_SIZE);
    9595    if (!fSendBuffer)
    9696        return B_NO_MEMORY;
    9797    fReceiveBuffer = (uint8*)fSendBuffer + SEND_BUFFER_SIZE;