11#ifndef OLSR_REPOSITORIES_H
12#define OLSR_REPOSITORIES_H
14#include "ns3/ipv4-address.h"
15#include "ns3/nstime.h"
57 return (os <<
"NEVER");
61 return (os <<
"DEFAULT");
63 return (os <<
"HIGH");
65 return (os <<
"ALWAYS");
67 return (os <<
static_cast<uint32_t>(willingness));
93 os <<
"IfaceAssocTuple(ifaceAddr=" << tuple.
ifaceAddr <<
", mainAddr=" << tuple.
mainAddr
94 <<
", time=" << tuple.
time <<
")";
125 <<
", asymTime=" << tuple.
asymTime <<
", expTime=" << tuple.
time <<
")";
260 os <<
"TopologyTuple(destAddr=" << tuple.
destAddr <<
", lastAddr=" << tuple.
lastAddr
283 os <<
"Association(networkAddr=" << tuple.
networkAddr <<
", netmask=" << tuple.
netmask <<
")";
311 os <<
"AssociationTuple(gatewayAddr=" << tuple.
gatewayAddr
Ipv4 addresses are stored in host order in this class.
a class to represent an Ipv4 address mask
Simulation virtual time values and global simulation resolution.
Willingness
Willingness for forwarding packets from other nodes.
std::ostream & operator<<(std::ostream &os, const PacketHeader &packet)
bool operator==(const IfaceAssocTuple &a, const IfaceAssocTuple &b)
std::vector< MprSelectorTuple > MprSelectorSet
MPR Selector Set type.
std::vector< AssociationTuple > AssociationSet
Association Set type.
std::vector< TwoHopNeighborTuple > TwoHopNeighborSet
2-hop Neighbor Set type.
std::vector< LinkTuple > LinkSet
Link Set type.
std::vector< Association > Associations
Association Set type.
std::vector< TopologyTuple > TopologySet
Topology Set type.
std::set< Ipv4Address > MprSet
MPR Set type.
std::vector< DuplicateTuple > DuplicateSet
Duplicate Set type.
std::vector< NeighborTuple > NeighborSet
Neighbor Set type.
std::vector< IfaceAssocTuple > IfaceAssocSet
Interface Association Set type.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ipv4Address networkAddr
IPv4 Network address.
Ipv4Mask netmask
IPv4 Network mask.
Ipv4Address networkAddr
Network Address of network reachable through gatewayAddr.
Ipv4Mask netmask
Netmask of network reachable through gatewayAddr.
Time expirationTime
Time at which this tuple expires and must be removed.
Ipv4Address gatewayAddr
Main address of the gateway.
std::vector< Ipv4Address > ifaceList
List of interfaces which the message has been received on.
Ipv4Address address
Originator address of the message.
uint16_t sequenceNumber
Message sequence number.
bool retransmitted
Indicates whether the message has been retransmitted or not.
Time expirationTime
Time at which this tuple expires and must be removed.
An Interface Association Tuple.
Ipv4Address ifaceAddr
Interface address of a node.
Time time
Time at which this tuple expires and must be removed.
Ipv4Address mainAddr
Main address of the node.
Time time
Time at which this tuple expires and must be removed.
Ipv4Address localIfaceAddr
Interface address of the local node.
Time asymTime
The link is considered unidirectional until this time.
Time symTime
The link is considered bidirectional until this time.
Ipv4Address neighborIfaceAddr
Interface address of the neighbor node.
Ipv4Address mainAddr
Main address of a node which have selected this node as a MPR.
Time expirationTime
Time at which this tuple expires and must be removed.
Ipv4Address neighborMainAddr
Main address of a neighbor node.
Willingness willingness
A value between 0 and 7 specifying the node's willingness to carry traffic on behalf of other nodes.
Status status
Status of the link.
Status
Status of the link (Symmetric or not Symmetric).
Ipv4Address destAddr
Main address of the destination.
Ipv4Address lastAddr
Main address of a node which is a neighbor of the destination.
uint16_t sequenceNumber
Sequence number.
Time expirationTime
Time at which this tuple expires and must be removed.
Ipv4Address twoHopNeighborAddr
Main address of a 2-hop neighbor with a symmetric link to nb_main_addr.
Ipv4Address neighborMainAddr
Main address of a neighbor.
Time expirationTime
Time at which this tuple expires and must be removed.