Rip Routing Table Entry. More...
#include "rip.h"
Inheritance diagram for ns3::RipRoutingTableEntry:
Collaboration diagram for ns3::RipRoutingTableEntry:Public Types | |
| enum | Status_e { RIP_VALID , RIP_INVALID } |
| Route status. More... | |
Public Member Functions | |
| RipRoutingTableEntry () | |
| RipRoutingTableEntry (Ipv4Address network, Ipv4Mask networkPrefix, Ipv4Address nextHop, uint32_t interface) | |
| Constructor. | |
| RipRoutingTableEntry (Ipv4Address network, Ipv4Mask networkPrefix, uint32_t interface) | |
| Constructor. | |
| virtual | ~RipRoutingTableEntry () |
| uint8_t | GetRouteMetric () const |
| Get the route metric. | |
| Status_e | GetRouteStatus () const |
| Get the route status. | |
| uint16_t | GetRouteTag () const |
| Get the route tag. | |
| bool | IsRouteChanged () const |
| Get the route changed status. | |
| void | SetRouteChanged (bool changed) |
| Set the route as changed. | |
| void | SetRouteMetric (uint8_t routeMetric) |
| Set the route metric. | |
| void | SetRouteStatus (Status_e status) |
| Set the route status. | |
| void | SetRouteTag (uint16_t routeTag) |
| Set the route tag. | |
Public Member Functions inherited from ns3::Ipv4RoutingTableEntry | |
| Ipv4RoutingTableEntry () | |
| This constructor does nothing. | |
| Ipv4RoutingTableEntry (const Ipv4RoutingTableEntry &route) | |
| Copy Constructor. | |
| Ipv4RoutingTableEntry (const Ipv4RoutingTableEntry *route) | |
| Copy Constructor. | |
| Ipv4Address | GetDest () const |
| Ipv4Address | GetDestNetwork () const |
| Ipv4Mask | GetDestNetworkMask () const |
| Ipv4Address | GetGateway () const |
| uint32_t | GetInterface () const |
| bool | IsDefault () const |
| bool | IsGateway () const |
| bool | IsHost () const |
| bool | IsNetwork () const |
Private Attributes | |
| bool | m_changed |
| route has been updated | |
| uint8_t | m_metric |
| route metric | |
| Status_e | m_status |
| route status | |
| uint16_t | m_tag |
| route tag | |
Additional Inherited Members | |
Static Public Member Functions inherited from ns3::Ipv4RoutingTableEntry | |
| 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) |
| ns3::RipRoutingTableEntry::RipRoutingTableEntry | ( | ) |
| ns3::RipRoutingTableEntry::RipRoutingTableEntry | ( | Ipv4Address | network, |
| Ipv4Mask | networkPrefix, | ||
| Ipv4Address | nextHop, | ||
| uint32_t | interface ) |
Constructor.
| network | network address |
| networkPrefix | network prefix |
| nextHop | next hop address to route the packet |
| interface | interface index |
Definition at line 1403 of file rip.cc.
References ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry(), ns3::Ipv4RoutingTableEntry::CreateNetworkRouteTo(), m_changed, m_metric, m_status, m_tag, and RIP_INVALID.
Here is the call graph for this function:| ns3::RipRoutingTableEntry::RipRoutingTableEntry | ( | Ipv4Address | network, |
| Ipv4Mask | networkPrefix, | ||
| uint32_t | interface ) |
Constructor.
| network | network address |
| networkPrefix | network prefix |
| interface | interface index |
Definition at line 1416 of file rip.cc.
References ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry(), ns3::Ipv4RoutingTableEntry::CreateNetworkRouteTo(), m_changed, m_metric, m_status, m_tag, and RIP_INVALID.
Here is the call graph for this function:
|
virtual |
| uint8_t ns3::RipRoutingTableEntry::GetRouteMetric | ( | ) | const |
Get the route metric.
Definition at line 1459 of file rip.cc.
References m_metric.
Referenced by ns3::operator<<(), and ns3::Rip::PrintRoutingTable().
Here is the caller graph for this function:| RipRoutingTableEntry::Status_e ns3::RipRoutingTableEntry::GetRouteStatus | ( | ) | const |
Get the route status.
Definition at line 1475 of file rip.cc.
References m_status.
Referenced by ns3::Rip::Lookup(), and ns3::Rip::PrintRoutingTable().
Here is the caller graph for this function:| uint16_t ns3::RipRoutingTableEntry::GetRouteTag | ( | ) | const |
Get the route tag.
Definition at line 1443 of file rip.cc.
References m_tag.
Referenced by ns3::operator<<().
Here is the caller graph for this function:| bool ns3::RipRoutingTableEntry::IsRouteChanged | ( | ) | const |
| void ns3::RipRoutingTableEntry::SetRouteChanged | ( | bool | changed | ) |
Set the route as changed.
The changed routes are scheduled for a Triggered Update. After a Triggered Update, all the changed flags are cleared from the routing table.
| changed | true if route is changed |
Definition at line 1481 of file rip.cc.
References m_changed.
Referenced by ns3::Rip::InvalidateRoute().
Here is the caller graph for this function:| void ns3::RipRoutingTableEntry::SetRouteMetric | ( | uint8_t | routeMetric | ) |
Set the route metric.
| routeMetric | the route metric |
Definition at line 1449 of file rip.cc.
References m_changed, and m_metric.
Referenced by ns3::Rip::InvalidateRoute().
Here is the caller graph for this function:| void ns3::RipRoutingTableEntry::SetRouteStatus | ( | Status_e | status | ) |
Set the route status.
| status | the route status |
Definition at line 1465 of file rip.cc.
References m_changed, and m_status.
Referenced by ns3::Rip::InvalidateRoute().
Here is the caller graph for this function:| void ns3::RipRoutingTableEntry::SetRouteTag | ( | uint16_t | routeTag | ) |
|
private |
route has been updated
Definition at line 147 of file rip.h.
Referenced by RipRoutingTableEntry(), RipRoutingTableEntry(), RipRoutingTableEntry(), IsRouteChanged(), SetRouteChanged(), SetRouteMetric(), SetRouteStatus(), and SetRouteTag().
|
private |
route metric
Definition at line 145 of file rip.h.
Referenced by RipRoutingTableEntry(), RipRoutingTableEntry(), RipRoutingTableEntry(), GetRouteMetric(), and SetRouteMetric().
|
private |
route status
Definition at line 146 of file rip.h.
Referenced by RipRoutingTableEntry(), RipRoutingTableEntry(), RipRoutingTableEntry(), GetRouteStatus(), and SetRouteStatus().
|
private |
route tag
Definition at line 144 of file rip.h.
Referenced by RipRoutingTableEntry(), RipRoutingTableEntry(), RipRoutingTableEntry(), GetRouteTag(), and SetRouteTag().