libtins
4.0
|
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) option_identifier(OptionNumber number | |
Constructs this option from a single uint8_t value. More... | |
OptionClass small_uint< 1 > | op_class (op_class) |
OptionClass small_uint< 1 > | number (number) |
bool | operator== (const option_identifier &rhs) const |
Equality operator. | |
Public Attributes | |
OptionClass | op_class |
OptionClass small_uint< 1 > | copied: copied(copied) |
The type used to represent an option's type.
|
inline |
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.
value | The value to be parsed and used for initialization Constructor using user provided values for each field. |
number | The number field value. |
op_class | The option class field value. |
copied | The copied field value. |