Much cleaner code for dissecting the packets.

known issue: after a while, it seems to 'forget' a connection
belonged to a process and starts adding the traffic to the unknown
process.
This commit is contained in:
Arnout Engelen
2004-09-11 15:00:54 +00:00
parent 9d19d7fd49
commit 8cbf4f04cc
6 changed files with 121 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ man8 := $(DESTDIR)/usr/share/man/man8/
all: nethogs
CFLAGS=-g
OBJS=structs.o packet.o connection.o process.o hashtbl.o refresh.o
OBJS=structs.o packet.o connection.o process.o hashtbl.o refresh.o decpcap.o
GCC=g++
.PHONY: tgz
@@ -40,6 +40,8 @@ connection.o: connection.cpp connection.h nethogs.h
$(GCC) $(CFLAGS) -c connection.cpp
hashtbl.o: hashtbl.cpp hashtbl.h nethogs.h
$(GCC) $(CFLAGS) -c hashtbl.cpp
decpcap.o: decpcap.c decpcap.h
gcc $(CFLAGS) -c decpcap.c
.PHONY: clean
clean: