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
[-- Attachment #1 --] 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? Thanks. Jorge -- Jorge Peixoto Vasquez Electrical Engineer Acron Telecomunicacoes e Informatica LTDA Brazil [-- Attachment #2 --] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=iso-8859-1" http-equiv=Content-Type> <META content="MSHTML 5.00.2919.6307" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV>Hi all.<BR><BR>I need some clues about where to find information on working with mbufs. To<BR>be more specific, I need to strip the ethernet header of a packet, do some<BR>processing (for instance, IP=mtod (m, struct ip*) should work correctly) with<BR>it and then restore the _original_ ether header. Could someone please give<BR>me a pointer to the information I need to get started (besides mbuf.h and<BR>uipc_mbuf.c, which were of some help, but weren't enough) or to some sample<BR>code?<BR><BR>Thanks.<BR><BR>Jorge<BR>--<BR>Jorge Peixoto Vasquez<BR>Electrical Engineer<BR>Acron Telecomunicacoes e Informatica LTDA<BR>Brazil<BR></DIV></BODY></HTML>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?007f01bfc1a2$bca11800$6500a8c0>
