class HelloPacket

Hello packet More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Members


Detailed Description

Hello packet

static const size_t MINIMUM_LENGTH

MINIMUM_LENGTH

static const size_t DESIGNATED_ROUTER_OFFSET

DESIGNATED_ROUTER_OFFSET

static const size_t BACKUP_DESIGNATED_ROUTER_OFFSET

BACKUP_DESIGNATED_ROUTER_OFFSET

static const size_t NETWORK_MASK_OFFSET

NETWORK_MASK_OFFSET

static const size_t HELLO_INTERVAL_V2_OFFSET

HELLO_INTERVAL_V2_OFFSET

static const size_t OPTIONS_V2_OFFSET

OPTIONS_V2_OFFSET

static const size_t ROUTER_PRIORITY_V2_OFFSET

ROUTER_PRIORITY_V2_OFFSET

static const size_t ROUTER_DEAD_INTERVAL_V2_OFFSET

ROUTER_DEAD_INTERVAL_V2_OFFSET

static const size_t INTERFACE_ID_OFFSET

INTERFACE_ID_OFFSET

static const size_t ROUTER_PRIORITY_V3_OFFSET

ROUTER_PRIORITY_V3_OFFSET

static const size_t OPTIONS_V3_OFFSET

OPTIONS_V3_OFFSET

static const size_t HELLO_INTERVAL_V3_OFFSET

HELLO_INTERVAL_V3_OFFSET

static const size_t ROUTER_DEAD_INTERVAL_V3_OFFSET

ROUTER_DEAD_INTERVAL_V3_OFFSET

 HelloPacket (OspfTypes::Version version)

HelloPacket

OspfTypes::Type  get_type ()

get_type

[const]

Reimplemented from Packet.

Packetdecode (uint8_t *ptr, size_t len)
throw(InvalidPacket)

decode

[const]

Reimplemented from Packet.

bool  encode (vector<uint8_t>& pkt)

encode

Encode the packet.

Parameters:

pktvector into which the packet should be placed.

Returns: true if the encoding succeeded.

Reimplemented from Packet.

void  set_network_mask (uint32_t network_mask)

set_network_mask

uint32_t  get_network_mask ()

get_network_mask

[const]

void  set_interface_id (uint32_t interface_id)

set_interface_id

uint32_t  get_interface_id ()

get_interface_id

[const]

void  set_hello_interval (uint16_t hello_interval)

set_hello_interval

uint16_t  get_hello_interval ()

get_hello_interval

[const]

void  set_options (uint32_t options)

set_options

uint32_t  get_options ()

get_options

[const]

void  set_router_priority (uint8_t router_priority)

set_router_priority

uint8_t  get_router_priority ()

get_router_priority

[const]

void  set_router_dead_interval (uint32_t router_dead_interval)

set_router_dead_interval

uint32_t  get_router_dead_interval ()

get_router_dead_interval

[const]

void  set_designated_router (OspfTypes::RouterID dr)

set_designated_router

OspfTypes::RouterID  get_designated_router ()

get_designated_router

[const]

void  set_backup_designated_router (OspfTypes::RouterID bdr)

set_backup_designated_router

OspfTypes::RouterID  get_backup_designated_router ()

get_backup_designated_router

[const]

list<OspfTypes::RouterID>&  get_neighbours ()

get_neighbours

string  str ()

str

[const]

Generate a printable representation of the packet.

Reimplemented from Packet.


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