34 .SetGroupName(
"Internet")
156 .SetGroupName(
"Internet")
197 i.Next(
iter->GetSerializedSize());
219 NS_LOG_LOGIC(
"RIP received a message with mismatch version, ignoring.");
223 if (
i.ReadU16() != 0)
225 NS_LOG_LOGIC(
"RIP received a message with invalid filled flags, ignoring.");
229 uint8_t
rteNumber =
i.GetRemainingSize() / 20;
233 i.Next(
rte.Deserialize(
i));
iterator in a Buffer instance
Describes an IPv6 address.
void Print(std::ostream &os) const
Print this address to the given output stream.
void Set(const char *address)
Sets an Ipv6Address by parsing the input C-string.
void Serialize(uint8_t buf[16]) const
Serialize this address to a 16-byte buffer.
RipNg Routing Table Entry (RTE) - see RFC 2080
static TypeId GetTypeId()
Get the type ID.
uint8_t m_metric
route metric
Ipv6Address m_prefix
prefix
Ipv6Address GetPrefix() const
Get the prefix.
uint8_t GetRouteMetric() const
Get the route metric.
uint8_t GetPrefixLen() const
Get the prefix length.
uint16_t GetRouteTag() const
Get the route tag.
uint8_t m_prefixLen
prefix length
void SetPrefix(Ipv6Address prefix)
Set the prefix.
void Print(std::ostream &os) const override
void Serialize(Buffer::Iterator start) const override
Serialize the packet.
void SetPrefixLen(uint8_t prefixLen)
Set the prefix length.
uint32_t Deserialize(Buffer::Iterator start) override
Deserialize the packet.
void SetRouteMetric(uint8_t routeMetric)
Set the route metric.
TypeId GetInstanceTypeId() const override
Return the instance type identifier.
uint32_t GetSerializedSize() const override
Get the serialized size of the packet.
void SetRouteTag(uint16_t routeTag)
Set the route tag.
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.
Ptr< T > Create(Ts &&... args)
Create class instances by constructors with varying numbers of arguments and return them by Ptr.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
std::ostream & operator<<(std::ostream &os, const Angles &a)