lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Pbuf alloc size


From: Kjel Snorre Jahrus
Subject: Re: [lwip-users] Pbuf alloc size
Date: Mon, 13 Aug 2012 09:41:46 +0200

Hey there,

My problem is not the actual 14 extra bytes that I am allocating but the fact that for each received package I am allocating mtu(1500) bytes, instead of the size of the received frame which might be 60 bytes for example.

Best regards,
Kjel Snorre

On Sat, Aug 11, 2012 at 8:28 PM, Kieran Mansley <address@hidden> wrote:

On 10 Aug 2012, at 11:59, Kjel Snorre Jahrus wrote:

> Hello,
>
> I am trying to implement the lwIP on my platform and I noticed that the app works when I am allocating netif->mtu+14 bytes to the newly created pbuf in the low_level_input function but it doesn't if I allocate the size of the currently received frame.

14 is the size of the ethernet header.  The MTU should include the ethernet header though.

Kieran
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]