|
NETWORK ATTACKS FRAMEWORK
1.0.0
A NETwork Attacks framework. Making network attacks impact evaluation easier!
|
Delay attack controller implementation. More...
#include <NA_DelayAttack.h>
Protected Member Functions | |
| virtual cMessage * | generateAttackMessage (const char *name) |
| Overridden function. | |
Delay attack controller implementation.
This controller generates the specific control message (delay message) containing the relevant information for the hacked modules affected by the attack. In this case NA_IPv4.
Definition at line 46 of file NA_DelayAttack.h.
| cMessage * NA_DelayAttack::generateAttackMessage | ( | const char * | name | ) | [protected, virtual] |
Overridden function.
Reimplemented from NA_Attack.
Definition at line 37 of file NA_DelayAttack.cc.
{
LOG << "NA_DelayAttack: generateAttackMessage\n";
// We create a specific message with specific parameters.
NA_DelayMessage *msg = new NA_DelayMessage(name);
msg->setDelayAttackProbability(par("delayAttackProbability").doubleValue());
msg->setDelayAttackValue(&par("delayAttackValue"));
return msg;
}