Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Aug 2006 00:50:26 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Rajkumar S <rajkumars@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: netgraph to userspace?
Message-ID:  <44E57142.5050809@elischer.org>
In-Reply-To: <64de5c8b0608172319q63497574ue416409bb8b7fa42@mail.gmail.com>
References:  <64de5c8b0608172319q63497574ue416409bb8b7fa42@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Rajkumar S wrote:

> Hi,
>
> Is it possible to take a packet from netgraph to userspace and drop it
> there? ie, can I
> insert some netgraph node between say lower and upper of a ng_ether
> push the packets to
> userspace [snort] for some processing and possibly either drop it there?


of course..

man ng_socket

that's one of the main Features of netgraph

>
> I know  that NgSendData and NgRecvData can be used to sent and receive
> data using
> ng_socket, but what I want to confirm is that does these work like a
> man in the middle,
> receiving from one end and sent it to next? And if I receive a packet

you can use two sockets.. attach one to lower and the other to upper.

> and forgets to
> sent, it's effectievly dropped?  yes


>
> With warm regards,
>
> raj
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44E57142.5050809>