xorp

Options Class Reference

Helper class to manipulate the options field in packets and LSAs. More...

#include <packet.hh>

List of all members.

Public Member Functions

 Options (OspfTypes::Version version, uint32_t options)
void set_bit (bool set, uint32_t bit)
bool get_bit (uint32_t bit) const
void set_v6_bit (bool set)
bool get_v6_bit () const
void set_e_bit (bool set)
bool get_e_bit () const
void set_mc_bit (bool set)
bool get_mc_bit () const
void set_n_bit (bool set)
bool get_n_bit () const
void set_p_bit (bool set)
bool get_p_bit () const
void set_r_bit (bool set)
bool get_r_bit () const
void set_ea_bit (bool set)
bool get_ea_bit () const
void set_dc_bit (bool set)
bool get_dc_bit () const
uint32_t get_options ()
string pp_bool (bool val) const
string str () const

Static Public Attributes

static const uint32_t V6_bit = 0x1
static const uint32_t E_bit = 0x2
static const uint32_t MC_bit = 0x4
static const uint32_t N_bit = 0x8
static const uint32_t P_bit = N_bit
static const uint32_t R_bit = 0x10
static const uint32_t EA_bit = 0x10
static const uint32_t DC_bit = 0x20

Private Attributes

OspfTypes::Version _version
uint32_t _options

Detailed Description

Helper class to manipulate the options field in packets and LSAs.


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