|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
33 : m_tag (0), m_prefix (
"127.0.0.1"), m_subnetMask (
"0.0.0.0"), m_nextHop (
"0.0.0.0"), m_metric (16)
41 .SetGroupName (
"Internet")
42 .AddConstructor<
RipRte> ();
166 .SetGroupName (
"Internet")
179 for (std::list<RipRte>::const_iterator iter =
m_rteList.begin ();
201 for (std::list<RipRte>::const_iterator iter =
m_rteList.begin ();
205 i.
Next(iter->GetSerializedSize ());
226 NS_LOG_LOGIC (
"RIP received a message with mismatch version, ignoring.");
232 NS_LOG_LOGIC (
"RIP received a message with invalid filled flags, ignoring.");
237 for (uint8_t
n=0;
n<rteNumber;
n++)
a unique identifier for an interface.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
uint16_t GetRouteTag(void) const
Get the route tag.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ipv4Mask m_subnetMask
Subnet mask.
void SetSubnetMask(Ipv4Mask subnetMask)
Set the subnet mask.
uint32_t Get(void) const
Get the host-order 32-bit IP mask.
uint16_t ReadNtohU16(void)
void Set(uint32_t address)
input address is in host order.
void WriteU8(uint8_t data)
uint32_t Get(void) const
Get the host-order 32-bit IP address.
Ipv4 addresses are stored in host order in this class.
void WriteU16(uint16_t data)
uint32_t m_metric
Route metric.
void Next(void)
go forward by one byte
TypeId SetParent(TypeId tid)
Set the parent TypeId.
void WriteHtonU16(uint16_t data)
Ipv4Address m_nextHop
Next hop.
uint32_t GetRemainingSize(void) const
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
virtual uint32_t GetSerializedSize(void) const
Get the serialized size of the packet.
void SetPrefix(Ipv4Address prefix)
Set the prefix.
virtual TypeId GetInstanceTypeId(void) const
Return the instance type identifier.
Ipv4Address GetNextHop(void) const
Get the next hop.
uint32_t GetRouteMetric(void) const
Get the route metric.
uint16_t GetPrefixLength(void) const
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Rip v2 Routing Table Entry (RTE) - see RFC 2453.
iterator in a Buffer instance
virtual void Print(std::ostream &os) const
Ipv4Address m_prefix
Advertised prefix.
static TypeId GetTypeId(void)
Get the type ID.
void SetRouteMetric(uint32_t routeMetric)
Set the route metric.
Ipv4Address GetPrefix(void) const
Get the prefix.
a class to represent an Ipv4 address mask
void Set(uint32_t mask)
input mask is in host order.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
Ipv4Mask GetSubnetMask(void) const
Get the subnet mask.
void SetRouteTag(uint16_t routeTag)
Set the route tag.
void SetNextHop(Ipv4Address nextHop)
Set the next hop.
std::ostream & operator<<(std::ostream &os, const Angles &a)
uint32_t ReadNtohU32(void)
void WriteHtonU32(uint32_t data)