Good, thanks Alfredo! On Thu, Feb 26, 2015 at 5:11 PM, Alfredo Cardigliano <[email protected]> wrote: > Hi Pavel > you can use zsend as example for stack injection, it works in the same way > pfsend does, just use the “stack:” prefix opening a device. > > Alfredo > >> On 26 Feb 2015, at 15:01, Pavel Odintsov <[email protected]> wrote: >> >> Hello, folks! >> >> I'm working on some sort of firewall for Linux (like userspace >> iptables/pf/pf-netmap). I'm trying build it with PF_RING ZC API. >> >> You have nice examples of packet injection here >> http://www.ntop.org/products/pf_ring/pf_ring-zc-zero-copy/ and you >> recommend to read pfsend.c code and this article >> https://svn.ntop.org/svn/ntop/trunk/PF_RING/userland/examples/README.stackinjection. >> >> But this code implemented with old API and I can't use it in my modern >> ZC API toolkit with >> pfring_zc_create_cluster/pfring_zc_recv_pkt/pfring_zc_pkt_buff_data. >> >> What recommended way to do linux network stack injection for ZC API? >> >> -- >> Sincerely yours, Pavel Odintsov >> _______________________________________________ >> Ntop-misc mailing list >> [email protected] >> http://listgateway.unipi.it/mailman/listinfo/ntop-misc > > > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
-- Sincerely yours, Pavel Odintsov _______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
