lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Re: [lwip] pbuf_free


From: Mumtaz Ahmad
Subject: [lwip-users] Re: [lwip] pbuf_free
Date: Thu, 09 Jan 2003 01:02:15 -0000

I am not talking about rawapi interface . I am talking about the BSD socket
interface .

----- Original Message -----
From: Conny Öhult <address@hidden>
To: <address@hidden>
Sent: Tuesday, April 16, 2002 4:47 PM
Subject: Re: [lwip] pbuf_free


> Hope you noticed this in the rawapi.txt document at
> http://www.sics.se/~adam/lwip/documentation.html
>
> - err_t udp_send(struct udp_pcb *pcb, struct pbuf *p)
> Sends the pbuf p. The pbuf is not deallocated.
>
> tcp on the other hand will handle deallocation of the pbuf
>
> You application should deallocate the udp pbuf.
>
> /Conny
>
> >At a quick look it seems that tcp_output calls ip_output(p,...) and then
> >pbuf_free(p) while udp_send directly calls ip_output_if without freeing
> >pbuf after the call....???????
> >
> >On Tue, 16 Apr 2002, Mumtaz Ahmad wrote:
> >
> > > There is no pbuf_free in low_level_output .So how come the pbufs that
are
> > > allocated for out packets gets freed?
> > > I am getting the problem of non availability of pbufs in UDP tests
when i
> > > send lot of data .The problem is solved when i insert pbuf_free in
> > > low_level_output function ,but the same solution produces troubles
when i
> > > use TCP socket .TCP seems OK even with no pbuf_free in
low_level_output and
> > > i never get any message of shortage of pbufs while using a TCP
connection.
> > > Any commenst ?
> > >
> > >
> > >
> > >        _o
> > >     _< \_
> > >    (_) >(_)
> > >    -------------
> > >
> > >
> > > [This message was sent through the lwip discussion list.]
> > >
> >
> >[This message was sent through the lwip discussion list.]
>
> -------------------------------------------------------------------------
> Conny Öhult
> Luleå University of Technology
> Department of Computer Science and Electrical Engineering
> SE-971 87 LULEÅ, Sweden
> Phone: 0920-49 1577 (Intl: +46 920 49 1577)
> Fax: 0920-49 2191 (Intl: +46 920 49 2191)
> --------------------------------------------------------------------------

>
>
> [This message was sent through the lwip discussion list.]

[This message was sent through the lwip discussion list.]




reply via email to

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