NETWORK ATTACKS FRAMEWORK
1.0.0
A NETwork Attacks framework. Making network attacks impact evaluation easier!
|
Dropping attack hacked module. More...
#include <NA_HackedModule.h>
Public Member Functions | |
virtual void | handleMessageFromAttackController (cMessage *msg) |
This method is in charge of to receive the control message from the attack controller. | |
Private Attributes | |
NA_NesgLog | log |
Log reference. |
Dropping attack hacked module.
This hacked module is in charge of implement the dropping behavior on IP layer. When this module receive a dropping control message from the controller this activate or deactivate the dropping behavior. The packets are discarded randomly following a normal distribution with a
droppingAttackProbability
probability.
Definition at line 48 of file NA_HackedModule.h.
void NA_HackedModule::handleMessageFromAttackController | ( | cMessage * | msg | ) | [virtual] |
This method is in charge of to receive the control message from the attack controller.
Depending of the message information, this method sets the specific hacked module properties to allow the attack behavior or not.
This method must be overridden for all hacked modules.
msg | cMessage the received message from attack controller |
Reimplemented in NA_AODVUU, and NA_IPv4.
Definition at line 29 of file NA_HackedModule.cc.
{ LOG << "Class HackedModule: HandleMessageFromAttackController\n"; }
NA_NesgLog NA_HackedModule::log [private] |
Log reference.
Reimplemented in NA_AODVUU, and NA_IPv4.
Definition at line 54 of file NA_HackedModule.h.