From 6796a8dde653598dec5c234bf68b2b3bd246a099 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 23 Nov 2014 11:00:22 -0600 Subject: 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 --- nuttx/net/socket/sendto.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nuttx/net/socket/sendto.c') 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) -- cgit v1.2.3