From owner-freebsd-net Fri May 19 11:11:45 2000 Delivered-To: freebsd-net@freebsd.org Received: from mail.rdc1.sfba.home.com (ha1.rdc1.sfba.home.com [24.0.0.66]) by hub.freebsd.org (Postfix) with ESMTP id 5613237B532 for ; Fri, 19 May 2000 11:11:41 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain ([24.19.158.41]) by mail.rdc1.sfba.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000519181140.UUIF22234.mail.rdc1.sfba.home.com@beastie.localdomain>; Fri, 19 May 2000 11:11:40 -0700 Received: (from brian@localhost) by beastie.localdomain (8.9.3/8.8.7) id LAA92594; Fri, 19 May 2000 11:22:08 -0700 (PDT) (envelope-from brian) Date: Fri, 19 May 2000 11:22:07 -0700 From: "Brian O'Shea" To: Jorge P Vasquez Cc: freebsd-net@FreeBSD.ORG Subject: Re: working with mbufs Message-ID: <20000519112207.S337@beastie.localdomain> Reply-To: boshea@ricochet.net Mail-Followup-To: Jorge P Vasquez , freebsd-net@FreeBSD.ORG References: <007f01bfc1a2$bca11800$6500a8c0@acron.int> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <007f01bfc1a2$bca11800$6500a8c0@acron.int>; from Jorge P Vasquez on Fri, May 19, 2000 at 11:58:46AM -0300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, May 19, 2000 at 11:58:46AM -0300, Jorge P Vasquez scribbled: > Hi all. > > I need some clues about where to find information on working with mbufs. To > be more specific, I need to strip the ethernet header of a packet, do some > processing (for instance, IP=mtod (m, struct ip*) should work correctly) with > it and then restore the _original_ ether header. Could someone please give > me a pointer to the information I need to get started (besides mbuf.h and > uipc_mbuf.c, which were of some help, but weren't enough) or to some sample > code? There is a good discussion of mbufs in chapter 2 of "TCP/IP Illustrated, Volume 2: The Implementation", W. Richard Stevens (ISBN 0-201-63354-X). -brian -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message