A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::olsr Namespace Reference

Namespaces

 anonymous_namespace{olsr-routing-protocol.cc}
 

Classes

struct  Association
 Association. More...
 
struct  AssociationTuple
 An Association Tuple. More...
 
class  Bug780Test
 See Bug 780 More...
 
struct  DuplicateTuple
 The type "list of interface addresses". More...
 
class  HelloRegressionTest
 Trivial (still useful) test of OLSR operation. More...
 
struct  IfaceAssocTuple
 An Interface Association Tuple. More...
 
struct  LinkTuple
 A Link Tuple. More...
 
class  MessageHeader
 Doxygen introspection did not find any typical Config paths. More...
 
struct  MprSelectorTuple
 An MPR-Selector Tuple. More...
 
struct  NeighborTuple
 A Neighbor Tuple. More...
 
class  OlsrMprTestCase
 Testcase for MPR computation mechanism. More...
 
class  OlsrProtocolTestSuite
 
class  PacketHeader
 Doxygen introspection did not find any typical Config paths. More...
 
class  RegressionTestSuite
 
class  RoutingProtocol
 OLSR routing protocol for IPv4. More...
 
struct  RoutingTableEntry
 An OLSR's routing table entry. More...
 
class  TcRegressionTest
 Less trivial test of OLSR Topology Control message generation. More...
 
struct  TopologyTuple
 A Topology Tuple. More...
 
struct  TwoHopNeighborTuple
 A 2-hop Tuple. More...
 

Typedefs

typedef std::vector< AssociationAssociations
 Association Set type. More...
 
typedef std::vector
< AssociationTuple
AssociationSet
 Association Set type. More...
 
typedef std::vector
< DuplicateTuple
DuplicateSet
 Duplicate Set type. More...
 
typedef std::vector
< IfaceAssocTuple
IfaceAssocSet
 Interface Association Set type. More...
 
typedef std::vector< LinkTupleLinkSet
 Link Set type. More...
 
typedef std::vector
< MessageHeader
MessageList
 
typedef std::vector
< MprSelectorTuple
MprSelectorSet
 MPR Selector Set type. More...
 
typedef std::set< Ipv4AddressMprSet
 MPR Set type. More...
 
typedef std::vector
< NeighborTuple
NeighborSet
 Neighbor Set type. More...
 
typedef std::vector
< TopologyTuple
TopologySet
 Topology Set type. More...
 
typedef std::vector
< TwoHopNeighborTuple
TwoHopNeighborSet
 2-hop Neighbor Set type. More...
 

Functions

double EmfToSeconds (uint8_t olsrFormat)
 Converts a number of seconds in the mantissa/exponent format to a decimal number. More...
 
 NS_LOG_COMPONENT_DEFINE ("OlsrHeader")
 
 NS_LOG_COMPONENT_DEFINE ("OlsrRoutingProtocol")
 
static std::ostream & operator<< (std::ostream &os, const IfaceAssocTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const LinkTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const NeighborTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const TwoHopNeighborTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const TopologyTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const Association &tuple)
 
static std::ostream & operator<< (std::ostream &os, const AssociationTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const PacketHeader &packet)
 
static std::ostream & operator<< (std::ostream &os, const MessageHeader &message)
 
static std::ostream & operator<< (std::ostream &os, const MessageList &messages)
 
static bool operator== (const IfaceAssocTuple &a, const IfaceAssocTuple &b)
 
static bool operator== (const LinkTuple &a, const LinkTuple &b)
 
static bool operator== (const NeighborTuple &a, const NeighborTuple &b)
 
static bool operator== (const TwoHopNeighborTuple &a, const TwoHopNeighborTuple &b)
 
static bool operator== (const MprSelectorTuple &a, const MprSelectorTuple &b)
 
static bool operator== (const DuplicateTuple &a, const DuplicateTuple &b)
 
static bool operator== (const TopologyTuple &a, const TopologyTuple &b)
 
static bool operator== (const Association &a, const Association &b)
 
static bool operator== (const AssociationTuple &a, const AssociationTuple &b)
 
uint8_t SecondsToEmf (double seconds)
 Converts a decimal number of seconds to the mantissa/exponent format. More...
 
static void SetVelocity (Ptr< Node > node, Vector vel)
 

Variables

ns3::olsr::OlsrProtocolTestSuite g_olsrProtocolTestSuite
 
ns3::olsr::RegressionTestSuite g_olsrRegressionTestSuite
 

Typedef Documentation

typedef std::vector<Association> ns3::olsr::Associations

Association Set type.

Definition at line 298 of file olsr-repositories.h.

Association Set type.

Definition at line 297 of file olsr-repositories.h.

Duplicate Set type.

Definition at line 295 of file olsr-repositories.h.

Interface Association Set type.

Definition at line 296 of file olsr-repositories.h.

typedef std::vector<LinkTuple> ns3::olsr::LinkSet

Link Set type.

Definition at line 291 of file olsr-repositories.h.

