Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Feb 2001 20:56:14 -0600 (CST)
From:      disassembled <modulus@icmp.dhs.org>
To:        Sam Wun <swun@esec.com.au>
Cc:        "Thomas T. Veldhouse" <veldy@veldy.net>, freebsd-security@FreeBSD.ORG
Subject:   Re: ipmon and periodic
Message-ID:  <Pine.BSF.4.21.0102012053540.77247-100000@icmp.dhs.org>
In-Reply-To: <3A7A180F.518292C1@esec.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help

struct packet {
	struct tcp_header foo;
	struct ip_header var;
};

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?
> 
> Thanks
> Sam
> 
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0102012053540.77247-100000>