diff options
author | David Crocker <dcrocker@eschertech.com> | 2022-07-15 17:12:13 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2022-07-15 17:12:13 +0300 |
commit | e91029e67867eac55acfc9597e2cb25e3bda201a (patch) | |
tree | 4f21cd790ba1ae1ebf1f9acdd7cc3a960e953ac7 /src/Networking/LwipEthernet/LwipEthernetInterface.h | |
parent | 66660e4865b0eb2fbf88fd29be56a5f46787ce4d (diff) |
More work on multicast
Diffstat (limited to 'src/Networking/LwipEthernet/LwipEthernetInterface.h')
-rw-r--r-- | src/Networking/LwipEthernet/LwipEthernetInterface.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/Networking/LwipEthernet/LwipEthernetInterface.h b/src/Networking/LwipEthernet/LwipEthernetInterface.h index 12c2bc08..e1a34da5 100644 --- a/src/Networking/LwipEthernet/LwipEthernetInterface.h +++ b/src/Networking/LwipEthernet/LwipEthernetInterface.h @@ -48,8 +48,13 @@ public: bool IsWiFiInterface() const noexcept override { return false; } void UpdateHostname(const char *hostname) noexcept override; - IPAddress GetIPAddress() const noexcept override; + + IPAddress GetIPAddress() const noexcept override { return ipAddress; } + IPAddress GetNetmask() const noexcept override { return netmask; } + IPAddress GetGateway() const noexcept override { return gateway; } + bool UsingDhcp() const noexcept override { return usingDhcp; } void SetIPAddress(IPAddress p_ipAddress, IPAddress p_netmask, IPAddress p_gateway) noexcept override; + GCodeResult SetMacAddress(const MacAddress& mac, const StringRef& reply) noexcept override; const MacAddress& GetMacAddress() const noexcept override { return macAddress; } @@ -91,7 +96,7 @@ private: bool activated; bool initialised; - bool usingDhcp; + bool usingDhcp = true; IPAddress ipAddress; IPAddress netmask; |