summaryrefslogtreecommitdiffstats
path: root/include/net.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-03-11 13:43:39 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-03-31 12:35:45 +0200
commit3d85c402eb2c4db48cace90f464715efcb2eae9f (patch)
treecb7f02383b78cecf5109569d6c41fe5ccd4c90a8 /include/net.h
parent7b399ab82f7211dc22887813baf503bb483a9056 (diff)
downloadbarebox-3d85c402eb2c4db48cace90f464715efcb2eae9f.tar.gz
barebox-3d85c402eb2c4db48cace90f464715efcb2eae9f.tar.xz
net: Add ifdown support and command
ifdown is the counterpart to ifup and disables one or all ethernet interfaces. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/net.h')
-rw-r--r--include/net.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net.h b/include/net.h
index 509d1b38a1..54db8a179a 100644
--- a/include/net.h
+++ b/include/net.h
@@ -483,6 +483,10 @@ int ifup_edev(struct eth_device *edev, unsigned flags);
int ifup(const char *name, unsigned flags);
int ifup_all(unsigned flags);
+void ifdown_edev(struct eth_device *edev);
+int ifdown(const char *name);
+void ifdown_all(void);
+
extern struct list_head netdev_list;
#define for_each_netdev(netdev) list_for_each_entry(netdev, &netdev_list, list)