Minor tweaks. Started doing aggregate bandwidth mode.
This commit is contained in:
4
CHANGES
4
CHANGES
@@ -1,6 +1,10 @@
|
|||||||
Change log for iftop
|
Change log for iftop
|
||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
|
0.3
|
||||||
|
|
||||||
|
Fixed segfault bug.
|
||||||
|
|
||||||
0.2 02/04/02
|
0.2 02/04/02
|
||||||
|
|
||||||
Added -n option to analyse traffic flows across a network boundary.
|
Added -n option to analyse traffic flows across a network boundary.
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -27,7 +27,7 @@ MANDIR = man
|
|||||||
#MANDIR = share/man # FHS-ish
|
#MANDIR = share/man # FHS-ish
|
||||||
|
|
||||||
# You shouldn't need to change anything below this point.
|
# You shouldn't need to change anything below this point.
|
||||||
VERSION = 0.2
|
VERSION = 0.3
|
||||||
CFLAGS += -g -Wall "-DIFTOP_VERSION=\"$(VERSION)\""
|
CFLAGS += -g -Wall "-DIFTOP_VERSION=\"$(VERSION)\""
|
||||||
LDFLAGS += -g
|
LDFLAGS += -g
|
||||||
LDLIBS += -lpcap -lpthread -lcurses -lm
|
LDLIBS += -lpcap -lpthread -lcurses -lm
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ static void set_defaults() {
|
|||||||
options.dnsresolution = 1;
|
options.dnsresolution = 1;
|
||||||
options.promiscuous = 0;
|
options.promiscuous = 0;
|
||||||
options.showbars = 1;
|
options.showbars = 1;
|
||||||
|
options.aggregate = OPTION_AGGREGATE_OFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void die(char *msg) {
|
static void die(char *msg) {
|
||||||
|
|||||||
@@ -10,6 +10,12 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|
||||||
|
enum {
|
||||||
|
OPTION_AGGREGATE_OFF,
|
||||||
|
OPTION_AGGREGATE_SOURCE,
|
||||||
|
OPTION_AGGREGATE_DEST
|
||||||
|
} option_aggregate_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/* interface to listen on */
|
/* interface to listen on */
|
||||||
char *interface;
|
char *interface;
|
||||||
@@ -24,6 +30,7 @@ typedef struct {
|
|||||||
int dnsresolution;
|
int dnsresolution;
|
||||||
int promiscuous;
|
int promiscuous;
|
||||||
int showbars;
|
int showbars;
|
||||||
|
option_aggregate_t aggregate;
|
||||||
|
|
||||||
} options_t;
|
} options_t;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user