summaryrefslogtreecommitdiff
path: root/link.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-04 11:32:19 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-04 11:32:19 +0200
commitab9d73629872a474d9194177fa4c9c8cdabe9a44 (patch)
treebe238632f09ab058370c086dfb6feee32006b7ff /link.h
parenta66fe185ab6a3eb7a483fd9888b54ee43328836e (diff)
link: add link management functions
Same here as usual, break out link functions from xutils. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'link.h')
-rw-r--r--link.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/link.h b/link.h
new file mode 100644
index 0000000..67ec433
--- /dev/null
+++ b/link.h
@@ -0,0 +1,18 @@
+#ifndef LINK_H
+#define LINK_H
+
+#include <stdint.h>
+#include <sys/socket.h>
+#include <linux/ethtool.h>
+#include <linux/wireless.h>
+
+#include "built_in.h"
+
+extern int wireless_sigqual(const char *ifname, struct iw_statistics *stats);
+extern int wireless_rangemax_sigqual(const char *ifname);
+extern u32 wireless_bitrate(const char *ifname);
+extern u32 ethtool_bitrate(const char *ifname);
+extern int ethtool_drvinf(const char *ifname, struct ethtool_drvinfo *drvinf);
+extern int ethtool_link(const char *ifname);
+
+#endif /* LINK_H */