ns-3
ns3::Ipv4Route Class Reference

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

#include <ipv4-route.h>

Inheritance diagram for ns3::Ipv4Route:
Collaboration diagram for ns3::Ipv4Route:

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

void ns3::Ipv4Route::SetOutputDevice ( Ptr< NetDevice outputDevice)

Equivalent in Linux to dst_entry.dev

Parameters:
outputDevicepointer to NetDevice for outgoing packets

Referenced by ns3::dsdv::RoutingTableEntry::RoutingTableEntry(), and ns3::aodv::RoutingTableEntry::RoutingTableEntry().


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