Hello, I would like to get a total IP size of captured packets. I am asking IP size, not total size of the packets (with ethernet header included for example). Thank you, G. Husson asked 09 Dec '11, 07:04 thalos_ghusson |
2 Answers:
Try TShark Statistics
answered 09 Dec '11, 07:47 joke |
I would start with tshark filtering the needed information:
then do whatever to sum those results up and your good. Excel, Calc, perl scripting ... answered 09 Dec '11, 07:21 Landi edited 09 Dec '11, 07:21 I tryed that : C:Documents and SettingsXXXBureau>"C:Program FilesWiresharktshark.exe" tshark -r "test.pcap" -R "ip.len>0" -Tfields -e ip.len NOTE: you should run 'diskperf -y' to enable the disk statistics tshark: Read filters were specified both with "-R" and with additional command-line arguments Wireshark does not run. My version : Version 1.6.1 (SVN Rev 38096 from /trunk-1.6) on windows XP SP3 Thank you, G. HUsson (09 Dec '11, 07:30) thalos_ghusson Sorry, my mistake, I let a "tshark" on the command line. Now it is working. It is a good start point, thank you ! C:Documents and SettingsthalosBureau>"C:Program FilesWiresharktshark.exe" -r "test.pcap" -R "ip.len>0" -Tfields -e ip.len NOTE: you should run 'diskperf -y' to enable the disk statistics 76 40 76 76 76 76 164 40 (09 Dec '11, 07:40) thalos_ghusson |
Hello,
Thank you for this, it perfectly feeds my needs ! Personnaly, I will put "0"s, as in man it says that it will not limit the analysis.
tshark.exe" -r "test.pcap" -qz "io,stat,0,SUM(ip.len)ip.len"
G. Husson
You are welcome:)
Just another example: