libtins 4.5
Loading...
Searching...
No Matches
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.
 

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

◆ lladdr_type() [1/2]

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.

◆ lladdr_type() [2/2]

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: