ns3::Ipv4StaticRoutingHelper Class Reference

Helper class that adds ns3::Ipv4StaticRouting objects. More...

#include <ipv4-static-routing-helper.h>

Inheritance diagram for ns3::Ipv4StaticRoutingHelper:

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

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual Ptr< Ipv4RoutingProtocol > Create (Ptr< Node > node) const
void SetDefaultMulticastRoute (Ptr< Node > n, Ptr< NetDevice > nd)
 Add a default route to the static routing protocol to forward packets out a particular interface.


Detailed Description

Helper class that adds ns3::Ipv4StaticRouting objects.

This class is expected to be used in conjunction with ns3::InternetStackHelper::SetRoutingHelper


Member Function Documentation

virtual Ptr<Ipv4RoutingProtocol> ns3::Ipv4StaticRoutingHelper::Create ( Ptr< Node node  )  const [virtual]

Parameters:
node the node on which the routing protocol will run
Returns:
a newly-created routing protocol
This method will be called by ns3::InternetStackHelper::Install

Implements ns3::Ipv4RoutingHelper.

void ns3::Ipv4StaticRoutingHelper::SetDefaultMulticastRoute ( Ptr< Node n,
Ptr< NetDevice nd 
)

Add a default route to the static routing protocol to forward packets out a particular interface.

Functionally equivalent to: route add 224.0.0.0 netmask 240.0.0.0 dev nd


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

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