build: fix install dependencies in Makefile template
[netsniff-ng-new.git] / link.h
blob621a5bb651aef43b2a1d27ce148541ab913cba55
1 #ifndef LINK_H
2 #define LINK_H
4 #include <stdint.h>
5 #include <sys/socket.h>
6 #include <linux/ethtool.h>
7 #include <linux/wireless.h>
9 #ifndef SPEED_UNKNOWN
10 #define SPEED_UNKNOWN -1
11 #endif
13 #include "built_in.h"
15 extern int wireless_sigqual(const char *ifname, struct iw_statistics *stats);
16 extern int wireless_rangemax_sigqual(const char *ifname);
17 extern uint32_t wireless_bitrate(const char *ifname);
18 extern uint32_t ethtool_bitrate(const char *ifname);
19 extern int ethtool_drvinf(const char *ifname, struct ethtool_drvinfo *drvinf);
20 extern int ethtool_link(const char *ifname);
22 #endif /* LINK_H */