This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Integrating an application to Wireshark

0

Hi, I want to log the total amount of traffic generated by each operation between my application and the database. It has to be an automatic log controlled by the application itself.

I was wondering if Wireshark let me do something like that:

command 1:start listening port x; command 2:return the traffic amount; command 3:reset the traffic amount;

My application must have full control of WHEN to start the counting, WHEN to stop, and to get the total ammount of data.

My goal is to make an automated Java Test case, that checks for each test, if the traffic usage is above a specified threshold.

is that possible?

asked 13 May '11, 16:05

Jean%20Baldessar's gravatar image

Jean Baldessar
1111
accept rate: 0%


2 Answers:

0

Wireshark is intended for detailed packet inspection. What you're looking for is more like what programs like ntop provides.

answered 16 May '11, 06:31

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

0

If you are only interested in network volume, you can read the network interface statistics between each call and calculate the differences...

answered 17 May '11, 17:03

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%