Commit c70fecc6 authored by pdw's avatar pdw
Browse files

Minor tweaks. Started doing aggregate bandwidth mode.

parent fc9f31b8
Change log for iftop
$Id$
0.3
Fixed segfault bug.
0.2 02/04/02
Added -n option to analyse traffic flows across a network boundary.
......
......@@ -27,7 +27,7 @@ MANDIR = man
#MANDIR = share/man # FHS-ish
# You shouldn't need to change anything below this point.
VERSION = 0.2
VERSION = 0.3
CFLAGS += -g -Wall "-DIFTOP_VERSION=\"$(VERSION)\""
LDFLAGS += -g
LDLIBS += -lpcap -lpthread -lcurses -lm
......
......@@ -26,6 +26,7 @@ static void set_defaults() {
options.dnsresolution = 1;
options.promiscuous = 0;
options.showbars = 1;
options.aggregate = OPTION_AGGREGATE_OFF;
}
static void die(char *msg) {
......
......@@ -10,6 +10,12 @@
#include <netinet/in.h>
#include <arpa/inet.h>
enum {
OPTION_AGGREGATE_OFF,
OPTION_AGGREGATE_SOURCE,
OPTION_AGGREGATE_DEST
} option_aggregate_t;
typedef struct {
/* interface to listen on */
char *interface;
......@@ -24,6 +30,7 @@ typedef struct {
int dnsresolution;
int promiscuous;
int showbars;
option_aggregate_t aggregate;
} options_t;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment