Hi,
        I had the same project integrating lwIP into MPC852T running an RTOS. I 
used PBUF_POOL for the data reception when i linked the pbufs to the buffer 
descriptor,
        this way i dont have to allocate memory for each pbufs.
        As for transmission it depends on which API you use. You really dont 
have to do much about pbufs, except initialising them with memory
        and linking them to the CPM buffer descriptor before reception
        and transmission. I used socket API, so UDP uses PBUF_REF/ROM as it 
just references the data it got from application, while TCP uses PBUF_RAM as it 
copies the
        data from the appplication buffer into the packet buffer.
 
        Hope that helps.
 
 
        Greetings
        M Ikhwan Ismail


From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Tue, 4 Mar 2008 16:36:33 
+0530thSubject: [lwip-users] PBUFS




Dear All,
 
I am new to the lwIP stack and trying to use it on mpc852 powerpc processor … 
 
I am trying to understand it but have difficulty to understand the significance 
and usage of PUF_RAM, PBUF_ROM and PUB_POOL. 
I am not able to understand which one to use and when to use ? ? ?
 
Any information regarding it will be really helpful for me to proceed. 
So waiting for your prompt reply, thank you … 
 
Kind Regards,
VijayEmail Disclaimer:-------------------------This e-mail and any files 
transmitted with it are for the sole use of the intended recipient(s) and may 
contain confidential and privileged information. Computer viruses can be 
transmitted via email.The recipient should check this email and any attachments 
for the presence of viruses. The company accepts no liability for any damage 
caused by any virus transmitted by this email.Using Symantec Hosted Mail 
Outbound Server
_________________________________________________________________
Connect and share in new ways with Windows Live.
http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to