class RipPacketHeader

Header appearing at the start of each RIP packet. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Static Methods

Public Members

Protected Members


Detailed Description

The RIP packet header has the following content:

command (1 byte): // The command: 1 - request, 2 - response version (1 byte): // 1 - IPv4 RIPv1/IPv6 RIPng, 2 - IPv4 RIP v2 unused0 (1 byte): // Unused unused1 (1 byte): // Unused

 RipPacketHeader (const uint8_t* data)

RipPacketHeader

static const uint8_t REQUEST

REQUEST

static const uint8_t RESPONSE

RESPONSE

static const uint8_t IPv4_VERSION

IPv4_VERSION

static const uint8_t IPv6_VERSION

IPv6_VERSION

static const size_t SIZE

SIZE

size_t  size ()

size

[static]

Get the RIP packet header size.

Returns: the RIP packet header size.

uint8_t  command ()

command

[const]

uint8_t  version ()

version

[const]

uint8_t  unused0 ()

unused0

[const]

uint8_t  unused1 ()

unused1

[const]

bool  valid_command ()

valid_command

[const]

bool  valid_version (uint8_t v)

valid_version

[const]

bool  valid_padding ()

valid_padding

[const]

static const size_t _command_sizeof

_command_sizeof

[protected]

static const size_t _version_sizeof

_version_sizeof

[protected]

static const size_t _unused0_sizeof

_unused0_sizeof

[protected]

static const size_t _unused1_sizeof

_unused1_sizeof

[protected]

static const size_t _command_offset

_command_offset

[protected]

static const size_t _version_offset

_version_offset

[protected]

static const size_t _unused0_offset

_unused0_offset

[protected]

static const size_t _unused1_offset

_unused1_offset

[protected]


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:11:10 2009, using kdoc 2.0a54+XORP.