libtins  4.0
 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) 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)
 

Detailed Description

The type used to represent an option's type.

Constructor & Destructor Documentation

Tins::IP::option_identifier::option_identifier ( )
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.

Parameters
valueThe value to be parsed and used for initialization 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: