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



_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to