diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-11-22 09:08:31 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-11-22 09:08:31 -0600 |
commit | 18cee50571a01fabf6951d3a412ec782ef3b192d (patch) | |
tree | 60c890867585eba168116b24cfc56c8483556390 | |
parent | 6037e64b34e07b9511c069b9c032647a9541f172 (diff) | |
download | px4-nuttx-18cee50571a01fabf6951d3a412ec782ef3b192d.tar.gz px4-nuttx-18cee50571a01fabf6951d3a412ec782ef3b192d.tar.bz2 px4-nuttx-18cee50571a01fabf6951d3a412ec782ef3b192d.zip |
Add a comment
-rw-r--r-- | nuttx/net/netdev/netdev_findbyaddr.c | 4 |
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(); |