xorp

PlaintextPacketRouteEntry4 Class Reference

Route Entry for Plaintext password. More...

#include <packets.hh>

Inheritance diagram for PlaintextPacketRouteEntry4:
PlaintextPacketRouteEntry4Writer

List of all members.

Public Member Functions

 PlaintextPacketRouteEntry4 (const uint8_t *data)
uint16_t addr_family () const
uint16_t auth_type () const
string password () const

Static Public Member Functions

static size_t size ()
 Get the RIP IPv4 plaintext password route entry size.

Static Public Attributes

static const size_t SIZE = 20
static const uint16_t ADDR_FAMILY = 0xffff
static const uint16_t AUTH_TYPE = 2

Static Protected Attributes

static const size_t _af_sizeof = 2
static const size_t _auth_sizeof = 2
static const size_t _pw_sizeof = 16
static const size_t _af_offset = 0
static const size_t _auth_offset = _af_offset + _af_sizeof
static const size_t _pw_offset = _auth_offset + _auth_sizeof

Private Attributes

const uint8_t * _data
const uint8_t * _af
const uint8_t * _auth
const uint8_t * _pw

Detailed Description

Route Entry for Plaintext password.

The PlaintextPacketRouteEntry4 may appear as the first route entry in a RIPv2 packet. It has the same size as an PacketRouteEntry<IPv4>. The address family has the special value 0xffff which implies authentication. The authentication type is overlaid in the route tag field and takes the special value 2.

All items in the route entry are stored in network order. The accessor methods provide values in host order, and the modifiers take arguments in host order.

The plaintext authentication entry has the following content:

af (2 bytes): // The address family auth (2 bytes): // Authentication type pw (16 bytes): // Password


Member Function Documentation

static size_t PlaintextPacketRouteEntry4::size ( ) [inline, static]

Get the RIP IPv4 plaintext password route entry size.

Returns:
the RIP IPv4 plaintext password route entry size.

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