From owner-freebsd-security Thu Feb 1 18:51:58 2001 Delivered-To: freebsd-security@freebsd.org Received: from icmp.dhs.org (unknown [24.108.142.198]) by hub.freebsd.org (Postfix) with ESMTP id 00C2737B4EC for ; Thu, 1 Feb 2001 18:51:41 -0800 (PST) Received: from localhost (modulus@localhost) by icmp.dhs.org (8.11.1/8.11.1) with ESMTP id f122uFh77252; Thu, 1 Feb 2001 20:56:16 -0600 (CST) (envelope-from modulus@icmp.dhs.org) Date: Thu, 1 Feb 2001 20:56:14 -0600 (CST) From: disassembled To: Sam Wun Cc: "Thomas T. Veldhouse" , freebsd-security@FreeBSD.ORG Subject: Re: ipmon and periodic In-Reply-To: <3A7A180F.518292C1@esec.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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