mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
Update some comments
This commit is contained in:
+10
-2
@@ -232,7 +232,11 @@ int net_ipv4_router(in_addr_t target, FAR in_addr_t *router)
|
||||
ret = net_foreachcache_ipv4(net_ipv4_match, &match);
|
||||
if (ret > 0)
|
||||
{
|
||||
/* We found a route. Return the router address. */
|
||||
/* We found a route. Return the router address.
|
||||
*
|
||||
* REVISIT: We should move the cache entry to the head of the list
|
||||
* because it is the most recently used.
|
||||
*/
|
||||
|
||||
net_ipv4addr_copy(*router, match.IPv4_ROUTER);
|
||||
ret = OK;
|
||||
@@ -312,7 +316,11 @@ int net_ipv6_router(const net_ipv6addr_t target, net_ipv6addr_t router)
|
||||
ret = net_foreachcache_ipv6(net_ipv6_match, &match);
|
||||
if (ret > 0)
|
||||
{
|
||||
/* We found a route. Return the router address. */
|
||||
/* We found a route. Return the router address.
|
||||
*
|
||||
* REVISIT: We should move the cache entry to the head of the list
|
||||
* because it is the most recently used.
|
||||
*/
|
||||
|
||||
net_ipv6addr_copy(router, match.IPv6_ROUTER);
|
||||
ret = OK;
|
||||
|
||||
@@ -245,7 +245,11 @@ void netdev_ipv4_router(FAR struct net_driver_s *dev, in_addr_t target,
|
||||
ret = net_foreachcache_ipv4(net_ipv4_devmatch, &match);
|
||||
if (ret > 0)
|
||||
{
|
||||
/* We found a route. Return the router address. */
|
||||
/* We found a route. Return the router address.
|
||||
*
|
||||
* REVISIT: We should move the cache entry to the head of the list
|
||||
* because it is the most recently used.
|
||||
*/
|
||||
|
||||
net_ipv4addr_copy(*router, match.IPv4_ROUTER);
|
||||
}
|
||||
@@ -324,7 +328,11 @@ void netdev_ipv6_router(FAR struct net_driver_s *dev,
|
||||
ret = net_foreachcache_ipv6(net_ipv6_devmatch, &match);
|
||||
if (ret > 0)
|
||||
{
|
||||
/* We found a route. Return the router address. */
|
||||
/* We found a route. Return the router address.
|
||||
*
|
||||
* REVISIT: We should move the cache entry to the head of the list
|
||||
* because it is the most recently used.
|
||||
*/
|
||||
|
||||
net_ipv6addr_copy(router, match.IPv6_ROUTER);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user