lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Problem with custom buffers when MEM_ALIGNMENT=4 and ET


From: Simon Goldschmidt
Subject: Re: [lwip-devel] Problem with custom buffers when MEM_ALIGNMENT=4 and ETH_PAD_SIZE=2
Date: Wed, 26 Oct 2011 08:45:35 +0200

Mason <address@hidden> wrote:
> I think there might be another problem when pbuf_layer = PBUF_LINK
> 
> Assume payload = 0x82751742, thus the IP header is at 0x82751742 + 0xd =
> 0x82751750
> but the actual code will set payload to payload_mem + 16

But why would you pass in payload = 0x82751742 if PBUF_LINK_HLEN==16 (which 
means ETH_PAD_SIZE=2)?

I would have expected to either pass in
a) payload=0x82751742 for ETH_PAD_SIZE=0
b) payload=0x82751740 for ETH_PAD_SIZE=1

I think payload = 0x82751742 doesn't fit to ETH_PAD_SIZE=1.

Simon
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de



reply via email to

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