lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #44805] sendmsg implementation to support scatter/gath


From: Joel Cunningham
Subject: [lwip-devel] [bug #44805] sendmsg implementation to support scatter/gather IO
Date: Fri, 24 Apr 2015 21:07:49 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0

Follow-up Comment #2, bug #44805 (project lwip):

Simon,

Thanks for looking at the patch.  I based the UDP support on how sendto() is
implemented.

For configurations where LWIP_NETIF_TX_SINGLE_PBUF is not enabled, sendto()
skips the memory copy and uses a reference.  Specifically, it declares a
struct netbuf on the stack called "buf" and then adds the data via reference
with netbuf_ref().  Then it calls netbuf_send(), afterwards returning control
to application.

Is the sendto implementation also incorrect, or did I overlook something?

Or is the issue that my patch doesn't work when LWIP_NETIF_TX_SINGLE_PBUF is
enabled? I can add support for it and when enabled, flatten the vectors into a
contiguous pbuf.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?44805>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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