#include <ipv4-routing-table-entry.h>
 Collaboration diagram for ns3::Ipv4RoutingTableEntry:
 Collaboration diagram for ns3::Ipv4RoutingTableEntry:| Public Member Functions | |
| Ipv4RoutingTableEntry () | |
| This constructor does nothing. | |
| Ipv4RoutingTableEntry (Ipv4RoutingTableEntry const &route) | |
| Copy Constructor. | |
| Ipv4RoutingTableEntry (Ipv4RoutingTableEntry const *route) | |
| Copy Constructor. | |
| Ipv4Address | GetDest (void) const | 
| Ipv4Address | GetDestNetwork (void) const | 
| Ipv4Mask | GetDestNetworkMask (void) const | 
| Ipv4Address | GetGateway (void) const | 
| uint32_t | GetInterface (void) const | 
| bool | IsDefault (void) const | 
| bool | IsGateway (void) const | 
| bool | IsHost (void) const | 
| bool | IsNetwork (void) const | 
| Static Public Member Functions | |
| static Ipv4RoutingTableEntry | CreateDefaultRoute (Ipv4Address nextHop, uint32_t interface) | 
| static Ipv4RoutingTableEntry | CreateHostRouteTo (Ipv4Address dest, Ipv4Address nextHop, uint32_t interface) | 
| static Ipv4RoutingTableEntry | CreateHostRouteTo (Ipv4Address dest, uint32_t interface) | 
| static Ipv4RoutingTableEntry | CreateNetworkRouteTo (Ipv4Address network, Ipv4Mask networkMask, Ipv4Address nextHop, uint32_t interface) | 
| static Ipv4RoutingTableEntry | CreateNetworkRouteTo (Ipv4Address network, Ipv4Mask networkMask, uint32_t interface) | 
| Private Member Functions | |
| Ipv4RoutingTableEntry (Ipv4Address network, Ipv4Mask mask, Ipv4Address gateway, uint32_t interface) | |
| Ipv4RoutingTableEntry (Ipv4Address dest, Ipv4Mask mask, uint32_t interface) | |
| Ipv4RoutingTableEntry (Ipv4Address dest, Ipv4Address gateway, uint32_t interface) | |
| Ipv4RoutingTableEntry (Ipv4Address dest, uint32_t interface) | |
| Private Attributes | |
| Ipv4Address | m_dest | 
| Ipv4Mask | m_destNetworkMask | 
| Ipv4Address | m_gateway | 
| uint32_t | m_interface | 
A record of an IPv4 routing table entry for Ipv4GlobalRouting and Ipv4StaticRouting. This is not a reference counted object.
Definition at line 37 of file ipv4-routing-table-entry.h.
| ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry | ( | ) | 
This constructor does nothing.
Definition at line 30 of file ipv4-routing-table-entry.cc.
Referenced by CreateDefaultRoute(), CreateHostRouteTo(), and CreateNetworkRouteTo().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry | ( | Ipv4RoutingTableEntry const & | route | ) | 
Copy Constructor.
| route | The route to copy | 
Definition at line 34 of file ipv4-routing-table-entry.cc.
| ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry | ( | Ipv4RoutingTableEntry const * | route | ) | 
Copy Constructor.
| route | The route to copy | 
Definition at line 42 of file ipv4-routing-table-entry.cc.
| 
 | private | 
Definition at line 67 of file ipv4-routing-table-entry.cc.
| 
 | private | 
Definition at line 77 of file ipv4-routing-table-entry.cc.
| 
 | private | 
Definition at line 50 of file ipv4-routing-table-entry.cc.
| 
 | private | 
Definition at line 59 of file ipv4-routing-table-entry.cc.
| 
 | static | 
| nextHop | Ipv4Address of the next hop | 
| interface | Outgoing interface | 
Definition at line 185 of file ipv4-routing-table-entry.cc.
References ns3::Ipv4Address::GetZero(), and Ipv4RoutingTableEntry().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
| dest | Ipv4Address of the destination | 
| nextHop | Ipv4Address of the next hop | 
| interface | Outgoing interface | 
Definition at line 155 of file ipv4-routing-table-entry.cc.
References Ipv4RoutingTableEntry().
Referenced by ns3::Ipv4GlobalRouting::AddHostRouteTo().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
| dest | Ipv4Address of the destination | 
| interface | Outgoing interface | 
Definition at line 162 of file ipv4-routing-table-entry.cc.
References Ipv4RoutingTableEntry().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
| network | Ipv4Address of the destination network | 
| networkMask | Ipv4Mask of the destination network mask | 
| nextHop | Ipv4Address of the next hop | 
| interface | Outgoing interface | 
Definition at line 168 of file ipv4-routing-table-entry.cc.
References Ipv4RoutingTableEntry().
Referenced by ns3::Ipv4GlobalRouting::AddASExternalRouteTo(), ns3::Ipv4StaticRouting::AddNetworkRouteTo(), ns3::Ipv4GlobalRouting::AddNetworkRouteTo(), ns3::GlobalRouter::InjectRoute(), and ns3::Ipv4StaticRouting::SetDefaultMulticastRoute().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
| network | Ipv4Address of the destination network | 
| networkMask | Ipv4Mask of the destination network mask | 
| interface | Outgoing interface | 
Definition at line 177 of file ipv4-routing-table-entry.cc.
References Ipv4RoutingTableEntry().
 Here is the call graph for this function:
 Here is the call graph for this function:| Ipv4Address ns3::Ipv4RoutingTableEntry::GetDest | ( | void | ) | const | 
