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

The type used to store the link layer address option data. More...

#include <icmpv6.h>

Public Types

typedef std::vector< uint8_t > address_type
 

Public Member Functions

 lladdr_type (uint8_t option_code=0, const address_type &address=address_type())
 
 lladdr_type (uint8_t option_code, const hwaddress_type &address)
 Constructor taking an option code and hwaddress_type. More...
 

Static Public Member Functions

static lladdr_type from_option (const option &opt)
 

Public Attributes

uint8_t option_code
 
address_type address
 

Detailed Description

The type used to store the link layer address option data.

Constructor & Destructor Documentation

Tins::ICMPv6::lladdr_type::lladdr_type ( uint8_t  option_code = 0,
const address_type &  address = address_type() 
)
inline

Constructor taking an option code and an address.

Parameters
option_codeThe option code.
addressThe address to be stored.
Tins::ICMPv6::lladdr_type::lladdr_type ( uint8_t  option_code,
const hwaddress_type address 
)
inline

Constructor taking an option code and hwaddress_type.

This is a helper constructor, since it'll be common to use hwaddress_type as the link layer address.

Parameters
option_codeThe option code.
addressThe address to be stored.

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