class IPv6Prefix
|
RFC 2470 A. More... |
|
|
Public Methods
Public Static Methods
Public Members
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 |
[const]
Returns: the number of bytes the encoded data will occupy.
[const]
Decode a IPv6Prefix.
Parameters:
buf | pointer to buffer.
|
len | length of the buffer on input set to the number of
bytes consumed on output.
|
prefixlen | prefix length
|
option | prefix 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.
[const]
void set_network (const IPNet<IPv6>& network)
| set_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]
[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.