Definition at line 100 of file ipv4-routing-table-entry.cc.
References m_dest.
Referenced by ns3::Ipv4GlobalRouting::LookupGlobal(), ns3::Ipv4StaticRouting::LookupStatic(), ns3::operator<<(), ns3::Ipv4StaticRouting::PrintRoutingTable(), and ns3::Ipv4GlobalRouting::PrintRoutingTable().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| Ipv4Address ns3::Ipv4RoutingTableEntry::GetDestNetwork | ( | void | ) | const | 
Definition at line 122 of file ipv4-routing-table-entry.cc.
References m_dest.
Referenced by ns3::Ipv4StaticRouting::NotifyRemoveAddress(), ns3::operator<<(), ns3::olsr::RoutingProtocol::RoutingTableComputation(), and ns3::olsr::RoutingProtocol::SetRoutingTableAssociation().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| Ipv4Mask ns3::Ipv4RoutingTableEntry::GetDestNetworkMask | ( | void | ) | const | 
Definition at line 127 of file ipv4-routing-table-entry.cc.
References m_destNetworkMask.
Referenced by ns3::Ipv4StaticRouting::NotifyRemoveAddress(), ns3::operator<<(), ns3::Ipv4StaticRouting::PrintRoutingTable(), ns3::Ipv4GlobalRouting::PrintRoutingTable(), ns3::olsr::RoutingProtocol::RoutingTableComputation(), and ns3::olsr::RoutingProtocol::SetRoutingTableAssociation().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| Ipv4Address ns3::Ipv4RoutingTableEntry::GetGateway | ( | void | ) | const | 
Definition at line 144 of file ipv4-routing-table-entry.cc.
References m_gateway.
Referenced by ns3::Ipv4GlobalRouting::LookupGlobal(), ns3::Ipv4StaticRouting::LookupStatic(), ns3::operator<<(), ns3::Ipv4StaticRouting::PrintRoutingTable(), and ns3::Ipv4GlobalRouting::PrintRoutingTable().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| uint32_t ns3::Ipv4RoutingTableEntry::GetInterface | ( | void | ) | const | 
Definition at line 149 of file ipv4-routing-table-entry.cc.
References m_interface.
Referenced by ns3::Ipv4GlobalRouting::LookupGlobal(), ns3::Ipv4StaticRouting::LookupStatic(), ns3::Ipv4StaticRouting::NotifyInterfaceDown(), ns3::Ipv4StaticRouting::NotifyRemoveAddress(), ns3::operator<<(), ns3::Ipv4StaticRouting::PrintRoutingTable(), ns3::Ipv4GlobalRouting::PrintRoutingTable(), and ns3::olsr::RoutingProtocol::UsesNonOlsrOutgoingInterface().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| bool ns3::Ipv4RoutingTableEntry::IsDefault | ( | void | ) | const | 
Definition at line 110 of file ipv4-routing-table-entry.cc.
References ns3::Ipv4Address::GetZero(), ns3::Ipv4Address::IsEqual(), and m_dest.
Referenced by ns3::operator<<().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| bool ns3::Ipv4RoutingTableEntry::IsGateway | ( | void | ) | const | 
Definition at line 132 of file ipv4-routing-table-entry.cc.
References ns3::Ipv4Address::GetZero(), ns3::Ipv4Address::IsEqual(), and m_gateway.
Referenced by ns3::operator<<(), ns3::Ipv4StaticRouting::PrintRoutingTable(), and ns3::Ipv4GlobalRouting::PrintRoutingTable().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| bool ns3::Ipv4RoutingTableEntry::IsHost | ( | void | ) | const | 
Definition at line 88 of file ipv4-routing-table-entry.cc.
References ns3::Ipv4Mask::GetOnes(), ns3::Ipv4Mask::IsEqual(), and m_destNetworkMask.
Referenced by IsNetwork(), ns3::operator<<(), ns3::Ipv4StaticRouting::PrintRoutingTable(), and ns3::Ipv4GlobalRouting::PrintRoutingTable().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| bool ns3::Ipv4RoutingTableEntry::IsNetwork | ( | void | ) | const | 
This method is implemented as !IsHost ().
Definition at line 105 of file ipv4-routing-table-entry.cc.
References IsHost().
Referenced by ns3::Ipv4StaticRouting::NotifyRemoveAddress(), and ns3::operator<<().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | private | 
Definition at line 151 of file ipv4-routing-table-entry.h.
Referenced by GetDest(), GetDestNetwork(), and IsDefault().
| 
 | private | 
Definition at line 152 of file ipv4-routing-table-entry.h.
Referenced by GetDestNetworkMask(), and IsHost().
| 
 | private | 
Definition at line 153 of file ipv4-routing-table-entry.h.
Referenced by GetGateway(), and IsGateway().
| 
 | private | 
Definition at line 154 of file ipv4-routing-table-entry.h.
Referenced by GetInterface().