diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2018-08-20 23:28:19 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-08-22 09:20:44 +0200 |
commit | f0624a701513e5444340e7f071ac875d34b39336 (patch) | |
tree | 1fbd2976aa82721f070ade4cd5910139d56a84df /commands | |
parent | dfdac6015bb0e712d9f0f7111056ca857e93e65f (diff) | |
download | barebox-f0624a701513e5444340e7f071ac875d34b39336.tar.gz barebox-f0624a701513e5444340e7f071ac875d34b39336.tar.xz |
net: Do not route traffic to interfaces that are not up
In the case when:
- Board has multiple network interfaces
- Two ore more of those interfaces are statically configured to be
on the same network
- Only one of those interfaces is up and it is preceeded (as far as
for_each_netdev is concerned) by interface in the same network
that isn't
net_route() will choose "non-up" device as a route for traffic
resulting in no network connectivity. Change the routing logic to also
consider if interface is "up", so that only such interfaces would be
considered for sending network traffic out.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
0 files changed, 0 insertions, 0 deletions