8#include <net/ethernet.h>
9#include <net/settings.h>
10#include <utils/logging.h>
12IPAddress net::EthernetClass::localIP()
const {
return IPAddress(192, 168, 2, 1); }
14IPAddress net::EthernetClass::broadcastIP()
const {
throw std::runtime_error(
"not_impl"); }
16IPAddress net::EthernetClass::gatewayIP()
const {
throw std::runtime_error(
"not_impl"); }
18bool net::EthernetClass::isDHCPEnabled()
const {
throw std::runtime_error(
"not_impl"); }
20bool net::EthernetClass::isDHCPActive()
const {
throw std::runtime_error(
"not_impl"); }
22bool net::EthernetClass::linkState()
const {
throw std::runtime_error(
"not_impl"); }
24bool net::EthernetClass::linkIsFullDuplex()
const {
throw std::runtime_error(
"not_impl"); }
26bool net::EthernetClass::linkIsCrossover()
const {
throw std::runtime_error(
"not_impl"); }
28bool net::EthernetClass::interfaceStatus()
const {
throw std::runtime_error(
"not_impl"); }
30void net::EthernetClass::setDNSServerIP(
const IPAddress &dnsServerIP)
const {
31 throw std::runtime_error(
"not_impl");
34bool net::EthernetClass::begin(
const IPAddress &ip,
const IPAddress &mask,
const IPAddress &gateway) {
35 throw std::runtime_error(
"not_impl");
38bool net::EthernetClass::begin() {
43bool net::EthernetClass::waitForLocalIP(
uint32_t timeout)
const {
48void net::EthernetClass::setHostname(
const char *hostname) {
52void net::EthernetClass::setMACAddress(
const uint8_t mac[6]) {
throw std::runtime_error(
"not_impl"); }
54int net::EthernetClass::linkSpeed()
const {
throw std::runtime_error(
"not_impl"); }
56bool net::MDNSClass::begin(
const char *hostname) {
return true; }
58bool net::MDNSClass::addService(
const char *type,
const char *protocol, uint16_t port) {
return true; }