static routing

This commit is contained in:
Craig Dowell
2007-07-06 15:05:47 -07:00
parent 2f5acd74d9
commit d0ff4c3306
2 changed files with 5 additions and 2 deletions

View File

@@ -15,6 +15,7 @@
*/
#include "ns3/debug.h"
#include "ns3/internet-node.h"
#include "static-router.h"
NS_DEBUG_COMPONENT_DEFINE ("StaticRouter");
@@ -24,7 +25,8 @@ namespace ns3 {
const InterfaceId StaticRouter::iid =
MakeInterfaceId ("StaticRouter", Object::iid);
StaticRouter::StaticRouter ()
StaticRouter::StaticRouter (Ptr<Node> node)
: m_node(node)
{
SetInterfaceId (StaticRouter::iid);
NS_DEBUG("StaticRouter::StaticRouter ()");

View File

@@ -17,6 +17,7 @@
#define STATIC_ROUTER_H
#include <stdint.h>
#include <list>
#include "ns3/object.h"
#include "ns3/ptr.h"
#include "ns3/ipv4-address.h"
@@ -54,7 +55,7 @@ public:
} m_linkType;
uint32_t m_metric;
}
};
/**
* \brief a Link State Advertisement (LSA) for a router, used in static routing