net: Use a single gateway
There is not much point in having a network device specific
gateway. If barebox really is part of such a complicated network
in which it needs multiple gateways, then we probably need a
real routing table. Until this happens, a single gateway should
be enough.

This introduces global.net.gateway which holds the gateway ip. The
previously used device specific <ethx>.gateway variables still exist,
but are only aliases for the single gateway.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 48a5887 commit 46f7781d361b2b4768c0a56c4fd6a9b11fe4157c
@Sascha Hauer Sascha Hauer authored on 17 Nov 2017
Showing 4 changed files
View
include/net.h
View
net/eth.c
View
net/ifup.c
View
net/net.c