Skip to content

ThomasHabets/tcpstats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http://linuxgazette.net/136/pfeiffer.html

$ make
gcc -fPIC -rdynamic -g -Wall -c prel.c
gcc -shared -Wl,-soname,libtcpstats.so.1 \
    	    -o libtcpstats.so.1.0.1 \
	       prel.o -lc -ldl
$ LD_PRELOAD=./libtcpstats.so.1.0.1 nc 0 22
SSH-2.0-OpenSSH_5.1p1 Debian-5
^C


tcpdump output:
08:33:40.444566 IP 127.0.0.1.40975 > 127.0.0.1.12346: UDP, length 120

struct tcp_info and struct sockaddr

About

Collect stats on TCP connections on close()

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published