A Discrete-Event Network Simulator
API
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
 A Duplicate Tuple. 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
 This header can store HELP, TC, MID and HNA messages. More...
 
struct  MprSelectorTuple
 An MPR-Selector Tuple. More...
 
struct  NeighborTuple
 A Neighbor Tuple. More...
 
class  OlsrState
 This class encapsulates all data structures needed for maintaining internal state of an OLSR node. More...
 
class  PacketHeader
 The basic layout of any packet in OLSR is as follows (omitting IP and UDP headers): More...
 
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< AssociationTupleAssociationSet
 Association Set type. More...
 
typedef std::vector< DuplicateTupleDuplicateSet
 Duplicate Set type. More...
 
typedef std::vector< IfaceAssocTupleIfaceAssocSet
 Interface Association Set type. More...
 
typedef std::vector< LinkTupleLinkSet
 Link Set type. More...
 
typedef std::vector< MessageHeaderMessageList
 
typedef std::vector< MprSelectorTupleMprSelectorSet
 MPR Selector Set type. More...
 
typedef std::set< Ipv4AddressMprSet
 MPR Set type. More...
 
typedef std::vector< NeighborTupleNeighborSet
 Neighbor Set type. More...
 
typedef std::vector< TopologyTupleTopologySet
 Topology Set type. More...
 
typedef std::vector< TwoHopNeighborTupleTwoHopNeighborSet
 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...
 
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 IfaceAssocTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const LinkTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const MessageHeader &message)
 
static std::ostream & operator<< (std::ostream &os, const MessageList &messages)
 
static std::ostream & operator<< (std::ostream &os, const NeighborTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const PacketHeader &packet)
 
static std::ostream & operator<< (std::ostream &os, const TopologyTuple &tuple)
 
static std::ostream & operator<< (std::ostream &os, const TwoHopNeighborTuple &tuple)
 
static bool operator== (const Association &a, const Association &b)
 
static bool operator== (const AssociationTuple &a, const AssociationTuple &b)
 
static bool operator== (const DuplicateTuple &a, const DuplicateTuple &b)
 
static bool operator== (const IfaceAssocTuple &a, const IfaceAssocTuple &b)
 
static bool operator== (const LinkTuple &a, const LinkTuple &b)
 
static bool operator== (const MprSelectorTuple &a, const MprSelectorTuple &b)
 
static bool operator== (const NeighborTuple &a, const NeighborTuple &b)
 
static bool operator== (const TopologyTuple &a, const TopologyTuple &b)
 
static bool operator== (const TwoHopNeighborTuple &a, const TwoHopNeighborTuple &b)
 
uint8_t SecondsToEmf (double seconds)
 Converts a decimal number of seconds to the mantissa/exponent format. More...
 

Typedef Documentation

◆ Associations

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

Association Set type.

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

◆ AssociationSet

Association Set type.

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

◆ DuplicateSet

Duplicate Set type.

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

◆ IfaceAssocSet

Interface Association Set type.

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

◆ LinkSet

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

Link Set type.

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

◆ MessageList

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

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

◆ MprSelectorSet

MPR Selector Set type.

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

◆ MprSet

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

MPR Set type.

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

◆ NeighborSet

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

Neighbor Set type.

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

◆ TopologySet

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

Topology Set type.

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

◆ TwoHopNeighborSet

2-hop Neighbor Set type.

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

Function Documentation

◆ EmfToSeconds()

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 91 of file olsr-header.cc.

References OLSR_C.

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

+ Here is the caller graph for this function:

◆ operator<<() [1/10]

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const Association tuple 
)
inlinestatic

◆ operator<<() [2/10]

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const AssociationTuple tuple 
)
inlinestatic

◆ operator<<() [3/10]

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const IfaceAssocTuple tuple 
)
inlinestatic

◆ operator<<() [4/10]

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const LinkTuple tuple 
)
inlinestatic

◆ operator<<() [5/10]

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

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

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

+ Here is the call graph for this function:

◆ operator<<() [6/10]

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

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

◆ operator<<() [7/10]

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const NeighborTuple tuple 
)
inlinestatic

◆ operator<<() [8/10]

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const PacketHeader packet 
)
inlinestatic

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

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

+ Here is the call graph for this function:

◆ operator<<() [9/10]

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const TopologyTuple tuple 
)
inlinestatic

◆ operator<<() [10/10]

static std::ostream& ns3::olsr::operator<< ( std::ostream &  os,
const TwoHopNeighborTuple tuple 
)
inlinestatic

◆ operator==() [1/9]

static bool ns3::olsr::operator== ( const Association a,
const Association b 
)
inlinestatic

◆ operator==() [2/9]

static bool ns3::olsr::operator== ( const AssociationTuple a,
const AssociationTuple b 
)
inlinestatic

◆ operator==() [3/9]

static bool ns3::olsr::operator== ( const DuplicateTuple a,
const DuplicateTuple b 
)
inlinestatic

◆ operator==() [4/9]

static bool ns3::olsr::operator== ( const IfaceAssocTuple a,
const IfaceAssocTuple b 
)
inlinestatic

◆ operator==() [5/9]

static bool ns3::olsr::operator== ( const LinkTuple a,
const LinkTuple b 
)
inlinestatic

◆ operator==() [6/9]

static bool ns3::olsr::operator== ( const MprSelectorTuple a,
const MprSelectorTuple b 
)
inlinestatic

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

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

◆ operator==() [7/9]

static bool ns3::olsr::operator== ( const NeighborTuple a,
const NeighborTuple b 
)
inlinestatic

◆ operator==() [8/9]

static bool ns3::olsr::operator== ( const TopologyTuple a,
const TopologyTuple b 
)
inlinestatic

◆ operator==() [9/9]

static bool ns3::olsr::operator== ( const TwoHopNeighborTuple a,
const TwoHopNeighborTuple b 
)
inlinestatic

◆ SecondsToEmf()

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 49 of file olsr-header.cc.

References NS_ASSERT, NS_ASSERT_MSG, and OLSR_C.

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

+ Here is the caller graph for this function: