static routing
This commit is contained in:
@@ -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 ()");
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user