Re: [edk2] How do I use NET_BUF?

2014-05-11 Thread Ye, Ting
You may use NetbufAlloc() in your cases. Please check DxeNetLib in MdeModulePkg for more NET_BUF operation APIs. Best Regards, Ye Ting From: Thomas Rognon [mailto:tcrog...@gmail.com] Sent: Monday, May 12, 2014 8:27 AM To: edk2-devel Subject: [edk2] How do I use NET_BUF? Experts, I'd like to us

[edk2] How do I use NET_BUF?

2014-05-11 Thread Thomas Rognon
Experts, I'd like to use the TcpIoLib and UdpIoLib, but I spend way too much time dealing with the NET_BUF struct. I must be doing things the hard way. What is the best way to set up a NET_BUF for the following two scenarios? Is it different for asynchronous vs. synchronous? Are there any other c