aboutsummaryrefslogtreecommitdiff
path: root/extra/ifalive.h
diff options
context:
space:
mode:
Diffstat (limited to 'extra/ifalive.h')
-rw-r--r--extra/ifalive.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/extra/ifalive.h b/extra/ifalive.h
new file mode 100644
index 0000000..da070fa
--- /dev/null
+++ b/extra/ifalive.h
@@ -0,0 +1,28 @@
+enum {
+ stat_rx_bytes,
+ stat_rx_packets,
+ stat_rx_errors,
+ stat_rx_dropped,
+ stat_rx_fifo_errors,
+ stat_rx_frame_errors,
+ stat_rx_compressed,
+ stat_rx_multicast,
+ stat_tx_bytes,
+ stat_tx_packets,
+ stat_tx_errors,
+ stat_tx_dropped,
+ stat_tx_fifo_errors,
+ stat_collisions,
+ stat_tx_carrier_errors,
+ stat_tx_compressed,
+
+ MAX_STATS
+};
+
+enum {
+ VAR_PREV,
+ VAR_THIS
+};
+
+typedef uintmax_t IFSTAT[MAX_STATS];
+int expr_eval(int argc, char **argv, IFSTAT a, IFSTAT b);

Return to:

Send suggestions and report system problems to the System administrator.