[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The public API is very minimal. User scripts include the following:
#include "ns3/global-route-manager.h"
After IP addresses are configured, the following function call will cause all of the nodes that have an Ipv4 interface to receive forwarding tables entered automatically by the GlobalRouteManager:
GlobalRouteManager::PopulateRoutingTables ();
Note: A reminder that the wifi NetDevice is not yet supported (only CSMA and PointToPoint).
It is possible to call this function again in the midst of a simulation using the following additional public function:
GlobalRouteManager::RecomputeRoutingTables ();
which flushes the old tables, queries the nodes for new interface information, and rebuilds the routes.
For instance, this scheduling call will cause the tables to be rebuilt at time 5 seconds:
Simulator::Schedule (Seconds (5),&GlobalRouteManager::RecomputeRoutingTables);
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] |
This document was generated on April, 2 2009 using texi2html 1.78.