A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ipv4-routing-protocol.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2009 University of Washington
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 */
6
8
9#include "ns3/assert.h"
10#include "ns3/log.h"
11
12namespace ns3
13{
14
15NS_LOG_COMPONENT_DEFINE("Ipv4RoutingProtocol");
16
17NS_OBJECT_ENSURE_REGISTERED(Ipv4RoutingProtocol);
18
19TypeId
21{
22 static TypeId tid =
23 TypeId("ns3::Ipv4RoutingProtocol").SetParent<Object>().SetGroupName("Internet");
24 return tid;
25}
26
27} // namespace ns3
static TypeId GetTypeId()
Get the type ID.
A base class which provides memory management and object aggregation.
Definition object.h:78
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition log.h:191
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.