geoip: Don't NULL-terminate download buffer
[netsniff-ng.git] / link.h
blobf201e8c86521cef790ddbb7e65ad00dff1b2932d
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 u32 wireless_bitrate(const char *ifname);
18 extern u32 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 */