From: Georgios Kontaxis Date: Thu, 9 Apr 2015 19:04:23 +0000 (-0400) Subject: removed lpthread dependency. X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=94a31e0a532f2b7f935ba569a8a3f1f0673496d0;p=tcpstat.git removed lpthread dependency. SIGUSR1 for real-time stats. --- diff --git a/Makefile b/Makefile index 01757cd..3a9de62 100644 --- a/Makefile +++ b/Makefile @@ -6,30 +6,28 @@ debug: tcpstat_dbg tcpstat_noether_dbg tcpstat: tcpstat.c gcc -Wall \ - -D__WITH_THREADS__ \ tcpstat.c \ - -lpcap -lpthread \ + -lpcap \ -o tcpstat tcpstat_dbg: tcpstat.c gcc -Wall -ggdb -O0 -D__DEBUG__ \ - -D__WITH_THREADS__ \ tcpstat.c \ - -lpcap -lpthread \ + -lpcap \ -o tcpstat_dbg tcpstat_noether: tcpstat.c gcc -Wall \ - -D__WITH_THREADS__ -D__NO_ETHERNET__ \ + -D__NO_ETHERNET__ \ tcpstat.c \ - -lpcap -lpthread \ + -lpcap \ -o tcpstat_noether tcpstat_noether_dbg: tcpstat.c gcc -Wall -ggdb -O0 -D__DEBUG__ \ - -D__WITH_THREADS__ -D__NO_ETHERNET__ \ + -D__NO_ETHERNET__ \ tcpstat.c \ - -lpcap -lpthread \ + -lpcap \ -o tcpstat_noether_dbg diff --git a/Readme.txt b/Readme.txt index 54e1fef..783cac3 100644 --- a/Readme.txt +++ b/Readme.txt @@ -34,3 +34,5 @@ sudo ./tcpstat_noether -i tun0 # All packets processed will be written to file ./tun0.pcap sudo ./tcpstat_noether_dbg -i tun0 +# Signals: receipt of SIGUSR1 will print current packet counts to stdout +sudo pkill --signal SIGUSR1 -x tcpstat