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++)
iterator in a Buffer instance
uint16_t ReadNtohU16(void)
void WriteU8(uint8_t data)
uint32_t GetRemainingSize(void) const
void Next(void)
go forward by one byte
void WriteU16(uint16_t data)
void WriteHtonU16(uint16_t data)
void WriteHtonU32(uint32_t data)
uint32_t ReadNtohU32(void)
Ipv4 addresses are stored in host order in this class.
uint32_t Get(void) const
Get the host-order 32-bit IP address.
void Set(uint32_t address)
input address is in host order.
a class to represent an Ipv4 address mask
void Set(uint32_t mask)
input mask is in host order.
uint16_t GetPrefixLength(void) const
uint32_t Get(void) const
Get the host-order 32-bit IP mask.
Rip v2 Routing Table Entry (RTE) - see RFC 2453.
void SetSubnetMask(Ipv4Mask subnetMask)
Set the subnet mask.
Ipv4Address GetNextHop(void) const
Get the next hop.
Ipv4Address m_prefix
Advertised prefix.
uint32_t m_metric
Route metric.
Ipv4Mask m_subnetMask
Subnet mask.
void SetRouteMetric(uint32_t routeMetric)
Set the route metric.
Ipv4Address GetPrefix(void) const
Get the prefix.
void SetPrefix(Ipv4Address prefix)
Set the prefix.
uint16_t GetRouteTag(void) const
Get the route tag.
Ipv4Mask GetSubnetMask(void) const
Get the subnet mask.
virtual TypeId GetInstanceTypeId(void) const
Return the instance type identifier.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
uint32_t GetRouteMetric(void) const
Get the route metric.
virtual uint32_t GetSerializedSize(void) const
Get the serialized size of the packet.
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
Ipv4Address m_nextHop
Next hop.
void SetRouteTag(uint16_t routeTag)
Set the route tag.
static TypeId GetTypeId(void)
Get the type ID.
void SetNextHop(Ipv4Address nextHop)
Set the next hop.
virtual void Print(std::ostream &os) const
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)