xorp

PacketRouteEntry< IPv6 > Class Template Reference

Route Entry appearing in RIP packets on IPv6. More...

#include <packets.hh>

Inheritance diagram for PacketRouteEntry< IPv6 >:
PacketRouteEntryWriter< IPv6 >

List of all members.

Public Member Functions

 PacketRouteEntry (const uint8_t *data)
bool is_nexthop () const
bool is_table_request () const
IPv6 nexthop () const
uint16_t tag () const
uint32_t prefix_len () const
IPv6Net net () const
uint8_t metric () const

Static Public Member Functions

static size_t size ()
 Get the RIP IPv6 route entry size.

Static Public Attributes

static const size_t SIZE = 20
static const uint8_t NEXTHOP_METRIC = 0xff

Static Protected Attributes

static const size_t _prefix_sizeof = 16
static const size_t _tag_sizeof = 2
static const size_t _prefix_len_sizeof = 1
static const size_t _metric_sizeof = 1
static const size_t _prefix_offset = 0
static const size_t _tag_offset = _prefix_offset + _prefix_sizeof
static const size_t _prefix_len_offset = _tag_offset + _tag_sizeof
static const size_t _metric_offset = _prefix_len_offset + _prefix_len_sizeof

Private Attributes

const uint8_t * _data
const uint8_t * _prefix
const uint8_t * _tag
const uint8_t * _prefix_len
const uint8_t * _metric

Detailed Description

template<>
class PacketRouteEntry< IPv6 >

Route Entry appearing in RIP packets on IPv6.

This payload is carried in RIP packets on IPv6. The interpretation of the fields is defined in RFC2080.

All fields in this structure are stored in network order.

The route entry has the following content:

prefix (16 bytes): // Prefix tag (2 bytes): // Tag prefix_len (1 byte): // Prefix length metric (1 byte): // Metric


Member Function Documentation

bool PacketRouteEntry< IPv6 >::is_table_request ( ) const [inline]
Returns:
true if route entry has properties of a table request.
static size_t PacketRouteEntry< IPv6 >::size ( ) [inline, static]

Get the RIP IPv6 route entry size.

Returns:
the RIP IPv6 route entry size.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations