NETWORK ATTACKS FRAMEWORK
1.0.0
A NETwork Attacks framework. Making network attacks impact evaluation easier!
|
#include <NA_aodv_rrep.h>
Public Member Functions | |
RREP (const char *name="RREPAodvMsg") | |
RREP (const RREP &m) | |
RREP & | operator= (const RREP &m) |
virtual RREP * | dup () const |
virtual std::string | detailedInfo () const |
uint16_t | getRes1 () const |
uint16_t | getA () const |
uint16_t | getR () const |
uint16_t | getPrefix () const |
uint16_t | getRes2 () const |
uint8_t | getHcnt () const |
const ManetAddress & | getDest_addr () const |
uint32_t | getDest_seqno () const |
const ManetAddress & | getOrig_addr () const |
uint32_t | getLifetime () const |
uint32_t | getCost () const |
uint8_t | getHopfix () const |
AODV_ext & | getExtension (int i) const |
int | getExtensionArraySize () const |
Public Attributes | |
u_int8_t | type |
u_int8_t | hcnt |
u_int32_t | dest_addr |
u_int32_t | dest_seqno |
u_int32_t | orig_addr |
u_int32_t | lifetime |
u_int16_t | res1 |
u_int16_t | a |
u_int16_t | r |
u_int16_t | prefix |
u_int16_t | res2 |
ManetAddress | dest_addr |
ManetAddress | orig_addr |
uint32_t | cost |
uint8_t | hopfix |
AODV_ext * | extension |
Private Member Functions | |
void | copy (const RREP &other) |
Definition at line 47 of file NA_aodv_rrep.h.
RREP::RREP | ( | const char * | name = "RREPAodvMsg" | ) | [inline, explicit] |
Definition at line 126 of file NA_aodv_msg_struct.h.
: AODV_msg (name) {setBitLength(20*8);}
RREP::RREP | ( | const RREP & | m | ) |
Definition at line 195 of file NA_aodv_msg_struct.cc.
void RREP::copy | ( | const RREP & | other | ) | [private] |
std::string RREP::detailedInfo | ( | ) | const [virtual] |
Definition at line 224 of file NA_aodv_msg_struct.cc.
{ std::stringstream out; int timeToLive = ttl; int hops = hcnt; out << " RREP " << "\n"; // Khmm... out <<" Source :"<< orig_addr << "\n"; out <<" Destination :"<< dest_addr << "\n"; out <<" Destination seq num:"<< dest_seqno << "\n"; out <<" TTL :"<< timeToLive << "\n"; out <<" hops :"<< hops << "\n"; return out.str(); }
Reimplemented from AODV_msg.
Definition at line 129 of file NA_aodv_msg_struct.h.
{return new RREP(*this);}
uint16_t RREP::getA | ( | ) | const [inline] |
Definition at line 132 of file NA_aodv_msg_struct.h.
{return a;}
uint32_t RREP::getCost | ( | ) | const [inline] |
Definition at line 143 of file NA_aodv_msg_struct.h.
{return cost;}
const ManetAddress& RREP::getDest_addr | ( | ) | const [inline] |
Definition at line 138 of file NA_aodv_msg_struct.h.
{return dest_addr;}
uint32_t RREP::getDest_seqno | ( | ) | const [inline] |
Definition at line 139 of file NA_aodv_msg_struct.h.
{return dest_seqno;}
AODV_ext& RREP::getExtension | ( | int | i | ) | const [inline] |
Definition at line 145 of file NA_aodv_msg_struct.h.
{return extension[i];}
int RREP::getExtensionArraySize | ( | ) | const [inline] |
Definition at line 146 of file NA_aodv_msg_struct.h.
{return 0;} //FIXME!!!!!!
uint8_t RREP::getHcnt | ( | ) | const [inline] |
Definition at line 136 of file NA_aodv_msg_struct.h.
{return hcnt;}
uint8_t RREP::getHopfix | ( | ) | const [inline] |
Definition at line 144 of file NA_aodv_msg_struct.h.
{return hopfix;}
uint32_t RREP::getLifetime | ( | ) | const [inline] |
Definition at line 142 of file NA_aodv_msg_struct.h.
{return lifetime;}
const ManetAddress& RREP::getOrig_addr | ( | ) | const [inline] |
Definition at line 141 of file NA_aodv_msg_struct.h.
{return orig_addr;}
uint16_t RREP::getPrefix | ( | ) | const [inline] |
Definition at line 134 of file NA_aodv_msg_struct.h.
{return prefix;}
uint16_t RREP::getR | ( | ) | const [inline] |
Definition at line 133 of file NA_aodv_msg_struct.h.
{return r;}
uint16_t RREP::getRes1 | ( | ) | const [inline] |
Definition at line 131 of file NA_aodv_msg_struct.h.
{return res1;}
uint16_t RREP::getRes2 | ( | ) | const [inline] |
Definition at line 135 of file NA_aodv_msg_struct.h.
{return res2;}
Definition at line 200 of file NA_aodv_msg_struct.cc.
{ if (this==&m) return *this; AODV_msg::operator=(m); copy(m); return *this; }
u_int16_t RREP::a |
Definition at line 110 of file NA_aodv_msg_struct.h.
uint32_t RREP::cost |
Definition at line 121 of file NA_aodv_msg_struct.h.
u_int32_t RREP::dest_addr |
Definition at line 66 of file NA_aodv_rrep.h.
ManetAddress RREP::dest_addr |
Definition at line 116 of file NA_aodv_msg_struct.h.
u_int32_t RREP::dest_seqno |
Definition at line 67 of file NA_aodv_rrep.h.
Reimplemented from AODV_msg.
Definition at line 123 of file NA_aodv_msg_struct.h.
u_int8_t RREP::hcnt |
Definition at line 65 of file NA_aodv_rrep.h.
uint8_t RREP::hopfix |
Definition at line 122 of file NA_aodv_msg_struct.h.
u_int32_t RREP::lifetime |
Definition at line 69 of file NA_aodv_rrep.h.
u_int32_t RREP::orig_addr |
Definition at line 68 of file NA_aodv_rrep.h.
ManetAddress RREP::orig_addr |
Definition at line 119 of file NA_aodv_msg_struct.h.
u_int16_t RREP::prefix |
Definition at line 112 of file NA_aodv_msg_struct.h.
u_int16_t RREP::r |
Definition at line 111 of file NA_aodv_msg_struct.h.
u_int16_t RREP::res1 |
Definition at line 109 of file NA_aodv_msg_struct.h.
u_int16_t RREP::res2 |
Definition at line 113 of file NA_aodv_msg_struct.h.
u_int8_t RREP::type |
Reimplemented from AODV_msg.
Definition at line 49 of file NA_aodv_rrep.h.