Yes, it will work this way.  In fact, the Stellaris lwIP Ethernet driver is 
done just like this.

Bill

>-----Original Message-----
>From: [email protected]
>[mailto:[email protected]] On
>Behalf Of John Kennedy
>Sent: Thursday, April 02, 2009 6:16 PM
>To: [email protected]
>Subject: [lwip-users] low_level_output question
>
>Hi,
>I'm porting lwip (using an RTOS and the socket API) and I have a
>question regarding the low_level_output function.
>If I can't send the pbuf immediately (netif busy), to avoid copying the
>pbuf, I'd like to do the following:
>*       Increment the reference count to prevent lwip from re-using or
>freeing the pbuf.
>*       Put the pbuf on my output queue and try to send it later.
>*       Return ERR_OK.
>Later when the netif is not busy...
>*       Remove the pbuf from my output queue.
>*       Send the pbuf.
>*       Free the pbuf.
>
>Will this scheme work with lwip?
>
>Thanks,
>John Kennedy
>
>
>
>
>
>________________________________________
>John Kennedy
>
>
>Idaho Technology Inc.
>390 Wakara Way
>Salt Lake City, UT 84108, USA
>
>USA: 1-800-735-6544
>Bus:+1 (801)736-6354 x448
>Fax:+1 (801)588-0507
>
>http://www.idahotech.com/
>
>________________________________________
>CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential
>information of the sender and are for the exclusive use of the intended
>recipient. If you are not the intended recipient, be aware that any
>disclosure, copying, distribution, or use of this E-mail or any
>attachment is prohibited. If you have received this E-mail in error,
>please notify us immediately by returning it to the sender and delete
>this copy from your system. Thank you for your cooperation.
>
>
>
>
>_______________________________________________
>lwip-users mailing list
>[email protected]
>http://lists.nongnu.org/mailman/listinfo/lwip-users



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

Reply via email to