Skip to content
Snippets Groups Projects
Commit e03c764d authored by Gregory Nutt's avatar Gregory Nutt
Browse files

I don't think that the net_route function has ever worked correctly. The...

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.
parent ca15802a
No related branches found
No related tags found
No related merge requests found
......@@ -206,7 +206,7 @@
#define LS_BIT (1 << 0)
#define MS_BIT (1 << 7)
/* Debst7567 ******************************************************************************/
/* Debug ******************************************************************************/
#ifdef CONFIG_LCD_ST7567DEBUG
# define st7567dbg(format, ...) vdbg(format, ##__VA_ARGS__)
......
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment