class RouterLink

Defines a link/interface, carried in a RouterLsa. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Types

Public Methods


Detailed Description

Defines a link/interface, carried in a RouterLsa.

enum Type { p2p = 1, transit = 2, stub = 3, vlink = 4 }

Type

 RouterLink (OspfTypes::Version version)

RouterLink

 RouterLink (const RouterLink& rhs)

RouterLink

RouterLink  operator= (const RouterLink& rhs)

operator=

void  copy (const RouterLink& rhs)

copy

bool  operator== (const RouterLink& rhs)

operator==

size_t  length ()

length

[const]

Returns: the number of bytes the encoded data will occupy.

RouterLink  decode (uint8_t *ptr, size_t& len)
throw(BadPacket)

decode

[const]

Decode a RouterLink.

Parameters:

bufpointer to buffer.
lenlength of the buffer on input set to the number of bytes consumed on output.

Returns: A RouterLink.

size_t  copy_out (uint8_t *to_uint8)

copy_out

[const]

Copy a wire format representation to the pointer provided.

length() should be called by the caller to verify enough space is available.

Returns: the number of bytes written.

OspfTypes::Version  get_version ()

get_version

[const]

void  set_type (Type t)

set_type

Type  get_type ()

get_type

[const]

void  set_metric (uint16_t metric)

set_metric

uint16_t  get_metric ()

get_metric

[const]

void  set_link_id (uint32_t link_id)

set_link_id

uint32_t  get_link_id ()

get_link_id

[const]

void  set_link_data (uint32_t link_data)

set_link_data

uint32_t  get_link_data ()

get_link_data

[const]

void  set_interface_id (uint32_t interface_id)

set_interface_id

uint32_t  get_interface_id ()

get_interface_id

[const]

void  set_neighbour_interface_id (uint32_t neighbour_interface_id)

set_neighbour_interface_id

uint32_t  get_neighbour_interface_id ()

get_neighbour_interface_id

[const]

void  set_neighbour_router_id (uint32_t neighbour_router_id)

set_neighbour_router_id

uint32_t  get_neighbour_router_id ()

get_neighbour_router_id

[const]

string  str ()

str

[const]

Generate a printable representation of the header.


Generated by: pavlin on possum.icir.org on Thu Mar 9 04:43:44 2006, using kdoc $.