Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix impl
  • Loading branch information
mcspr committed Jun 1, 2022
commit 3be2c6ed128947f5735f6439a2d985080c7b545b
5 changes: 0 additions & 5 deletions cores/esp8266/LwipDhcpServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1169,11 +1169,6 @@ void DhcpServer::dhcps_coarse_tmr(void)
}
}

void DhcpServer::resetLeaseTime()
{
lease_time = DefaultLeaseTime;
}

void DhcpServer::dhcps_client_leave(u8* bssid, struct ipv4_addr* ip, bool force)
{
struct dhcps_pool* pdhcps_pool = nullptr;
Expand Down
5 changes: 4 additions & 1 deletion cores/esp8266/LwipDhcpServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,10 @@ class DhcpServer
return dns_address;
}

void resetLeaseTime();
void resetLeaseTime()
{
lease_time = DefaultLeaseTime;
}

void setLeaseTime(uint32_t minutes)
{
Expand Down
13 changes: 0 additions & 13 deletions tests/host/common/user_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,6 @@ bool DhcpServer::set_dhcps_lease(struct dhcps_lease* please)
return false;
}

bool DhcpServer::set_dhcps_lease_time(uint32 minute)
{
(void)minute;
return false;
}

bool DhcpServer::set_dhcps_offer_option(uint8 level, void* optarg)
{
(void)level;
(void)optarg;
return false;
}

void DhcpServer::end() { }

bool DhcpServer::begin(struct ip_info* info)
Expand Down