User selectable sort criteria.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user