summaryrefslogtreecommitdiff
path: root/nuttx/net
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-11-14 16:45:25 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-11-14 16:45:25 -0600
commit0a3804dbab4bf81e680567a9b01277e0f8b19677 (patch)
treefc5958c61a592d630248eec448d007134a74117e /nuttx/net
parent1694e76c1f9217e9a5a29aaccd7181eee8a0e4ac (diff)
downloadpx4-nuttx-0a3804dbab4bf81e680567a9b01277e0f8b19677.tar.gz
px4-nuttx-0a3804dbab4bf81e680567a9b01277e0f8b19677.tar.bz2
px4-nuttx-0a3804dbab4bf81e680567a9b01277e0f8b19677.zip
I don't think that the net_route function has ever worked correctly. The source ip was updated in the match struct instead of the route ip. From Brennan Ashton.
Diffstat (limited to 'nuttx/net')
-rw-r--r--nuttx/net/route/net_router.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/net/route/net_router.c b/nuttx/net/route/net_router.c
index 1181262e7..8dde05c1f 100644
--- a/nuttx/net/route/net_router.c
+++ b/nuttx/net/route/net_router.c
@@ -146,9 +146,9 @@ int net_router(net_ipaddr_t target, FAR net_ipaddr_t *router)
/* We found a route. Return the router address. */
#ifdef CONFIG_NET_IPv6
- net_ipaddr_copy(router, match.target);
+ net_ipaddr_copy(router, match.router);
#else
- net_ipaddr_copy(*router, match.target);
+ net_ipaddr_copy(*router, match.router);
#endif
ret = OK;
}