diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-10-01 19:13:06 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-10-01 19:13:06 -0600 |
commit | 2fcd0856d3acff82fe6946c2aa35e0a7a3e5158d (patch) | |
tree | 60a4e48bfa6a3853371f8e55f16f0c8f7d0bc39b /nuttx/net/net_foreachroute.c | |
parent | b4e9e42b45494e19fd131ea02e2c01745de855a5 (diff) | |
download | nuttx-2fcd0856d3acff82fe6946c2aa35e0a7a3e5158d.tar.gz nuttx-2fcd0856d3acff82fe6946c2aa35e0a7a3e5158d.tar.bz2 nuttx-2fcd0856d3acff82fe6946c2aa35e0a7a3e5158d.zip |
Simple routing table hooked into network build system
Diffstat (limited to 'nuttx/net/net_foreachroute.c')
-rw-r--r-- | nuttx/net/net_foreachroute.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/net/net_foreachroute.c b/nuttx/net/net_foreachroute.c index 4c82a688b..8eb844334 100644 --- a/nuttx/net/net_foreachroute.c +++ b/nuttx/net/net_foreachroute.c @@ -42,6 +42,7 @@ #include <stdint.h> #include <errno.h> +#include <arch/irq.h> #include <nuttx/net/route.h> #include "net_internal.h" @@ -85,7 +86,7 @@ int net_foreachroute(route_handler_t handler, FAR void *arg) for (i = 0; i < CONFIG_NET_MAXROUTES && ret == 0; i++) { - ret = handler(&g_route[i], arg); + ret = handler(&g_routes[i], arg); } /* Unlock uIP */ @@ -94,4 +95,4 @@ int net_foreachroute(route_handler_t handler, FAR void *arg) return ret; } -#endif /* CONFIG_NET && CONFIG_NET_SOCKOPTS && !CONFIG_DISABLE_CLOCK */ +#endif /* CONFIG_NET && CONFIG_NET_ROUTE */ |