Take the 2-minute tour ×  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?  share|improve this question
Please be more specific. Size of the packet on the wire? How
much memory it takes up? What do you mean? –  Joachim Sauer Dec
23 '08 at 10:51 add comment  3 Answers  up vote 2 down vote
accepted  do you mean the max possible size? if so, google for
MTU (Maximum Transmission Unit)  share|improve this answer 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 Dec 23
'08 at 10:53 Then you may use a sniffer, as suggested in Vasil's
answer. Good luck :) –  Brann Dec 23 '08 at 10:57 add comment
Try ethereal.  share|improve this answer Now Wireshark
(wireshark.org). But yes, it's an excellent interface for
tcpdump and related utilities. –  Matthew Flaschen Dec 25 '08 at
10:47 add comment  I think using tcpdump would be the easiest
solution.  share|improve this answe