summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2018-08-20 23:28:19 -0700
committerSascha Hauer <s.hauer@pengutronix.de>2018-08-22 09:20:44 +0200
commitf0624a701513e5444340e7f071ac875d34b39336 (patch)
tree1fbd2976aa82721f070ade4cd5910139d56a84df /commands
parentdfdac6015bb0e712d9f0f7111056ca857e93e65f (diff)
downloadbarebox-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