summaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-02-03 14:37:18 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-12-14 14:30:18 +0100
commit4362c73ac768ad7218982fc1ccf8ae04285c27d1 (patch)
treed9d80f42b52326b4bd7d99f4ce097faeb4004eb0 /include/net.h
parent528298b702a0ad238dd01b3497f7c0bb671bf7c9 (diff)
downloadbarebox-4362c73ac768ad7218982fc1ccf8ae04285c27d1.tar.gz
barebox-4362c73ac768ad7218982fc1ccf8ae04285c27d1.tar.xz
net: Pick network device based on IP settings
The IP/netmask/gateway settings contain all informations needed to pick the correct network device. This patch adds support for that and makes specifying the "current" network interface using the ethact command unnecessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index b7555c0de6..3faecff5d7 100644
--- a/include/net.h
+++ b/include/net.h
@@ -226,6 +226,7 @@ IPaddr_t net_get_serverip(void);
IPaddr_t net_get_gateway(void);
IPaddr_t net_get_nameserver(void);
const char *net_get_domainname(void);
+struct eth_device *net_route(IPaddr_t ip);
/* Do the work */
void net_poll(void);