diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-06-22 18:53:18 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-06-22 18:53:18 -0600 |
commit | 6b6026feba4b5ce279197f18872927cdc56ce5a1 (patch) | |
tree | 51aaadf3337ff25f8b8c6d5405341d7b64ec1513 /nuttx/net/uip/uip_iobsend.c | |
parent | b38ddf0dd017cf9b9a837048ba1622269d402c33 (diff) | |
download | nuttx-6b6026feba4b5ce279197f18872927cdc56ce5a1.tar.gz nuttx-6b6026feba4b5ce279197f18872927cdc56ce5a1.tar.bz2 nuttx-6b6026feba4b5ce279197f18872927cdc56ce5a1.zip |
TCP write buffering: Extend and fix some buffer dumping logic
Diffstat (limited to 'nuttx/net/uip/uip_iobsend.c')
-rw-r--r-- | nuttx/net/uip/uip_iobsend.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/net/uip/uip_iobsend.c b/nuttx/net/uip/uip_iobsend.c index d5ed4072b..c3bec5f99 100644 --- a/nuttx/net/uip/uip_iobsend.c +++ b/nuttx/net/uip/uip_iobsend.c @@ -97,8 +97,16 @@ void uip_iobsend(FAR struct uip_driver_s *dev, FAR struct iob_s *iob, { DEBUGASSERT(dev && len > 0 && len < CONFIG_NET_BUFSIZE); + /* Copy the data from the I/O buffer chain to the device buffer */ + iob_copyout(dev->d_snddata, iob, len, offset); dev->d_sndlen = len; + +#ifdef CONFIG_NET_TCP_WRBUFFER_DUMP + /* Dump the outgoing device buffer */ + + lib_dumpbuffer("uip_iobsend", dev->d_snddata, len); +#endif } #endif /* CONFIG_NET_IOB */ |