typedef std::vector<MessageHeader> ns3::olsr::MessageList

Definition at line 450 of file olsr-header.h.

MPR Selector Set type.

Definition at line 290 of file olsr-repositories.h.

typedef std::set<Ipv4Address> ns3::olsr::MprSet

MPR Set type.

Definition at line 289 of file olsr-repositories.h.

typedef std::vector<NeighborTuple> ns3::olsr::NeighborSet

Neighbor Set type.

Definition at line 292 of file olsr-repositories.h.

typedef std::vector<TopologyTuple> ns3::olsr::TopologySet

Topology Set type.

Definition at line 294 of file olsr-repositories.h.

2-hop Neighbor Set type.

Definition at line 293 of file olsr-repositories.h.

Function Documentation

double ns3::olsr::EmfToSeconds ( uint8_t  olsrFormat)

Converts a number of seconds in the mantissa/exponent format to a decimal number.

Parameters
olsr_formatnumber of seconds in mantissa/exponent format.
Returns
the decimal number of seconds.

Definition at line 87 of file olsr-header.cc.

References OLSR_C.

Referenced by ns3::OlsrEmfTestCase::DoRun(), ns3::olsr::MessageHeader::Hello::GetHTime(), and ns3::olsr::MessageHeader::GetVTime().

+ Here is the caller graph for this function:

ns3::olsr::NS_LOG_COMPONENT_DEFINE ( "OlsrHeader"  )
ns3::olsr::NS_LOG_COMPONENT_DEFINE ( "OlsrRoutingProtocol"  )
static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const IfaceAssocTuple &  tuple 
)
inlinestatic
static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const LinkTuple &  tuple 
)
inlinestatic
static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const NeighborTuple &  tuple 
)
inlinestatic
static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const TwoHopNeighborTuple &  tuple 
)
inlinestatic
static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const TopologyTuple &  tuple 
)
inlinestatic
static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const Association &  tuple 
)
inlinestatic
static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const AssociationTuple &  tuple 
)
inlinestatic
static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const PacketHeader &  packet 
)
inlinestatic

Definition at line 438 of file olsr-header.h.

References ns3::olsr::PacketHeader::Print().

+ Here is the call graph for this function:

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const MessageHeader &  message 
)
inlinestatic

Definition at line 444 of file olsr-header.h.

References ns3::olsr::MessageHeader::Print().

+ Here is the call graph for this function:

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const MessageList &  messages 
)
inlinestatic

Definition at line 452 of file olsr-header.h.

static bool ns3::olsr::operator== ( const IfaceAssocTuple &  a,
const IfaceAssocTuple &  b 
)
inlinestatic
static bool ns3::olsr::operator== ( const LinkTuple &  a,
const LinkTuple &  b 
)
inlinestatic
static bool ns3::olsr::operator== ( const NeighborTuple &  a,
const NeighborTuple &  b 
)
inlinestatic
static bool ns3::olsr::operator== ( const TwoHopNeighborTuple &  a,
const TwoHopNeighborTuple &  b 
)
inlinestatic
static bool ns3::olsr::operator== ( const MprSelectorTuple &  a,
const MprSelectorTuple &  b 
)
inlinestatic

Definition at line 170 of file olsr-repositories.h.

References ns3::olsr::MprSelectorTuple::mainAddr.

static bool ns3::olsr::operator== ( const DuplicateTuple &  a,
const DuplicateTuple &  b 
)
inlinestatic
static bool ns3::olsr::operator== ( const TopologyTuple &  a,
const TopologyTuple &  b 
)
inlinestatic
static bool ns3::olsr::operator== ( const Association &  a,
const Association &  b 
)
inlinestatic
static bool ns3::olsr::operator== ( const AssociationTuple &  a,
const AssociationTuple &  b 
)
inlinestatic
uint8_t ns3::olsr::SecondsToEmf ( double  seconds)

Converts a decimal number of seconds to the mantissa/exponent format.

Parameters
secondsdecimal number of seconds we want to convert.
Returns
the number of seconds in mantissa/exponent format.

Definition at line 48 of file olsr-header.cc.

References NS_ASSERT, and OLSR_C.

Referenced by ns3::OlsrEmfTestCase::DoRun(), ns3::olsr::MessageHeader::Hello::SetHTime(), and ns3::olsr::MessageHeader::SetVTime().

+ Here is the caller graph for this function:

static void ns3::olsr::SetVelocity ( Ptr< Node >  node,
Vector  vel 
)
static

Definition at line 54 of file bug780-test.cc.

References ns3::Object::GetObject().

Referenced by ns3::olsr::Bug780Test::CreateNodes(), ns3::LteX2HandoverMeasuresTestCase::DoRun(), and main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

ns3::olsr::OlsrProtocolTestSuite ns3::olsr::g_olsrProtocolTestSuite
static
ns3::olsr::RegressionTestSuite ns3::olsr::g_olsrRegressionTestSuite