summaryrefslogtreecommitdiff
path: root/options.h
diff options
context:
space:
mode:
authorpdw <>2002-10-25 09:06:19 +0000
committerpdw <>2002-10-25 09:06:19 +0000
commitf46898753e916988a68b4786dcd180b1e2e685df (patch)
treee062924821882e39dbc003fad2fba01093fc8f8e /options.h
parentba7202d03b9acb2c4f92397d142b69c362f1cee9 (diff)
downloadiftop-f46898753e916988a68b4786dcd180b1e2e685df.zip
User selectable sort criteria.
Diffstat (limited to 'options.h')
-rw-r--r--options.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/options.h b/options.h
index 47b278e..b52911f 100644
--- a/options.h
+++ b/options.h
@@ -18,6 +18,14 @@ typedef enum {
OPTION_PORTS_ON
} option_port_t;
+typedef enum {
+ OPTION_SORT_DIV1,
+ OPTION_SORT_DIV2,
+ OPTION_SORT_DIV3,
+ OPTION_SORT_SRC,
+ OPTION_SORT_DEST
+} option_sort_t;
+
typedef struct {
/* interface on which to listen */
char *interface;
@@ -39,6 +47,7 @@ typedef struct {
int paused;
int showhelp;
int bandwidth_in_bytes;
+ option_sort_t sort;
} options_t;