#include <ipv4-route.h>
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< NetDevice > | GetOutputDevice (void) const |
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.
Ipv4Address ns3::Ipv4Route::GetDestination | ( | void | ) | const |
Ipv4Address ns3::Ipv4Route::GetGateway | ( | void | ) | const |
Ipv4Address ns3::Ipv4Route::GetSource | ( | void | ) | const |
void ns3::Ipv4Route::SetDestination | ( | Ipv4Address | dest | ) |
dest | Destination Ipv4Address |
void ns3::Ipv4Route::SetGateway | ( | Ipv4Address | gw | ) |
gw | Gateway (next hop) Ipv4Address |
Equivalent in Linux to dst_entry.dev
outputDevice | pointer to NetDevice for outgoing packets |
void ns3::Ipv4Route::SetSource | ( | Ipv4Address | src | ) |
src | Source Ipv4Address |