Dobby 3.0
Dobby “Docker based Thingy” is a tool for managing and running OCI containers using crun
|
Functions | |
bool | platformSupportsTapInterface () |
Returns true if the platform has the TUN/TAP device driver and therefore can create tap devices. | |
bool | createTapInterface (const std::shared_ptr< Netlink > &netlink) |
Creates the Dobby tap device. | |
bool | destroyTapInterface (const std::shared_ptr< Netlink > &netlink) |
Destroys the Dobby tap device if it exists. | |
bool | isValid () |
const std::string | name () |
bool | up (const std::shared_ptr< Netlink > &netlink) |
Brings an interface up. | |
bool | down (const std::shared_ptr< Netlink > &netlink) |
Takes an interface down. | |
std::array< uint8_t, 6 > | macAddress (const std::shared_ptr< Netlink > &netlink) |
Gets the MAC address of the tap device. | |
bool | setMACAddress (const std::shared_ptr< Netlink > &netlink, const std::array< uint8_t, 6 > &address) |
Sets the MAC address of the tap device. | |
A set of function to create and destruct Tap devices.
bool TapInterface::createTapInterface | ( | const std::shared_ptr< Netlink > & | netlink | ) |
Creates the Dobby tap device.
bool TapInterface::destroyTapInterface | ( | const std::shared_ptr< Netlink > & | netlink | ) |
Destroys the Dobby tap device if it exists.
bool TapInterface::down | ( | const std::shared_ptr< Netlink > & | netlink | ) |
Takes an interface down.
[in] | netlink | Instance of the Netlink class. |
std::array< uint8_t, 6 > TapInterface::macAddress | ( | const std::shared_ptr< Netlink > & | netlink | ) |
Gets the MAC address of the tap device.
[in] | netlink | Instance of the Netlink class. |
bool TapInterface::platformSupportsTapInterface | ( | ) |
Returns true if the platform has the TUN/TAP device driver and therefore can create tap devices.
bool TapInterface::setMACAddress | ( | const std::shared_ptr< Netlink > & | netlink, |
const std::array< uint8_t, 6 > & | address | ||
) |
Sets the MAC address of the tap device.
[in] | netlink | Instance of the Netlink class. |
[in] | address | MAC address to be set |