On 5/2/13 7:13 AM, Barney Cordoba wrote:
--- On Tue, 4/30/13, w...@sourcearmory.com <w...@sourcearmory.com> wrote:
From: w...@sourcearmory.com <w...@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.
there is a netgraph hook there.
man netgraph
BC
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"