Dobby 3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
Loading...
Searching...
No Matches
Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
NlAddress Class Reference

Wrapper around the nl_addr object. More...

Public Member Functions

 NlAddress (in_addr_t address, in_addr_t netmask=0xffffffff)
 
 NlAddress (struct in6_addr address, int netmask=128)
 
 NlAddress (const std::array< uint8_t, 6 > &mac)
 
 operator bool () const noexcept
 
 operator struct nl_addr * () const noexcept
 
std::string toString () const
 

Static Private Member Functions

static struct nl_addr * fromIpv4 (in_addr_t address, in_addr_t netmask)
 
static struct nl_addr * fromIpv6 (struct in6_addr address, int netmask)
 

Private Attributes

struct nl_addr *const mAddress
 
int mAddressFamily
 

Detailed Description

Wrapper around the nl_addr object.

Simple wrapper used to handle construction and safe destruction of a nl addr object.


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