lwip-users
[Top][All Lists]
Advanced

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

RE: Antw: RE: [lwip-users] pbuf_header fails in etharp_output


From: Kieran Mansley
Subject: RE: Antw: RE: [lwip-users] pbuf_header fails in etharp_output
Date: Tue, 22 May 2007 14:34:22 +0100

On Tue, 2007-05-22 at 15:25 +0200, Goldschmidt Simon wrote:
> > An easy workaround would be in this case to call pbuf_header 
> > to reserve
> > 16 bytes before you copy in the packet data.  This would 
> > ensure there is space in the pbuf to put the outgoing 
> > ethernet header, but is really a bit of a hack and the right 
> > thing to do is fix it in lwIP's ICMP code.
> 
> That would make ICMP dependent of the link layer!

No more so than TCP, UDP, etc.  It would (if there wasn't enough space
in the pbuf it already had) simply allocate a pbuf using the PBUF_IP
pbuf_layer flag, and so it would have enough space reserved for the IP
and link headers.

Kieran





reply via email to

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