tags:

views:

161

answers:

3

If i need to find out the size of a tcp packet on BSD.....what do we need to do?

Is there some utility which allows for this?

+2  A: 

do you mean the max possible size? if so, google for MTU (Maximum Transmission Unit)

Brann
no i am looking for the current size of a package sent via tcp. how can i get the size of this on the web server?
gagneet
Then you may use a sniffer, as suggested in Vasil's answer. Good luck :)
Brann
+1  A: 

Try ethereal.

Vasil
Now Wireshark (http://www.wireshark.org/). But yes, it's an excellent interface for tcpdump and related utilities.
Matthew Flaschen
+1  A: 

I think using tcpdump would be the easiest solution.

Can Berk Güder