summaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-02-28 08:39:27 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-03-07 07:41:36 +0100
commita162dfe50345d3461010759f8a0e79f7e388c140 (patch)
treed39aa64b4835fbf3af9a7466c3ec21839c841b24 /include/net.h
parent72dfc499c8ae272614d5b572b86b776e70778bbd (diff)
downloadbarebox-a162dfe50345d3461010759f8a0e79f7e388c140.tar.gz
barebox-a162dfe50345d3461010759f8a0e79f7e388c140.tar.xz
net: Add ifup support
The defaultenv-2 has ifup support as a shell script. This patch replaces it with a command which is more robust, can be called from C and now can also bring up all configured interfaces. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index a680f972ed..3b800b78f0 100644
--- a/include/net.h
+++ b/include/net.h
@@ -457,4 +457,9 @@ int net_icmp_send(struct net_connection *con, int len);
void led_trigger_network(enum led_trigger trigger);
+#define IFUP_FLAG_FORCE (1 << 0)
+
+int ifup(const char *name, unsigned flags);
+int ifup_all(unsigned flags);
+
#endif /* __NET_H__ */