summaryrefslogtreecommitdiff
path: root/dev.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-04 10:46:38 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-04 10:47:28 +0200
commit23bd5ecbd11766088784507a56e32975b4c755a2 (patch)
tree86dc0078bac5d8a0d21cfd39ac72278e94e8173a /dev.h
parentac5fd9168efaa4e149340340805b1be7425d8834 (diff)
xutils: move device management functions out of xutils
Move those functions out so that they can be more easily maintained in its separate file. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'dev.h')
-rw-r--r--dev.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev.h b/dev.h
new file mode 100644
index 0000000..cebcee4
--- /dev/null
+++ b/dev.h
@@ -0,0 +1,15 @@
+#ifndef DEV_H
+#define DEV_H
+
+#include <sys/socket.h>
+#include "built_in.h"
+
+extern int device_mtu(const char *ifname);
+extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss);
+extern int device_ifindex(const char *ifname);
+extern short device_get_flags(const char *ifname);
+extern void device_set_flags(const char *ifname, const short flags);
+extern int device_up_and_running(char *ifname);
+extern u32 device_bitrate(const char *ifname);
+
+#endif /* DEV_H */