ns3::Ipv4RoutingTableEntry Class Reference
[Ipv4 Routing]

#include <ipv4-routing-table-entry.h>

Collaboration diagram for ns3::Ipv4RoutingTableEntry:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Ipv4RoutingTableEntry ()
 This constructor does nothing.
 Ipv4RoutingTableEntry (Ipv4RoutingTableEntry const &route)
 Copy Constructor.
 Ipv4RoutingTableEntry (Ipv4RoutingTableEntry const *route)
 Copy Constructor.
bool IsHost (void) const
bool IsNetwork (void) const
bool IsDefault (void) const
bool IsGateway (void) const
Ipv4Address GetGateway (void) const
Ipv4Address GetDest (void) const
Ipv4Address GetDestNetwork (void) const
Ipv4Mask GetDestNetworkMask (void) const
uint32_t GetInterface (void) const

Static Public Member Functions

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)
static Ipv4RoutingTableEntry CreateDefaultRoute (Ipv4Address nextHop, uint32_t interface)


Detailed Description

A record of an IPv4 routing table entry for Ipv4GlobalRouting and Ipv4StaticRouting. This is not a reference counted object.

Constructor & Destructor Documentation

ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry ( Ipv4RoutingTableEntry const &  route  ) 

Copy Constructor.

Parameters:
route The route to copy

ns3::Ipv4RoutingTableEntry::Ipv4RoutingTableEntry ( Ipv4RoutingTableEntry const *  route  ) 

Copy Constructor.

Parameters:
route The route to copy


Member Function Documentation

static Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateDefaultRoute ( Ipv4Address  nextHop,
uint32_t  interface 
) [static]

Returns:
An Ipv4RoutingTableEntry object corresponding to the input parameters. This route is distinguished; it will match any destination for which a more specific route does not exist.
Parameters:
nextHop Ipv4Address of the next hop
interface Outgoing interface

static Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateHostRouteTo ( Ipv4Address  dest,
uint32_t  interface 
) [static]

Returns:
An Ipv4RoutingTableEntry object corresponding to the input parameters.
Parameters:
dest Ipv4Address of the destination
interface Outgoing interface

static Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateHostRouteTo ( Ipv4Address  dest,
Ipv4Address  nextHop,
uint32_t  interface 
) [static]

Returns:
An Ipv4RoutingTableEntry object corresponding to the input parameters.
Parameters:
dest Ipv4Address of the destination
nextHop Ipv4Address of the next hop
interface Outgoing interface

static Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateNetworkRouteTo ( Ipv4Address  network,
Ipv4Mask  networkMask,
uint32_t  interface 
) [static]

Returns:
An Ipv4RoutingTableEntry object corresponding to the input parameters.
Parameters:
network Ipv4Address of the destination network
networkMask Ipv4Mask of the destination network mask
interface Outgoing interface

static Ipv4RoutingTableEntry ns3::Ipv4RoutingTableEntry::CreateNetworkRouteTo ( Ipv4Address  network,
Ipv4Mask  networkMask,
Ipv4Address  nextHop,
uint32_t  interface 
) [static]

Returns:
An Ipv4RoutingTableEntry object corresponding to the input parameters.
Parameters:
network Ipv4Address of the destination network
networkMask Ipv4Mask of the destination network mask
nextHop Ipv4Address of the next hop
interface Outgoing interface

Ipv4Address ns3::Ipv4RoutingTableEntry::GetDest ( void   )  const

Returns:
The IPv4 address of the destination of this route

Ipv4Address ns3::Ipv4RoutingTableEntry::GetDestNetwork ( void   )  const

Returns:
The IPv4 network number of the destination of this route

Ipv4Mask ns3::Ipv4RoutingTableEntry::GetDestNetworkMask ( void   )  const

Returns:
The IPv4 network mask of the destination of this route

Ipv4Address ns3::Ipv4RoutingTableEntry::GetGateway ( void   )  const

Returns:
address of the gateway stored in this entry

uint32_t ns3::Ipv4RoutingTableEntry::GetInterface ( void   )  const

Returns:
The Ipv4 interface number used for sending outgoing packets

bool ns3::Ipv4RoutingTableEntry::IsDefault ( void   )  const

Returns:
True if this route is a default route; false otherwise

bool ns3::Ipv4RoutingTableEntry::IsGateway ( void   )  const

Returns:
True if this route is a gateway route; false otherwise

bool ns3::Ipv4RoutingTableEntry::IsHost ( void   )  const

Returns:
True if this route is a host route; false otherwise

bool ns3::Ipv4RoutingTableEntry::IsNetwork ( void   )  const

Returns:
The IPv4 address of the destination of this route


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

Generated on Fri Apr 9 15:01:11 2010 for NS-3 by  doxygen 1.5.8