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