xorp

Ls_request Class Reference

Link State Request as sent in a Link State Request Packet. More...

#include <lsa.hh>

List of all members.

Public Member Functions

 Ls_request (OspfTypes::Version version)
 Ls_request (OspfTypes::Version version, uint32_t ls_type, uint32_t link_state_id, uint32_t advertising_router)
 Ls_request (const Ls_request &rhs)
Ls_request operator= (const Ls_request &rhs)
void copy (const Ls_request &rhs)
Ls_request decode (uint8_t *ptr) throw (InvalidPacket)
 Decode a Link State Request and return value inline not a pointer.
size_t copy_out (uint8_t *to_uint8) const
 Copy a wire format representation to the pointer provided.
OspfTypes::Version get_version () const
void set_ls_type (uint32_t ls_type)
uint32_t get_ls_type () const
void set_link_state_id (uint32_t link_state_id)
uint32_t get_link_state_id () const
void set_advertising_router (uint32_t advertising_router)
uint32_t get_advertising_router () const
string str () const
 Generate a printable representation of the request.

Static Public Member Functions

static size_t length ()

Private Attributes

OspfTypes::Version _version
uint32_t _ls_type
uint32_t _link_state_id
uint32_t _advertising_router

Detailed Description

Link State Request as sent in a Link State Request Packet.

Never store or pass a pointer, just deal with it inline.


Member Function Documentation

size_t Ls_request::copy_out ( uint8_t *  to_uint8) const

Copy a wire format representation to the pointer provided.

A link state request is a fixed length, the caller should have allocated enough space by calling the length() method.

Returns:
the number of bytes written.
Ls_request Ls_request::decode ( uint8_t *  ptr) throw (InvalidPacket)

Decode a Link State Request and return value inline not a pointer.

A link state request is a fixed length, the caller should have allocated enough space by calling the length() method.

static size_t Ls_request::length ( ) [inline, static]
Returns:
the length of an link state request header.

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