summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-22 09:08:31 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-22 09:08:31 -0600
commit18cee50571a01fabf6951d3a412ec782ef3b192d (patch)
tree60c890867585eba168116b24cfc56c8483556390
parent6037e64b34e07b9511c069b9c032647a9541f172 (diff)
downloadnuttx-18cee50571a01fabf6951d3a412ec782ef3b192d.tar.gz
nuttx-18cee50571a01fabf6951d3a412ec782ef3b192d.tar.bz2
nuttx-18cee50571a01fabf6951d3a412ec782ef3b192d.zip
Add a comment
-rw-r--r--nuttx/net/netdev/netdev_findbyaddr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/net/netdev/netdev_findbyaddr.c b/nuttx/net/netdev/netdev_findbyaddr.c
index a3948ab12..b43ee7411 100644
--- a/nuttx/net/netdev/netdev_findbyaddr.c
+++ b/nuttx/net/netdev/netdev_findbyaddr.c
@@ -195,6 +195,10 @@ FAR struct net_driver_s *netdev_findbyaddr(const net_ipaddr_t addr)
* However, if there is only a single, registered network interface, then
* the decision is pretty easy. Use that device and its default router
* address.
+ *
+ * REVISIT: This logic is lame. Also, in the case where the socket is
+ * bound to INADDRY_ANY, we should return the default network device
+ * (from netdev_default()).
*/
netdev_semtake();