From 2eae80fd74eda00ddcfa04aef39c791c35972c3b Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 18 Sep 2004 12:25:53 +0000 Subject: [PATCH] fixes --- Changelog | 7 ++++++- Makefile | 2 +- decpcap.c | 6 +++--- nethogs.h | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Changelog b/Changelog index 70d70d9..b641e64 100644 --- a/Changelog +++ b/Changelog @@ -1,6 +1,11 @@ Changelog -17/09/04 (Arnou) +18/09/04 (Arnout) +- also compile with gcc-3.4 + +------------------------------------------------- + +17/09/04 (Arnout) -Wrapped pcap stuff in nicer 'decpcap' module -Support for IPv6 and PPP -using standard C++ maps instead of custom structures diff --git a/Makefile b/Makefile index a694067..abedbf5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION := 0 SUBVERSION := 6 -MINORVERSION := pre +MINORVERSION := 1pre2 bin := $(DESTDIR)/usr/bin man8 := $(DESTDIR)/usr/share/man/man8/ diff --git a/decpcap.c b/decpcap.c index 4ec911a..1f42eae 100644 --- a/decpcap.c +++ b/decpcap.c @@ -32,13 +32,13 @@ struct dp_handle * dp_open_live(char * device, int snaplen, int promisc, int to_ switch (retval->linktype) { case (DLT_EN10MB): - std::cout << 'Ethernet link detected\n"; + fprintf(stdout, "Ethernet link detected\n"); break; case (DLT_PPP): - std::cout << 'PPP link detected\n"; + fprintf(stdout, "PPP link detected\n"); break; default: - std::cout << 'No PPP or Ethernet link: " << retval->linktype << std::endl; + fprintf(stdout, "No PPP or Ethernet link: %d\n", retval->linktype); // TODO maybe error? or 'other' callback? break; } diff --git a/nethogs.h b/nethogs.h index ac0bd62..cd27223 100644 --- a/nethogs.h +++ b/nethogs.h @@ -30,7 +30,7 @@ #define NEEDROOT 1 #endif -#define DEBUG 1 +#define DEBUG 0 // if '0', do extra checks and // assertions. good for finding bugs