Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jan 2008 20:10:34 -0800
From:      "Subhash Gopinath" <subhashg.unix@gmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   netgraph question
Message-ID:  <5db9d2e0801112010s55812b20p6a43f0fbb5cddd17@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello folks,

I am looking at writing an application program to tap certain ipv6 packets
(say icmpv6)
using netgraph. The application has to do some processing, before kernel can
proceed
with those packets.

I have vaguely understood netgraph, and I see that I need a ng_socket node
in the application, an ng_bpf node, and an ng_ether or ng_iface node in the
kernel.

My question is. would I need to create such nodes for each interface. Then
it becomes unscalable..
Can I have just one socket, bpf, iface node that can tap icmpv6 packets on
all interfaces?

I'll reiterate if this question was not clear. Any help would be greatly
appreciated...
Otherwise I'll have to end up using raw sockets..

Thanks,
Subhash



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