43 const std::string name();
44 bool up(
const std::shared_ptr<Netlink> &netlink);
45 bool down(
const std::shared_ptr<Netlink> &netlink);
46 std::array<uint8_t, 6>
macAddress(
const std::shared_ptr<Netlink> &netlink);
48 const std::array<uint8_t, 6> &address);
49 static bool valid =
false;
Basic wrapper around the libnl netlink library.
Definition Netlink.h:54
Definition TapInterface.h:38
bool down(const std::shared_ptr< Netlink > &netlink)
Takes an interface down.
Definition TapInterface.cpp:199
bool destroyTapInterface(const std::shared_ptr< Netlink > &netlink)
Destroys the Dobby tap device if it exists.
Definition TapInterface.cpp:115
bool platformSupportsTapInterface()
Returns true if the platform has the TUN/TAP device driver and therefore can create tap devices.
Definition TapInterface.cpp:52
bool setMACAddress(const std::shared_ptr< Netlink > &netlink, const std::array< uint8_t, 6 > &address)
Sets the MAC address of the tap device.
Definition TapInterface.cpp:235
bool up(const std::shared_ptr< Netlink > &netlink)
Brings an interface up.
Definition TapInterface.cpp:177
bool createTapInterface(const std::shared_ptr< Netlink > &netlink)
Creates the Dobby tap device.
Definition TapInterface.cpp:66
std::array< uint8_t, 6 > macAddress(const std::shared_ptr< Netlink > &netlink)
Gets the MAC address of the tap device.
Definition TapInterface.cpp:221