class IPv6Prefix

RFC 2470 A. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Public Static Methods

Public Members


Detailed Description

RFC 2470 A.4.1 IPv6 Prefix Representation OSPFv3 only

static const uint8_t NU_bit

NU_bit

static const uint8_t LA_bit

LA_bit

static const uint8_t MC_bit

MC_bit

static const uint8_t P_bit

P_bit

static const uint8_t DN_bit

DN_bit

 IPv6Prefix (OspfTypes::Version version, bool use_metric = false)

IPv6Prefix

 IPv6Prefix (const IPv6Prefix& rhs)

IPv6Prefix

IPv6Prefix  operator= (const IPv6Prefix& rhs)

operator=

void  copy (const IPv6Prefix& rhs)

copy

size_t  length ()

length

[const]

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

IPv6Prefix  decode (uint8_t *ptr, size_t& len, uint8_t prefixlen, uint8_t option)
throw(InvalidPacket)

decode

[const]

Decode a IPv6Prefix.

Parameters:

bufpointer to buffer.
lenlength of the buffer on input set to the number of bytes consumed on output.
prefixlenprefix length
optionprefix option

Returns: A IPv6Prefix.

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.

size_t  bytes_per_prefix (uint8_t prefix)

bytes_per_prefix

[static]

Returns: Number of bytes that will be occupied by this prefix.

OspfTypes::Version  get_version ()

get_version

[const]

void  set_network (const IPNet<IPv6>& network)

set_network

IPNet<IPv6>  get_network ()

get_network

[const]

bool  use_metric ()

use_metric

[const]

void  set_metric (uint16_t metric)

set_metric

uint16_t  get_metric ()

get_metric

[const]

void  set_prefix_options (uint8_t prefix_options)

set_prefix_options

uint8_t  get_prefix_options ()

get_prefix_options

[const]

void  set_bit (bool set, uint8_t bit)

set_bit

bool  get_bit (uint8_t bit)

get_bit

[const]

void  set_nu_bit (bool set)

set_nu_bit

bool  get_nu_bit ()

get_nu_bit

[const]

void  set_la_bit (bool set)

set_la_bit

bool  get_la_bit ()

get_la_bit

[const]

void  set_mc_bit (bool set)

set_mc_bit

bool  get_mc_bit ()

get_mc_bit

[const]

void  set_p_bit (bool set)

set_p_bit

bool  get_p_bit ()

get_p_bit

[const]

void  set_dn_bit (bool set)

set_dn_bit

bool  get_dn_bit ()

get_dn_bit

[const]

string  str ()

str

[const]

Generate a printable representation.


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