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++)
iterator in a Buffer instance
void Write(uint8_t const *buffer, uint32_t size)
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 Read(uint8_t *buffer, uint32_t size)
void WriteHtonU16(uint16_t data)
Describes an IPv6 address.
void Serialize(uint8_t buf[16]) const
Serialize this address to a 16-byte buffer.
void Set(char const *address)
Sets an Ipv6Address by parsing the input C-string.
RipNg Routing Table Entry (RTE) - see RFC 2080
uint8_t m_metric
route metric
Ipv6Address m_prefix
prefix
virtual TypeId GetInstanceTypeId(void) const
Return the instance type identifier.
uint8_t m_prefixLen
prefix length
void SetPrefix(Ipv6Address prefix)
Set the prefix.
void SetPrefixLen(uint8_t prefixLen)
Set the prefix length.
void SetRouteMetric(uint8_t routeMetric)
Set the route metric.
virtual uint32_t GetSerializedSize(void) const
Get the serialized size of the packet.
virtual void Serialize(Buffer::Iterator start) const
Serialize the packet.
static TypeId GetTypeId(void)
Get the type ID.
virtual void Print(std::ostream &os) const
uint8_t GetRouteMetric(void) const
Get the route metric.
uint8_t GetPrefixLen(void) const
Get the prefix length.
uint16_t GetRouteTag(void) const
Get the route tag.
virtual uint32_t Deserialize(Buffer::Iterator start)
Deserialize the packet.
void SetRouteTag(uint16_t routeTag)
Set the route tag.
Ipv6Address GetPrefix(void) const
Get the prefix.
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)