From owner-freebsd-net Fri May 19 17:49:29 2000 Delivered-To: freebsd-net@freebsd.org Received: from relay.butya.kz (butya-gw.butya.kz [212.154.129.94]) by hub.freebsd.org (Postfix) with ESMTP id CD21937B74F for ; Fri, 19 May 2000 17:49:24 -0700 (PDT) (envelope-from bp@butya.kz) Received: from bp (helo=localhost) by relay.butya.kz with local-esmtp (Exim 3.13 #1) id 12sxS2-0009IS-00; Sat, 20 May 2000 07:49:10 +0700 Date: Sat, 20 May 2000 07:49:10 +0700 (ALMST) From: Boris Popov To: Jorge P Vasquez Cc: freebsd-net@freebsd.org Subject: Re: working with mbufs In-Reply-To: <007f01bfc1a2$bca11800$6500a8c0@acron.int> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 19 May 2000, Jorge P Vasquez wrote: > 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 paper about "Networking Implementation Notes" located at the /usr/share/doc/smm/18.net directory. Unfortunately, the above details is not enough to give complete answer. Look also at Netgraph interface. -- Boris Popov http://www.butya.kz/~bp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message