32 : m_prefix (
"::"), m_tag (0), m_prefixLen (0), m_metric (16)
40 .SetGroupName (
"Internet")
147 .SetGroupName (
"Internet")
160 for (std::list<RipNgRte>::const_iterator iter =
m_rteList.begin ();
182 for (std::list<RipNgRte>::const_iterator iter =
m_rteList.begin ();
186 i.
Next(iter->GetSerializedSize ());
207 NS_LOG_LOGIC (
"RIP received a message with mismatch version, ignoring.");
213 NS_LOG_LOGIC (
"RIP received a message with invalid filled flags, ignoring.");
218 for (uint8_t
n=0;
n<rteNumber;
n++)
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
uint32_t GetRemainingSize(void) const
void SetPrefix(Ipv6Address prefix)
Set the prefix.
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
uint8_t m_prefixLen
prefix length
virtual TypeId GetInstanceTypeId(void) const
Return the instance type identifier.
uint8_t GetRouteMetric(void) const
Get the route metric.
iterator in a Buffer instance
Ipv6Address m_prefix
prefix
Ipv6Address GetPrefix(void) const
Get the prefix.
uint8_t m_metric
route metric
void WriteU16(uint16_t data)
void WriteHtonU16(uint16_t data)
void Next(void)
go forward by one byte
void SetRouteTag(uint16_t routeTag)
Set the route tag.
static TypeId GetTypeId(void)
Get the type ID.
void Set(char const *address)
Sets an Ipv6Address by parsing the input C-string.
std::ostream & operator<<(std::ostream &os, const Angles &a)
print a struct Angles to output
void SetRouteMetric(uint8_t routeMetric)
Set the route metric.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
void Read(uint8_t *buffer, uint32_t size)
NS_LOG_LOGIC("Net device "<< nd<< " is not bridged")
Describes an IPv6 address.
uint8_t GetPrefixLen(void) const
Get the prefix length.
void WriteU8(uint8_t data)
virtual void Print(std::ostream &os) const
void Write(uint8_t const *buffer, uint32_t size)
uint16_t GetRouteTag(void) const
Get the route tag.
virtual uint32_t GetSerializedSize(void) const
Get the serialized size of the packet.
uint16_t ReadNtohU16(void)
RipNg Routing Table Entry (RTE) - see RFC 2080
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
void Serialize(uint8_t buf[16]) const
Serialize this address to a 16-byte buffer.
void SetPrefixLen(uint8_t prefixLen)
Set the prefix length.