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:
parent
ca15802ae5
commit
e03c764d92
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user