Date: Wed, 1 May 2013 16:13:43 -0700 (PDT) From: Barney Cordoba <barney_cordoba@yahoo.com> To: freebsd-net@freebsd.org, wind@sourcearmory.com Subject: Re: Capture packets before kernel process Message-ID: <1367450023.38176.YahooMailClassic@web121605.mail.ne1.yahoo.com>
next in thread | raw e-mail | index | archive | help
--- On Tue, 4/30/13, wind@sourcearmory.com <wind@sourcearmory.com> wrote: > From: wind@sourcearmory.com <wind@sourcearmory.com> > Subject: Capture packets before kernel process > To: freebsd-net@freebsd.org > Date: Tuesday, April 30, 2013, 11:24 AM > Hi! > > I need some help, currently I'm working in a project where I > want to capture and process some network packets before the > kernel. I have searched but I have found nothing. > > Is there some way to capture the packets before the kernel > ? You want to wedge your code to the if_input routine. Then pass the mbuf to the original if_input routine. BC
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1367450023.38176.YahooMailClassic>