Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2000 11:58:46 -0300
From:      "Jorge P Vasquez" <jorge@acron.ind.br>
To:        <freebsd-net@freebsd.org>
Subject:   working with mbufs
Message-ID:  <007f01bfc1a2$bca11800$6500a8c0@acron.int>

next in thread | raw e-mail | index | archive | help
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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2919.6307" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV>Hi all.<BR><BR>I need some clues about where to find information on =
working=20
with mbufs. To<BR>be more specific, I need to strip the ethernet header =
of a=20
packet, do some<BR>processing (for instance, IP=3Dmtod (m, struct ip*) =
should work=20
correctly) with<BR>it and then restore the _original_ ether header. =
Could=20
someone please give<BR>me a pointer to the information I need to get =
started=20
(besides mbuf.h and<BR>uipc_mbuf.c, which were of some help, but weren't =
enough)=20
or to some sample<BR>code?<BR><BR>Thanks.<BR><BR>Jorge<BR>--<BR>Jorge =
Peixoto=20
Vasquez<BR>Electrical Engineer<BR>Acron Telecomunicacoes e Informatica=20
LTDA<BR>Brazil<BR></DIV></BODY></HTML>

------=_NextPart_000_007C_01BFC189.960BCFA0--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007f01bfc1a2$bca11800$6500a8c0>