xorp

MD5PacketTrailer Class Reference

Container for MD5 trailer. More...

#include <packets.hh>

Inheritance diagram for MD5PacketTrailer:
MD5PacketTrailerWriter

List of all members.

Public Member Functions

 MD5PacketTrailer (const uint8_t *data)
uint16_t addr_family () const
const uint8_t * auth_data () const
uint32_t auth_data_bytes () const
uint32_t auth_data_offset () const
bool valid () const

Static Public Member Functions

static size_t size ()
 Get the RIP IPv4 MD5 authentication trailer size.

Static Public Attributes

static const size_t SIZE = 20

Static Protected Attributes

static const size_t _af_sizeof = 2
static const size_t _one_sizeof = 2
static const size_t _auth_data_sizeof = 16
static const size_t _af_offset = 0
static const size_t _one_offset = _af_offset + _af_sizeof
static const size_t _auth_data_offset = _one_offset + _one_sizeof

Private Attributes

const uint8_t * _data
const uint8_t * _af
const uint8_t * _one
const uint8_t * _auth_data

Detailed Description

Container for MD5 trailer.

THE MD5 authentication trailer has the following content:

af (2 bytes): // 0xffff - Authentication header one (2 bytes): // 0x01 - RFC2082 defined auth_data (16 bytes); // 16 bytes of data


Member Function Documentation

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

Get the RIP IPv4 MD5 authentication trailer size.

Returns:
the RIP IPv4 MD5 authentication trailer size.

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