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 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...
 

Typedef Documentation

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

Association Set type.

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

Association Set type.

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

Duplicate Set type.

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

Interface Association Set type.

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

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

Link Set type.

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

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

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

MPR Selector Set type.

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

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

MPR Set type.

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

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

Neighbor Set type.

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

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

Topology Set type.

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

2-hop Neighbor Set type.

Definition at line 300 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 91 of file olsr-header.cc.

References OLSR_C.

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

+ Here is the caller graph for this function:

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 683 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 689 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 697 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 173 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 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: