Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 May 2000 11:22:07 -0700
From:      "Brian O'Shea" <boshea@ricochet.net>
To:        Jorge P Vasquez <jorge@acron.ind.br>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: working with mbufs
Message-ID:  <20000519112207.S337@beastie.localdomain>
In-Reply-To: <007f01bfc1a2$bca11800$6500a8c0@acron.int>; from Jorge P Vasquez on Fri, May 19, 2000 at 11:58:46AM -0300
References:  <007f01bfc1a2$bca11800$6500a8c0@acron.int>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000519112207.S337>