diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-28 08:39:27 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-03-07 07:41:36 +0100 |
commit | a162dfe50345d3461010759f8a0e79f7e388c140 (patch) | |
tree | d39aa64b4835fbf3af9a7466c3ec21839c841b24 /include/net.h | |
parent | 72dfc499c8ae272614d5b572b86b776e70778bbd (diff) | |
download | barebox-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.h | 5 |
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__ */ |