summaryrefslogtreecommitdiff
path: root/nuttx/net/tcp/tcp_send_buffered.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-23 11:00:22 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-23 11:00:22 -0600
commit6796a8dde653598dec5c234bf68b2b3bd246a099 (patch)
tree6377c22fd0583404c4411a1bc71640bdfbc754cb /nuttx/net/tcp/tcp_send_buffered.c
parent2d0aca092dfe254563e9cc148fb1eed82522d74c (diff)
downloadnuttx-6796a8dde653598dec5c234bf68b2b3bd246a099.tar.gz
nuttx-6796a8dde653598dec5c234bf68b2b3bd246a099.tar.bz2
nuttx-6796a8dde653598dec5c234bf68b2b3bd246a099.zip
Add logic to netdev_findbyaddr() to return the correct network device for the case where a broadcast address is used. This change caused trivial ripples through other files because additional parameters are required for netdev_findbyaddr() when CONFIG_NET_MULTINIC
Diffstat (limited to 'nuttx/net/tcp/tcp_send_buffered.c')
-rw-r--r--nuttx/net/tcp/tcp_send_buffered.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/net/tcp/tcp_send_buffered.c b/nuttx/net/tcp/tcp_send_buffered.c
index d516262fa..c50b81040 100644
--- a/nuttx/net/tcp/tcp_send_buffered.c
+++ b/nuttx/net/tcp/tcp_send_buffered.c
@@ -824,7 +824,11 @@ ssize_t psock_tcp_send(FAR struct socket *psock, FAR const void *buf,
/* Notify the device driver of the availability of TX data */
+#ifdef CONFIG_NET_MULTILINK
+ netdev_txnotify(conn->lipaddr, conn->ripaddr);
+#else
netdev_txnotify(conn->ripaddr);
+#endif
result = len;
}