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
+2 -2
View File
@@ -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);
+1 -1
View File
@@ -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.
* *
****************************************************************************/ ****************************************************************************/
+3 -1
View File
@@ -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
View File
@@ -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:
* *