NETWORK ATTACKS FRAMEWORK
1.0.0
A NETwork Attacks framework. Making network attacks impact evaluation easier!
|
Dropping attack controller implementation. More...
#include <NA_DroppingAttack.h>
Protected Member Functions | |
virtual cMessage * | generateAttackMessage (const char *name) |
Overridden function. |
Dropping attack controller implementation.
This controller generates the specific control message (drop message) containing the relevant information for the hacked modules affected by the attack. In this case NA_IPv4.
Definition at line 47 of file NA_DroppingAttack.h.
cMessage * NA_DroppingAttack::generateAttackMessage | ( | const char * | name | ) | [protected, virtual] |
Overridden function.
Reimplemented from NA_Attack.
Definition at line 32 of file NA_DroppingAttack.cc.
{ LOG << "NA_DroppingAttack: generateAttackMessage\n"; // Specific message for the specifics hacked modules. NA_DroppingMessage *msg = new NA_DroppingMessage(name); msg->setDroppingAttackProbability( par("droppingAttackProbability").doubleValue()); return msg; }