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.

This commit is contained in:
Gregory Nutt 2014-11-14 16:45:25 -06:00
parent ca15802ae5
commit e03c764d92
2 changed files with 3 additions and 3 deletions

View File

@ -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__)

View File

@ -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;
}