Capture packets before kernel process

Julian Elischer julian at freebsd.org
Thu May 2 03:28:58 UTC 2013


On 5/2/13 7:13 AM, Barney Cordoba wrote:
> --- 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.
there is a netgraph hook there.

man netgraph
>
> BC
>
>
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>



More information about the freebsd-net mailing list