A record of an IPv4 route. More...
#include <ipv4-route.h>
Public Member Functions | |
Ipv4Route () | |
This constructor does nothing. | |
Ipv4Route (Ipv4Route const &route) | |
Copy Constructor. | |
Ipv4Route (Ipv4Route const *route) | |
Copy Constructor. | |
bool | IsHost (void) const |
Ipv4Address | GetDest (void) const |
bool | IsNetwork (void) const |
Ipv4Address | GetDestNetwork (void) const |
Ipv4Mask | GetDestNetworkMask (void) const |
bool | IsDefault (void) const |
bool | IsGateway (void) const |
Ipv4Address | GetGateway (void) const |
uint32_t | GetInterface (void) const |
Static Public Member Functions | |
static Ipv4Route | CreateHostRouteTo (Ipv4Address dest, Ipv4Address nextHop, uint32_t interface) |
static Ipv4Route | CreateHostRouteTo (Ipv4Address dest, uint32_t interface) |
static Ipv4Route | CreateNetworkRouteTo (Ipv4Address network, Ipv4Mask networkMask, Ipv4Address nextHop, uint32_t interface) |
static Ipv4Route | CreateNetworkRouteTo (Ipv4Address network, Ipv4Mask networkMask, uint32_t interface) |
static Ipv4Route | CreateDefaultRoute (Ipv4Address nextHop, uint32_t interface) |
Private Member Functions | |
Ipv4Route (Ipv4Address network, Ipv4Mask mask, Ipv4Address gateway, uint32_t interface) | |
Ipv4Route (Ipv4Address dest, Ipv4Mask mask, uint32_t interface) | |
Ipv4Route (Ipv4Address dest, Ipv4Address gateway, uint32_t interface) | |
Ipv4Route (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 route.
Definition at line 34 of file ipv4-route.h.
ns3::Ipv4Route::Ipv4Route | ( | ) |
This constructor does nothing.
Definition at line 28 of file ipv4-route.cc.
Referenced by CreateHostRouteTo().
ns3::Ipv4Route::Ipv4Route | ( | Ipv4Route const & | route | ) |
ns3::Ipv4Route::Ipv4Route | ( | Ipv4Route const * | route | ) |
ns3::Ipv4Route::Ipv4Route | ( | Ipv4Address | network, | |
Ipv4Mask | mask, | |||
Ipv4Address | gateway, | |||
uint32_t | interface | |||
) | [private] |
Definition at line 60 of file ipv4-route.cc.
ns3::Ipv4Route::Ipv4Route | ( | Ipv4Address | dest, | |
Ipv4Mask | mask, | |||
uint32_t | interface | |||
) | [private] |
Definition at line 69 of file ipv4-route.cc.
ns3::Ipv4Route::Ipv4Route | ( | Ipv4Address | dest, | |
Ipv4Address | gateway, | |||
uint32_t | interface | |||
) | [private] |
Definition at line 45 of file ipv4-route.cc.
ns3::Ipv4Route::Ipv4Route | ( | Ipv4Address | dest, | |
uint32_t | interface | |||
) | [private] |
Definition at line 53 of file ipv4-route.cc.
Ipv4Route ns3::Ipv4Route::CreateDefaultRoute | ( | Ipv4Address | nextHop, | |
uint32_t | interface | |||
) | [static] |
Definition at line 176 of file ipv4-route.cc.
Referenced by ns3::Ipv4StaticRouting::SetDefaultRoute().
Ipv4Route ns3::Ipv4Route::CreateHostRouteTo | ( | Ipv4Address | dest, | |
uint32_t | interface | |||
) | [static] |
Definition at line 153 of file ipv4-route.cc.
Ipv4Route ns3::Ipv4Route::CreateHostRouteTo | ( | Ipv4Address | dest, | |
Ipv4Address | nextHop, | |||
uint32_t | interface | |||
) | [static] |
Definition at line 146 of file ipv4-route.cc.
References Ipv4Route().
Referenced by ns3::Ipv4StaticRouting::AddHostRouteTo(), ns3::Ipv4GlobalRouting::AddHostRouteTo(), ns3::olsr::RoutingTable::RequestRoute(), and ns3::Ipv4StaticRouting::RequestRoute().
Ipv4Route ns3::Ipv4Route::CreateNetworkRouteTo | ( | Ipv4Address | network, | |
Ipv4Mask | networkMask, | |||
uint32_t | interface | |||
) | [static] |
Definition at line 168 of file ipv4-route.cc.
Ipv4Route ns3::Ipv4Route::CreateNetworkRouteTo | ( | Ipv4Address | network, | |
Ipv4Mask | networkMask, | |||
Ipv4Address | nextHop, | |||
uint32_t | interface | |||
) | [static] |
Definition at line 159 of file ipv4-route.cc.
Referenced by ns3::Ipv4StaticRouting::AddNetworkRouteTo(), and ns3::Ipv4GlobalRouting::AddNetworkRouteTo().
Ipv4Address ns3::Ipv4Route::GetDest | ( | void | ) | const |
Definition at line 91 of file ipv4-route.cc.
Ipv4Address ns3::Ipv4Route::GetDestNetwork | ( | void | ) | const |
Definition at line 113 of file ipv4-route.cc.
Ipv4Mask ns3::Ipv4Route::GetDestNetworkMask | ( | void | ) | const |
Definition at line 118 of file ipv4-route.cc.
Ipv4Address ns3::Ipv4Route::GetGateway | ( | void | ) | const |
Definition at line 135 of file ipv4-route.cc.
Referenced by ns3::Ipv4L3Protocol::SendRealOut().
uint32_t ns3::Ipv4Route::GetInterface | ( | void | ) | const |
Definition at line 140 of file ipv4-route.cc.
Referenced by ns3::Ipv4L3Protocol::GetIfIndexForDestination(), ns3::Ipv4StaticRouting::RequestIfIndex(), ns3::Ipv4GlobalRouting::RequestIfIndex(), ns3::Ipv4L3Protocol::SendRealOut(), and ns3::Ipv4L3Protocol::SetDown().
bool ns3::Ipv4Route::IsDefault | ( | void | ) | const |
Definition at line 101 of file ipv4-route.cc.
Referenced by ns3::Ipv4StaticRouting::LookupStatic().
bool ns3::Ipv4Route::IsGateway | ( | void | ) | const |
Definition at line 123 of file ipv4-route.cc.
Referenced by ns3::Ipv4L3Protocol::SendRealOut().
bool ns3::Ipv4Route::IsHost | ( | void | ) | const |
Definition at line 79 of file ipv4-route.cc.
References ns3::Ipv4Mask::GetZero(), ns3::Ipv4Mask::IsEqual(), and m_destNetworkMask.
bool ns3::Ipv4Route::IsNetwork | ( | void | ) | const |
Definition at line 96 of file ipv4-route.cc.
Ipv4Address ns3::Ipv4Route::m_dest [private] |
Definition at line 101 of file ipv4-route.h.
Ipv4Mask ns3::Ipv4Route::m_destNetworkMask [private] |
Definition at line 102 of file ipv4-route.h.
Referenced by IsHost().
Ipv4Address ns3::Ipv4Route::m_gateway [private] |
Definition at line 103 of file ipv4-route.h.
uint32_t ns3::Ipv4Route::m_interface [private] |
Definition at line 104 of file ipv4-route.h.