|
|
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
PacketRouteEntry (const uint8_t* data)
| PacketRouteEntry |
static const size_t SIZE | SIZE |
size_t size ()
| size |
[static]
Get the RIP IPv4 route entry size.
Returns: the RIP IPv4 route entry size.
inline uint16_t addr_family ()
| addr_family |
[const]
inline uint16_t tag ()
| tag |
[const]
inline IPv4 addr ()
| addr |
[const]
inline uint32_t prefix_len ()
| prefix_len |
[const]
inline IPv4Net net ()
| net |
[const]
inline IPv4 nexthop ()
| nexthop |
[const]
inline uint32_t metric ()
| metric |
[const]
inline bool is_table_request ()
| is_table_request |
[const]
Returns: true if route entry has properties of a table request.
inline bool is_auth_entry ()
| is_auth_entry |
[const]
Returns: true if route entry has properties of an authentication entry.
static const uint16_t ADDR_FAMILY | ADDR_FAMILY |
static const uint16_t ADDR_FAMILY_DUMP | ADDR_FAMILY_DUMP |
static const uint16_t ADDR_FAMILY_AUTH | ADDR_FAMILY_AUTH |
static const size_t _af_sizeof | _af_sizeof |
[protected]
static const size_t _tag_sizeof | _tag_sizeof |
[protected]
static const size_t _addr_sizeof | _addr_sizeof |
[protected]
static const size_t _mask_sizeof | _mask_sizeof |
[protected]
static const size_t _nh_sizeof | _nh_sizeof |
[protected]
static const size_t _metric_sizeof | _metric_sizeof |
[protected]
static const size_t _af_offset | _af_offset |
[protected]
static const size_t _tag_offset | _tag_offset |
[protected]
static const size_t _addr_offset | _addr_offset |
[protected]
static const size_t _mask_offset | _mask_offset |
[protected]
static const size_t _nh_offset | _nh_offset |
[protected]
static const size_t _metric_offset | _metric_offset |
[protected]
PacketRouteEntry (const uint8_t* data)
| PacketRouteEntry |
static const size_t SIZE | SIZE |
size_t size ()
| size |
[static]
Get the RIP IPv6 route entry size.
Returns: the RIP IPv6 route entry size.
inline bool is_nexthop ()
| is_nexthop |
[const]
inline bool is_table_request ()
| is_table_request |
[const]
Returns: true if route entry has properties of a table request.
inline IPv6 nexthop ()
| nexthop |
[const]
inline uint16_t tag ()
| tag |
[const]
inline uint32_t prefix_len ()
| prefix_len |
[const]
inline IPv6Net net ()
| net |
[const]
inline uint8_t metric ()
| metric |
[const]
static const uint8_t NEXTHOP_METRIC | NEXTHOP_METRIC |
static const size_t _prefix_sizeof | _prefix_sizeof |
[protected]
static const size_t _tag_sizeof | _tag_sizeof |
[protected]
static const size_t _prefix_len_sizeof | _prefix_len_sizeof |
[protected]
static const size_t _metric_sizeof | _metric_sizeof |
[protected]
static const size_t _prefix_offset | _prefix_offset |
[protected]
static const size_t _tag_offset | _tag_offset |
[protected]
static const size_t _prefix_len_offset | _prefix_len_offset |
[protected]
static const size_t _metric_offset | _metric_offset |
[protected]