Hello Alfredo, thank you very much for your advice! I will try the standard DNA as you said. Best regards, Rodrigo.
From: [email protected] Date: Fri, 21 Feb 2014 16:29:58 +0100 To: [email protected] Subject: Re: [Ntop-misc] Question about pfdnabounce.c (DNA Bouncer or DNA Cluster) Hi Rodrigowith the DNA Bouncer (dummyProcessPacketZero) it is not possible to inject packets, you can just return a verdict (pass or drop) for each ingress packet.I suggest you to use mode 2 (standard DNA). You could also use the DNA Cluster but I think there is no real advantage (zero-copy + pipeline vs 1-copy + direct-forwarding) and the code would be much more complicated. Best RegardsAlfredo On 21 Feb 2014, at 06:13, Rodrigo Jaureguy Dobler <[email protected]> wrote:Hello, I need to do a fault injector with bidirectional communication. I tried the pfdnabounce.c with libzero in 2-way bridge mode and it worked perfect. So, I'm thinking to use pfdnabounce.c as the base program. The topology is this: server bridge (fault injector) client +-------+ +------------+ +-------+ | | <-----------> | dna0 | | | | | | dna1 | <-----------> | | +-------+ +------------+ +-------+ The faults that I want to implement in the fault injector are: 1) Repetition: duplicate one package 2) Insertion: inserting one or more messages that are not part of the original sending data 3) Incorrect sequence: hold 2 ou 3 pkts and change the order of transmission of those messages. DNA Bouncer has this API: int pfring_dna_bouncer_loop ( pfring_dna_bouncer *handle, pfring_dna_bouncer_decision_func func, const u_char *user_bytes, u_int8_t wait_for_packet) where we define a function "func" to process the packets. My question is this: - Is it possible to modify this function "func" ("dummyProcessPacketZero" in the case of pfdnabounce.c) and use some auxiliary buffer to duplicate and create new packets and hold them (the faults describe above) and after send theses packets with the DNA Bouncer? Is it possible or must I use DNA Cluster to try to do this? Thanks a lot for your help and best regards, Rodrigo._______________________________________________ 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
_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
