From owner-freebsd-security Thu Feb 1 23: 9:58 2001 Delivered-To: freebsd-security@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.189]) by hub.freebsd.org (Postfix) with SMTP id 3157E37B4EC for ; Thu, 1 Feb 2001 23:09:39 -0800 (PST) Received: (qmail 2304 invoked by uid 1000); 2 Feb 2001 07:08:01 -0000 Date: Fri, 2 Feb 2001 09:08:01 +0200 From: Peter Pentchev To: disassembled Cc: Sam Wun , "Thomas T. Veldhouse" , freebsd-security@FreeBSD.ORG Subject: Re: ipmon and periodic Message-ID: <20010202090801.A328@ringworld.oblivion.bg> Mail-Followup-To: disassembled , Sam Wun , "Thomas T. Veldhouse" , freebsd-security@FreeBSD.ORG References: <3A7A180F.518292C1@esec.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from modulus@icmp.dhs.org on Thu, Feb 01, 2001 at 08:56:14PM -0600 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.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