dca_interface  6.3.4
dca_ipr::Ipv6 Class Reference

#include <ipr_ipdata.h>

Inheritance diagram for dca_ipr::Ipv6:
dca_ipr::Ip

Detailed Description

Definition of the Ipv6 class.

The Ipv6 class defines a class that is used for classification of IP version 6 addresses.

Definition at line 96 of file ipr_ipdata.h.

Public Member Functions

 Ipv6 (const unsigned char ipaddr[16])
 Constructs an Ipv6 class with a 16 byte char array. More...
 
 Ipv6 (const char *buffer, size_t buffer_len)
 Constructs an Ipv6 class using a string represenatation e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "fe80:0:0:0:202:b3ff:fe1e:8329", "fe80::202:b3ff:fe1e:8329". More...
 
- Public Member Functions inherited from dca_ipr::Ip
 Ip (const char *buffer, size_t buffer_len)
 Constructs an Ip class with a given C-string and its length. More...
 

Constructor & Destructor Documentation

◆ Ipv6() [1/2]

dca_ipr::Ipv6::Ipv6 ( const unsigned char  ipaddr[16])

Constructs an Ipv6 class with a 16 byte char array.

Parameters
[in]ipaddrNumeric representation of the IPv6 address
Note
Since the buffer will not be copied it must exist until the classification call is returned, and for the lifetime of the Ipv6 class.

◆ Ipv6() [2/2]

dca_ipr::Ipv6::Ipv6 ( const char *  buffer,
size_t  buffer_len 
)

Constructs an Ipv6 class using a string represenatation e.g. "2001:0db8:85a3:0000:0000:8a2e:0370:7334", "fe80:0:0:0:202:b3ff:fe1e:8329", "fe80::202:b3ff:fe1e:8329".

Parameters
[in]bufferConstant buffer pointer to an ASCII 7-bit string of the IP address
[in]buffer_lenThe length of the string the buffer points to
Note
Since the buffer will not be copied it must exist until the classification call returns, and for the lifetime of the Ipv6 class.

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