NETWORK ATTACKS FRAMEWORK  1.0.0
A NETwork Attacks framework. Making network attacks impact evaluation easier!
NA_SinkholeAttack Class Reference

Sinkhole attack controller implementation. More...

#include <NA_SinkholeAttack.h>

Inheritance diagram for NA_SinkholeAttack:
NA_Attack

List of all members.

Protected Member Functions

virtual cMessage * generateAttackMessage (const char *name)
 Overridden function.

Detailed Description

Sinkhole attack controller implementation.

This controller generates the specific control message (sinkhole message) containing the relevant information for the hacked modules affected by the attack. In this case NA_IPv4.

See also:
NA_Attack, NA_aodv_uu_omnet
Author:
Gabriel Maciá Fernández, gmacia@ugr.es
Date:
01/22/2013

Definition at line 46 of file NA_SinkholeAttack.h.


Member Function Documentation

cMessage * NA_SinkholeAttack::generateAttackMessage ( const char *  name) [protected, virtual]

Overridden function.

Reimplemented from NA_Attack.

Definition at line 37 of file NA_SinkholeAttack.cc.

                                                                   {

    LOG << "NA_SinkholeAttack: generateAttackMessage\n";

    // Generates the specific message with the specific parameters for hacked module
    NA_SinkholeMessage *msg = new NA_SinkholeMessage(name);
    msg->setSinkholeAttackProbability(
            par("sinkholeAttackProbability").doubleValue());
    msg->setSinkOnlyWhenRouteInTable(
            par("sinkOnlyWhenRouteInTable").boolValue());
    msg->setSeqnoAdded(&par("seqnoAdded"));
    msg->setNumHops(par("numHops"));
    return msg;
}

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerator Defines