Date: Fri, 2 Feb 2001 09:08:01 +0200 From: Peter Pentchev <roam@orbitel.bg> To: disassembled <modulus@icmp.dhs.org> Cc: Sam Wun <swun@esec.com.au>, "Thomas T. Veldhouse" <veldy@veldy.net>, freebsd-security@FreeBSD.ORG Subject: Re: ipmon and periodic Message-ID: <20010202090801.A328@ringworld.oblivion.bg> In-Reply-To: <Pine.BSF.4.21.0102012053540.77247-100000@icmp.dhs.org>; from modulus@icmp.dhs.org on Thu, Feb 01, 2001 at 08:56:14PM -0600 References: <3A7A180F.518292C1@esec.com.au> <Pine.BSF.4.21.0102012053540.77247-100000@icmp.dhs.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010202090801.A328>
