From owner-freebsd-net Fri May 19 8: 2:48 2000 Delivered-To: freebsd-net@freebsd.org Received: from smtp-3.ig.com.br (d062.200-225-157.ig.com.br [200.225.157.62]) by hub.freebsd.org (Postfix) with SMTP id 4190A37BF12 for ; Fri, 19 May 2000 08:02:37 -0700 (PDT) (envelope-from jorge@acron.ind.br) Received: (qmail 29781 invoked from network); 19 May 2000 15:03:39 -0000 Received: from ppp111-bsano204.telebrasilia.net.br (HELO cbf) (200.193.245.111) by 200.225.157.62 with SMTP; 19 May 2000 15:03:39 -0000 Message-ID: <007f01bfc1a2$bca11800$6500a8c0@acron.int> From: "Jorge P Vasquez" To: Subject: working with mbufs Date: Fri, 19 May 2000 11:58:46 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_007C_01BFC189.960BCFA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-Mimeole: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org This is a multi-part message in MIME format. ------=_NextPart_000_007C_01BFC189.960BCFA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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=3Dmtod (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? Thanks. Jorge -- Jorge Peixoto Vasquez Electrical Engineer Acron Telecomunicacoes e Informatica LTDA Brazil ------=_NextPart_000_007C_01BFC189.960BCFA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all.

I need some clues about where to find information on = working=20 with mbufs. To
be more specific, I need to strip the ethernet header = of a=20 packet, do some
processing (for instance, IP=3Dmtod (m, struct ip*) = should work=20 correctly) with
it and then restore the _original_ ether header. = Could=20 someone please give
me a pointer to the information I need to get = started=20 (besides mbuf.h and
uipc_mbuf.c, which were of some help, but weren't = enough)=20 or to some sample
code?

Thanks.

Jorge
--
Jorge = Peixoto=20 Vasquez
Electrical Engineer
Acron Telecomunicacoes e Informatica=20 LTDA
Brazil
------=_NextPart_000_007C_01BFC189.960BCFA0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message