Re: ipmon and periodic

From: Peter Pentchev (roam@orbitel.bg)
Date: 02/02/01


Date: Fri, 2 Feb 2001 09:08:01 +0200
From: Peter Pentchev <roam@orbitel.bg>
To: disassembled <modulus@icmp.dhs.org>

On Thu, Feb 01, 2001 at 08:56:14PM -0600, disassembled wrote:
>
> struct packet {
> struct tcp_header foo;
> struct ip_header var;
> };

Mmmm I thought the IP header came before the TCP header? :)

G'luck,
Peter

-- 
I am the thought you are now thinking.
> If you want to get the size of a tcp packet, (in the psuedo code above
> thats a valid example)
> 
> the size of your tcp packet in bytes would be equal to:
> 
> sizeof(packet); /* if you are familliar with C that is */
> 
> is generally a good place to start.
> 
> hope this helps
> 
> 
> 
> On Fri, 2 Feb 2001, Sam Wun wrote:
> 
> > Hi,
> > 
> > does anyone know how to convert a packet to number of bytes?
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message