How can I draw a graph of my current network traffic?
To get a picture of every 2000 packets running over interface ath0 on your machine, run the following:
while true; do \tcpdump -vttttnneli ath0 | \
./tcpdump2csv.pl "sip dip dport" | head -2000 | \
../graph/afterglow.pl -c color.properties -e 2 | neato -Tgif -o test.gif; done
(This assumes you are in the parser directory of afterglow and you have a color.properties file in that respective directory). If you have a picture viewer displaying test.gif, and the viewer automatically upates the picture after 2000 packets!