[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] ip_output() calls pbuf_free() ??
From: |
Martin Glunz |
Subject: |
[lwip-users] Re: [lwip] ip_output() calls pbuf_free() ?? |
Date: |
Thu, 09 Jan 2003 00:13:02 -0000 |
address@hidden wrote:
>
> Hello,
>
> Why does ip_output() pbuf_free() the given packet if there was no route
> available?
>
> Isn't the user responsible for pbuf_free()??
>
I think so. Double freeing of a pbuf with PBUF_FLAG_ROM seems to
trigger memp_sanity() in memp.c. So if one tries to send packets
without a route available and lwip is compiled with LWIP_DEBUG,
this might occur.
BTW:
there's a bug in mem_sanity:
if(c < 0)
abort();
should be
if(c < 0)
return 0;
Martin Glunz
[This message was sent through the lwip discussion list.]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] Re: [lwip] ip_output() calls pbuf_free() ??,
Martin Glunz <=