mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Update some comments
This commit is contained in:
@@ -84,7 +84,7 @@ int net_addroute(in_addr_t target, in_addr_t netmask, in_addr_t router)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Format the new route table entry */
|
/* Format the new routing table entry */
|
||||||
|
|
||||||
net_ipv4addr_copy(route->target, target);
|
net_ipv4addr_copy(route->target, target);
|
||||||
net_ipv4addr_copy(route->netmask, netmask);
|
net_ipv4addr_copy(route->netmask, netmask);
|
||||||
@@ -116,7 +116,7 @@ int net_addroute_ipv6(net_ipv6addr_t target, net_ipv6addr_t netmask, net_ipv6add
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Format the new route table entry */
|
/* Format the new routing table entry */
|
||||||
|
|
||||||
net_ipv6addr_copy(route->target, target);
|
net_ipv6addr_copy(route->target, target);
|
||||||
net_ipv6addr_copy(route->netmask, netmask);
|
net_ipv6addr_copy(route->netmask, netmask);
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ void net_initroute(void)
|
|||||||
* None
|
* None
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* On success, a pointer to the newly allocated route table entry is
|
* On success, a pointer to the newly allocated routing table entry is
|
||||||
* returned; NULL is returned on failure.
|
* returned; NULL is returned on failure.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
@@ -58,9 +58,11 @@
|
|||||||
* Name: net_foreachroute
|
* Name: net_foreachroute
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Traverse the route table
|
* Traverse the routing table
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
|
* handler - Will be called for each route in the routing table.
|
||||||
|
* arg - An arbitrary value that will be passed tot he handler.
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* 0 if in use; 1 if avaialble and the new entry was added
|
* 0 if in use; 1 if avaialble and the new entry was added
|
||||||
|
|||||||
+3
-2
@@ -105,6 +105,7 @@ extern "C"
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This is the routing table */
|
/* This is the routing table */
|
||||||
|
|
||||||
#ifdef CONFIG_NET_IPv4
|
#ifdef CONFIG_NET_IPv4
|
||||||
EXTERN sq_queue_t g_routes;
|
EXTERN sq_queue_t g_routes;
|
||||||
#endif
|
#endif
|
||||||
@@ -143,7 +144,7 @@ void net_initroute(void);
|
|||||||
* None
|
* None
|
||||||
*
|
*
|
||||||
* Returned Value:
|
* Returned Value:
|
||||||
* On success, a pointer to the newly allocated route table entry is
|
* On success, a pointer to the newly allocated routing table entry is
|
||||||
* returned; NULL is returned on failure.
|
* returned; NULL is returned on failure.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -327,7 +328,7 @@ void netdev_ipv6_router(FAR struct net_driver_s *dev,
|
|||||||
* Name: net_foreachroute
|
* Name: net_foreachroute
|
||||||
*
|
*
|
||||||
* Description:
|
* Description:
|
||||||
* Traverse the route table
|
* Traverse the routing table
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user