libtins  3.4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Public Attributes | List of all members
Tins::IP::option_identifier Struct Reference

The type used to represent an option's type. More...

#include <ip.h>

Public Member Functions

 option_identifier ()
 Default constructor. More...
 option_identifier (uint8_t value)
 Constructs this option from a single uint8_t value. More...
 option_identifier (OptionNumber number, OptionClass op_class, small_uint< 1 > copied)
bool operator== (const option_identifier &rhs) const
 Equality operator.

Public Attributes

uint8_t number:5
uint8_t op_class:2
uint8_t copied:1

Detailed Description

The type used to represent an option's type.

Constructor & Destructor Documentation

Tins::IP::option_identifier::option_identifier ( )

Default constructor.

Initializes every field to 0.

Tins::IP::option_identifier::option_identifier ( uint8_t  value)

Constructs this option from a single uint8_t value.

This parses the value and initializes each field with the appropriate value.

valueThe value to be parsed and used for initialization
Tins::IP::option_identifier::option_identifier ( OptionNumber  number,
OptionClass  op_class,
small_uint< 1 >  copied 

Constructor using user provided values for each field.

numberThe number field value.
op_classThe option class field value.
copiedThe copied field value.

The documentation for this struct was generated from the following file: