Capture packets before kernel process
Barney Cordoba
barney_cordoba at yahoo.com
Wed May 1 23:16:11 UTC 2013
--- On Tue, 4/30/13, wind at sourcearmory.com <wind at sourcearmory.com> wrote:
> From: wind at sourcearmory.com <wind at sourcearmory.com>
> Subject: Capture packets before kernel process
> To: freebsd-net at 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
More information about the freebsd-net
mailing list