|
ns-3
|
#include <ipv4-routing-table-entry.h>
Public Member Functions | |
| Ipv4RoutingTableEntry () | |
| This constructor does nothing. | |
| Ipv4RoutingTableEntry (Ipv4RoutingTableEntry const &route) | |
| Copy Constructor. | |
| Ipv4RoutingTableEntry (Ipv4RoutingTableEntry const *route) | |
| Copy Constructor. | |
| bool | IsHost (void) const |
| bool | IsNetwork (void) const |
| bool | IsDefault (void) const |
| bool | IsGateway (void) const |
| Ipv4Address | GetGateway (void) const |
| Ipv4Address | GetDest (void) const |
| Ipv4Address | GetDestNetwork (void) const |
| Ipv4Mask | GetDestNetworkMask (void) const |
| uint32_t | GetInterface (void) const |
Static Public Member Functions | |
| 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) |
| static Ipv4RoutingTableEntry | CreateDefaultRoute (Ipv4Address nextHop, uint32_t interface) |
A record of an IPv4 routing table entry for Ipv4GlobalRouting and Ipv4StaticRouting. This is not a reference counted object.
| ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry | ( | Ipv4RoutingTableEntry const & | route | ) |
Copy Constructor.
| route | The route to copy |
| ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry | ( | Ipv4RoutingTableEntry const * | route | ) |
Copy Constructor.
| route | The route to copy |
| Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateDefaultRoute | ( | Ipv4Address | nextHop, |
| uint32_t | interface | ||
| ) | [static] |
| nextHop | Ipv4Address of the next hop |
| interface | Outgoing interface |
References ns3::Ipv4Address::GetZero(), and Ipv4RoutingTableEntry().
| Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateHostRouteTo | ( | Ipv4Address | dest, |
| Ipv4Address | nextHop, | ||
| uint32_t | interface | ||
| ) | [static] |
| dest | Ipv4Address of the destination |
| nextHop | Ipv4Address of the next hop |
| interface | Outgoing interface |
References Ipv4RoutingTableEntry().
Referenced by ns3::Ipv4GlobalRouting::AddHostRouteTo().
| Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateHostRouteTo | ( | Ipv4Address | dest, |
| uint32_t | interface | ||
| ) | [static] |
| dest | Ipv4Address of the destination |
| interface | Outgoing interface |
References Ipv4RoutingTableEntry().
| Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateNetworkRouteTo | ( | Ipv4Address | network, |
| Ipv4Mask | networkMask, | ||
| Ipv4Address | nextHop, | ||
| uint32_t | interface | ||
| ) | [static] |
| network | Ipv4Address of the destination network |
| networkMask | Ipv4Mask of the destination network mask |
| nextHop | Ipv4Address of the next hop |
| interface | Outgoing interface |
References Ipv4RoutingTableEntry().
Referenced by ns3::Ipv4GlobalRouting::AddASExternalRouteTo(), ns3::Ipv4StaticRouting::AddNetworkRouteTo(), ns3::Ipv4GlobalRouting::AddNetworkRouteTo(), ns3::GlobalRouter::InjectRoute(), and ns3::Ipv4StaticRouting::SetDefaultMulticastRoute().
| Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateNetworkRouteTo | ( | Ipv4Address | network, |
| Ipv4Mask | networkMask, | ||
| uint32_t | interface | ||
| ) | [static] |
| network | Ipv4Address of the destination network |
| networkMask | Ipv4Mask of the destination network mask |
| interface | Outgoing interface |
References Ipv4RoutingTableEntry().
| Ipv4Address ns3::Ipv4RoutingTableEntry::GetDest | ( | void | ) | const |
| Ipv4Address ns3::Ipv4RoutingTableEntry::GetDestNetwork | ( | void | ) | const |
Referenced by ns3::Ipv4StaticRouting::NotifyRemoveAddress(), and ns3::olsr::RoutingProtocol::SetRoutingTableAssociation().
| Ipv4Mask ns3::Ipv4RoutingTableEntry::GetDestNetworkMask | ( | void | ) | const |
Referenced by ns3::Ipv4StaticRouting::NotifyRemoveAddress(), and ns3::olsr::RoutingProtocol::SetRoutingTableAssociation().
| Ipv4Address ns3::Ipv4RoutingTableEntry::GetGateway | ( | void | ) | const |
| uint32_t ns3::Ipv4RoutingTableEntry::GetInterface | ( | void | ) | const |
Referenced by ns3::Ipv4StaticRouting::NotifyInterfaceDown(), and ns3::Ipv4StaticRouting::NotifyRemoveAddress().
| bool ns3::Ipv4RoutingTableEntry::IsDefault | ( | void | ) | const |
References ns3::Ipv4Address::GetZero(), and ns3::Ipv4Address::IsEqual().
| bool ns3::Ipv4RoutingTableEntry::IsGateway | ( | void | ) | const |
References ns3::Ipv4Address::GetZero(), and ns3::Ipv4Address::IsEqual().
| bool ns3::Ipv4RoutingTableEntry::IsHost | ( | void | ) | const |
References ns3::Ipv4Mask::GetOnes(), and ns3::Ipv4Mask::IsEqual().
Referenced by IsNetwork().
| bool ns3::Ipv4RoutingTableEntry::IsNetwork | ( | void | ) | const |
This method is implemented as !IsHost ().
References IsHost().
Referenced by ns3::Ipv4StaticRouting::NotifyRemoveAddress().