Date: Sat, 20 May 2000 07:49:10 +0700 (ALMST) From: Boris Popov <bp@butya.kz> To: Jorge P Vasquez <jorge@acron.ind.br> Cc: freebsd-net@freebsd.org Subject: Re: working with mbufs Message-ID: <Pine.BSF.4.10.10005200743570.35598-100000@lion.butya.kz> In-Reply-To: <007f01bfc1a2$bca11800$6500a8c0@acron.int>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10005200743570.35598-100000>