class Lsa_header

LSA Header. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Static Methods


Detailed Description

LSA Header. Common header for all LSAs. Never store or pass a pointer, just deal with it inline.

 Lsa_header (OspfTypes::Version version)

Lsa_header

 Lsa_header (const Lsa_header& rhs)

Lsa_header

Lsa_header  operator= (const Lsa_header& rhs)

operator=

void  copy (const Lsa_header& rhs)

copy

size_t  length ()

length

[static]

Returns: the length of an LSA header.

uint16_t  get_lsa_len_from_buffer (uint8_t *ptr)

get_lsa_len_from_buffer

[static]

Get the length of the LSA from the buffer provided

Lsa_header  decode (uint8_t *ptr)
throw(BadPacket)

decode

[const]

Decode a LSA header and return a LSA header inline not a pointer.

void  decode_inline (uint8_t *ptr)
throw(BadPacket)

decode_inline

Decode this lsa header in this context.

size_t  copy_out (uint8_t *to_uint8)

copy_out

[const]

Copy a wire format representation to the pointer provided.

Returns: the number of bytes written.

OspfTypes::Version  get_version ()

get_version

[const]

void  set_ls_age (uint16_t ls_age)

set_ls_age

uint16_t  get_ls_age ()

get_ls_age

[const]

void  set_options (uint8_t options)

set_options

uint8_t  get_options ()

get_options

[const]

void  set_ls_type (uint16_t ls_type)

set_ls_type

uint16_t  get_ls_type ()

get_ls_type

[const]

void  set_link_state_id (uint32_t link_state_id)

set_link_state_id

uint32_t  get_link_state_id ()

get_link_state_id

[const]

void  set_advertising_router (uint32_t advertising_router)

set_advertising_router

uint32_t  get_advertising_router ()

get_advertising_router

[const]

void  set_ls_sequence_number (int32_t ls_sequence_number)

set_ls_sequence_number

int32_t  get_ls_sequence_number ()

get_ls_sequence_number

[const]

void  set_ls_checksum (uint16_t ls_checksum)

set_ls_checksum

uint16_t  get_ls_checksum ()

get_ls_checksum

[const]

void  set_length (uint16_t length)

set_length

uint16_t  get_length ()

get_length

[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 $.