![]() |
Packet size logging program
Hello all,
I am looking for a simple packet logging utility that just samples the size of incoming/outgoing packets at a fixed interval. I am not sure how to manipulate the db files generated by darkstat, vnstat, ntop. I found live vnstat -i eth0 -l give me almost what I need, but I can't save the output because they rewrite the same terminal space :( darkstat makes a nice graph via web interface, but I want the data for the graph :( just looked into snort and found that I can go through every packet, and grep the file for the content-length, however the time of arrival for each packet is a bit fidgity. at the very least I am just looking for a program that gives me one column bytes sent for a fixed time interval: Code:
sizeCode:
seconds size |
Hmm not quite sure but how about iptraf?
It is not only doing stuff with curses but also wit the command line. Try: Code:
man iptraf |
Quote:
I am rummaging through the source for a quick fix, but its a little tricky... |
I found it! and too conveniently
iptrafmon.c find the code: Code:
(tcpentry->pcount == 1) &&recompile run Code:
sudo ./iptraf -i eth0 -L apptcptest.logThanks again sys64738! |
| All times are GMT -5. The time now is 10:39 PM. |