User selectable sort criteria.

This commit is contained in:
pdw
2002-10-25 09:06:19 +00:00
parent ba7202d03b
commit f46898753e
5 changed files with 95 additions and 18 deletions

View File

@@ -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;