summaryrefslogtreecommitdiff
path: root/nuttx/net/netdev_txnotify.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2013-10-05 13:16:18 -0600
committerGregory Nutt <gnutt@nuttx.org>2013-10-05 13:16:18 -0600
commite2f7a1a610753465c2f9f47054ce9365cd131289 (patch)
treef5f316db87c490f053f74d3232adec3736f74276 /nuttx/net/netdev_txnotify.c
parent572252ef94d174774b2455c45657c8255bdf01f0 (diff)
downloadnuttx-e2f7a1a610753465c2f9f47054ce9365cd131289.tar.gz
nuttx-e2f7a1a610753465c2f9f47054ce9365cd131289.tar.bz2
nuttx-e2f7a1a610753465c2f9f47054ce9365cd131289.zip
netdev_findbyaddr() will not use a routing table if one is available. It will also make a better decision in the case there there is no routing table but only a single network interface.
Diffstat (limited to 'nuttx/net/netdev_txnotify.c')
-rw-r--r--nuttx/net/netdev_txnotify.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/nuttx/net/netdev_txnotify.c b/nuttx/net/netdev_txnotify.c
index 41f97c401..18e4e1b70 100644
--- a/nuttx/net/netdev_txnotify.c
+++ b/nuttx/net/netdev_txnotify.c
@@ -90,25 +90,12 @@
*
****************************************************************************/
-void netdev_txnotify(const uip_ipaddr_t *raddr)
+void netdev_txnotify(const uip_ipaddr_t raddr)
{
/* Find the device driver that serves the subnet of the remote address */
struct uip_driver_s *dev = netdev_findbyaddr(raddr);
- /* The above lookup will fail if the packet is being sent out of our
- * out subnet to a router. REVISIT: For now, we fall back and try "eth0".
- */
-
- if (dev == NULL)
- {
- /* If the destination address is not in our subnet, assume eth0 as the
- * default device.
- */
-
- dev = netdev_findbyname("eth0");
- }
-
if (dev && dev->d_txavail)
{
/* Notify the device driver that new TX data is available. */