|
ZeroSDN Controller
1.0
A modular distributed Software-Defined Network Controller
|
#include <Device.h>
Classes | |
| struct | AttachmentPoint |
| The AttachmentPoint of this Device. More... | |
Public Member Functions | |
| Device (uint64_t mac_address, std::vector< uint32_t > ipv4_addresses, std::vector< std::array< uint8_t, 16 >> ipv6_addresses, uint64_t switch_dpid, uint32_t switch_port) | |
| Device (common::topology::Device protoDevice) | |
| void | SetTimestampToNow () |
| long | GetMillisSinceLastSeen () |
Static Public Member Functions | |
| static common::topology::Device * | convertToProtoDevice (const Device &device) |
Public Attributes | |
| uint64_t | macAddress_ |
| The MAC-Address of this Device. More... | |
| std::vector< uint32_t > | ipv4Addresses_ |
| The vector of IPv4-Addresses of this Device. More... | |
| std::vector< std::array < uint8_t, 16 > > | ipv6Addresses_ |
| The vector of IPv6-Addresses of this Device. More... | |
| struct Device::AttachmentPoint | attachmentPoint_ |
This class represents a Device that is connected to the SDN network. A Device is an entity with a MAC-Address that is not a Switch.
| Device::Device | ( | uint64_t | mac_address, |
| std::vector< uint32_t > | ipv4_addresses, | ||
| std::vector< std::array< uint8_t, 16 >> | ipv6_addresses, | ||
| uint64_t | switch_dpid, | ||
| uint32_t | switch_port | ||
| ) |
Constructor for a new Device.
| mac_address | The MAC-Address of this Device. |
| ipv4_address | The vector of IPv4-Addresses of this Device. |
| ipv6_address | The array of IPv6-Addresses of this Device. |
| switch_dpid | The id of the switch which represents the attachment point. |
| switch_port | The port of the switch which represents the attachment point. |
| Device::Device | ( | common::topology::Device | protoDevice | ) |
|
static |
| long Device::GetMillisSinceLastSeen | ( | ) |
Returns the milli-seconds since the last time the Device was seen.
| void Device::SetTimestampToNow | ( | ) |
Sets the Timestamp of this Device to the current time.
| struct Device::AttachmentPoint Device::attachmentPoint_ |
| std::vector<uint32_t> Device::ipv4Addresses_ |
The vector of IPv4-Addresses of this Device.
| std::vector<std::array<uint8_t, 16> > Device::ipv6Addresses_ |
The vector of IPv6-Addresses of this Device.
| uint64_t Device::macAddress_ |
The MAC-Address of this Device.