Public Member Functions

ns3::Ipv4Route Class Reference
[Ipv4RoutingProtocol]

Ipv4 route cache entry (similar to Linux struct rtable). More...

#include <ipv4-route.h>

Inheritance diagram for ns3::Ipv4Route:
Inheritance graph
[legend]
Collaboration diagram for ns3::Ipv4Route:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void SetDestination (Ipv4Address dest)
Ipv4Address GetDestination (void) const
void SetSource (Ipv4Address src)
Ipv4Address GetSource (void) const
void SetGateway (Ipv4Address gw)
Ipv4Address GetGateway (void) const
void SetOutputDevice (Ptr< NetDevice > outputDevice)
Ptr< NetDeviceGetOutputDevice (void) const

Detailed Description

Ipv4 route cache entry (similar to Linux struct rtable).

This is a reference counted object. In the future, we will add other entries from struct dst_entry, struct rtable, and struct dst_ops as needed.


Member Function Documentation

Ipv4Address ns3::Ipv4Route::GetDestination ( void   )  const
Returns:
Destination Ipv4Address of the route
Ipv4Address ns3::Ipv4Route::GetGateway ( void   )  const
Returns:
Ipv4Address of the gateway (next hop)
Ptr<NetDevice> ns3::Ipv4Route::GetOutputDevice ( void   )  const
Returns:
pointer to NetDevice for outgoing packets
Ipv4Address ns3::Ipv4Route::GetSource ( void   )  const
Returns:
Source Ipv4Address of the route
void ns3::Ipv4Route::SetDestination ( Ipv4Address  dest  ) 
Parameters:
dest Destination Ipv4Address
void ns3::Ipv4Route::SetGateway ( Ipv4Address  gw  ) 
Parameters:
gw Gateway (next hop) Ipv4Address
void ns3::Ipv4Route::SetOutputDevice ( Ptr< NetDevice outputDevice  ) 

Equivalent in Linux to dst_entry.dev

Parameters:
outputDevice pointer to NetDevice for outgoing packets
void ns3::Ipv4Route::SetSource ( Ipv4Address  src  ) 
Parameters:
src Source Ipv4Address

The documentation for this class was generated from the following file: