Update some comments

This commit is contained in:
Gregory Nutt 2017-07-08 13:03:58 -06:00
parent 7fb1cb36f2
commit 9db4350097
4 changed files with 9 additions and 6 deletions

View File

@ -84,7 +84,7 @@ int net_addroute(in_addr_t target, in_addr_t netmask, in_addr_t router)
return -ENOMEM;
}
/* Format the new route table entry */
/* Format the new routing table entry */
net_ipv4addr_copy(route->target, target);
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;
}
/* Format the new route table entry */
/* Format the new routing table entry */
net_ipv6addr_copy(route->target, target);
net_ipv6addr_copy(route->netmask, netmask);

View File

@ -152,7 +152,7 @@ void net_initroute(void)
* None
*
* 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.
*
****************************************************************************/

View File

@ -58,9 +58,11 @@
* Name: net_foreachroute
*
* Description:
* Traverse the route table
* Traverse the routing table
*
* 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:
* 0 if in use; 1 if avaialble and the new entry was added

View File

@ -105,6 +105,7 @@ extern "C"
#endif
/* This is the routing table */
#ifdef CONFIG_NET_IPv4
EXTERN sq_queue_t g_routes;
#endif
@ -143,7 +144,7 @@ void net_initroute(void);
* None
*
* 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.
*
****************************************************************************/
@ -327,7 +328,7 @@ void netdev_ipv6_router(FAR struct net_driver_s *dev,
* Name: net_foreachroute
*
* Description:
* Traverse the route table
* Traverse the routing table
*
* Parameters:
*