diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-23 11:00:22 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-23 11:00:22 -0600 |
commit | 6796a8dde653598dec5c234bf68b2b3bd246a099 (patch) | |
tree | 6377c22fd0583404c4411a1bc71640bdfbc754cb /nuttx/net/socket/sendto.c | |
parent | 2d0aca092dfe254563e9cc148fb1eed82522d74c (diff) | |
download | nuttx-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/socket/sendto.c')
-rw-r--r-- | nuttx/net/socket/sendto.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/net/socket/sendto.c b/nuttx/net/socket/sendto.c index 09a5dd7d4..ae2884816 100644 --- a/nuttx/net/socket/sendto.c +++ b/nuttx/net/socket/sendto.c @@ -417,9 +417,13 @@ ssize_t psock_sendto(FAR struct socket *psock, FAR const void *buf, state.st_cb->priv = (void*)&state; state.st_cb->event = sendto_interrupt; - /* Notify the device driver of the availabilty of TX data */ + /* 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 /* Wait for either the receive to complete or for an error/timeout to occur. * NOTES: (1) net_lockedwait will also terminate if a signal is received, (2) |