34 m_prefix(
"127.0.0.1"),
35 m_subnetMask(
"0.0.0.0"),
185 .SetGroupName(
"Internet")
226 i.
Next(iter->GetSerializedSize());
248 NS_LOG_LOGIC(
"RIP received a message with mismatch version, ignoring.");
254 NS_LOG_LOGIC(
"RIP received a message with invalid filled flags, ignoring.");
259 for (uint8_t n = 0; n < rteNumber; n++)
iterator in a Buffer instance
uint32_t GetRemainingSize() const
void WriteU8(uint8_t data)
void WriteU16(uint16_t data)
void WriteHtonU16(uint16_t data)
void WriteHtonU32(uint32_t data)
void Next()
go forward by one byte
Ipv4 addresses are stored in host order in this class.
void Set(uint32_t address)
input address is in host order.
uint32_t Get() const
Get the host-order 32-bit IP address.
a class to represent an Ipv4 address mask
void Set(uint32_t mask)
input mask is in host order.
uint16_t GetPrefixLength() const
uint32_t Get() const
Get the host-order 32-bit IP mask.
Rip v2 Routing Table Entry (RTE) - see RFC 2453.
Ipv4Mask GetSubnetMask() const
Get the subnet mask.
void Serialize(Buffer::Iterator start) const override
Serialize the packet.
void SetSubnetMask(Ipv4Mask subnetMask)
Set the subnet mask.
Ipv4Address m_prefix
Advertised prefix.
uint32_t GetSerializedSize() const override
Get the serialized size of the packet.
uint32_t m_metric
Route metric.
Ipv4Mask m_subnetMask
Subnet mask.
void SetRouteMetric(uint32_t routeMetric)
Set the route metric.
uint32_t Deserialize(Buffer::Iterator start) override
Deserialize the packet.
void SetPrefix(Ipv4Address prefix)
Set the prefix.
Ipv4Address GetNextHop() const
Get the next hop.
void Print(std::ostream &os) const override
uint32_t GetRouteMetric() const
Get the route metric.
static TypeId GetTypeId()
Get the type ID.
Ipv4Address GetPrefix() const
Get the prefix.
uint16_t GetRouteTag() const
Get the route tag.
Ipv4Address m_nextHop
Next hop.
void SetRouteTag(uint16_t routeTag)
Set the route tag.
void SetNextHop(Ipv4Address nextHop)
Set the next hop.
TypeId GetInstanceTypeId() const override
Return the instance type identifier.
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)