diff --git a/net/route/net_addroute.c b/net/route/net_addroute.c index 28496ebe196..498c37b0371 100644 --- a/net/route/net_addroute.c +++ b/net/route/net_addroute.c @@ -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); diff --git a/net/route/net_allocroute.c b/net/route/net_allocroute.c index edb08d24b51..919e5c2f21b 100644 --- a/net/route/net_allocroute.c +++ b/net/route/net_allocroute.c @@ -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. * ****************************************************************************/ diff --git a/net/route/net_foreachroute.c b/net/route/net_foreachroute.c index f386088ce41..5100e09beb0 100644 --- a/net/route/net_foreachroute.c +++ b/net/route/net_foreachroute.c @@ -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 diff --git a/net/route/route.h b/net/route/route.h index 460b9dfd0cb..22baca8c8cd 100644 --- a/net/route/route.h +++ b/net/route/route.h @@ -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: *