REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
mac.h File Reference
#include "utils/json.h"
#include <IPAddress.h>
#include <array>
#include <cstdint>
#include <list>
#include <string>
Include dependency graph for mac.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
struct | utils::MacAddress |
Represents Ethernet Mac address. More... | |
struct | utils::IPAddressMask |
IPv4 Adress with net mask. More... | |
struct | utils::IPMaskList |
Represents a list of IP Addresses. More... | |
Namespaces | |
namespace | utils |
Functions | |
void | utils::convertFromJson (JsonVariantConst serialized_mac, MacAddress &mac) |
void | utils::convertToJson (const MacAddress &mac, JsonVariant serialized_mac) |
std::string | utils::toString (const MacAddress &mac, char sep='-') |
EUI48/MAC Canonical Format AA-BB-CC-DD-EE-FF. | |
std::string | utils::toString (const std::array< uint8_t, 8 > &eui64, char sep='-') |
EUI64/Extended MAC Canonical Format AA-BB-CC-DD-EE-FF-00-11. | |
std::string | utils::toString (const IPAddress &ip) |
Canonical Format 123.123.123.123. | |
bool | utils::valid (const MacAddress &mac) |
All zero mac bytes considered invalid (0-0-0-0-0-0) | |
bool | utils::valid (const IPAddress &ip) |
All zero IP bytes considered invalid (0.0.0.0) | |
void | utils::convertFromJson (JsonVariantConst serialized_iplist, IPMaskList &iplist) |
void | utils::convertToJson (const IPMaskList &iplist, JsonVariant serialized_iplist) |
void | convertFromJson (JsonVariantConst ipjson, IPAddress &ip) |
void | convertToJson (const IPAddress &ip, JsonVariant ipjson) |
Function Documentation
◆ convertFromJson()
void convertFromJson | ( | JsonVariantConst | ipjson, |
IPAddress & | ip ) |
◆ convertToJson()
void convertToJson | ( | const IPAddress & | ip, |
JsonVariant | ipjson ) |
Definition at line 74 of file mac.cpp.
References utils::toString().