summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorMichael Stapelberg <michael+x200@stapelberg.de>2008-10-24 21:05:12 +0200
committerMichael Stapelberg <michael+x200@stapelberg.de>2008-10-24 21:05:20 +0200
commit62f3fc6838bf0e59bb490b0da229649bf86d847c (patch)
tree5ddd40aa8bf1abac9fd4f1d2627cb21b1c01e413 /config.h
parent753144d58b5b7edb104f78b0c0331ad150fcdb7c (diff)
Implement getting current speed from network interfaces
The network interface must be supported by ethtool, as its syscall is used for this. This is at least the case for e1000 cards. Unfortunately, getting the speed needs root privileges. Therefore, you have to enable it in configuration separately.
Diffstat (limited to 'config.h')
-rw-r--r--config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.h b/config.h
index 9437ef2..fdd95a2 100644
--- a/config.h
+++ b/config.h
@@ -18,6 +18,7 @@ extern const char order[MAX_ORDER][2];
extern unsigned int interval;
extern bool use_colors;
+extern bool get_ethspeed;
#endif
char *glob_path(const char *path);