Hi guys.

We are using libzero with dna-cluster to analyze and forwarding|bouncing
packets.
 We would like to send through the cluster some packets created by
ourselves too, other than the captured ones.
Something like that (in pseudo-code):

while (1) {
    pfring_recv_pkt_buff(pd, pkt_handle, ...);
    /* analyze pkt */
    pfring_set_pkt_buff_ifindex(pd, pkt_handle, out_index);
    pfring_send_pkt_buff(pd, pkt_handle,...);

    if (condition) {
        data = create_new_pkt(...);
        send_data_through_cluster(pd, data, out_index2)
    }
}

Which is the best way to do it?
Can we use the standard function pfring_send_ifindex() even with cluster?
Is there a better way?
Thanks in advance!

Ivan
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to