Skip to content

Commit

Permalink
DHCP custom option (#8582)
Browse files Browse the repository at this point in the history
* works

* fixup! works

* back to callbacks

* names

* daisy chain

* seconds

* less inline

* fix dns setter

* might as well keep using initlist

/to d-a-v it has automatic storage, here it's the same stack based one
(just one less line for us)

* shift blame

* naming

* fix impl

* revert to ip4 dns

* merge fix

* restyle

* masking done wrong
  • Loading branch information
mcspr committed Jun 8, 2022
1 parent 9e2103f commit b7c1cfb
Show file tree
Hide file tree
Showing 9 changed files with 329 additions and 386 deletions.
8 changes: 5 additions & 3 deletions cores/esp8266/LwipDhcpServer-NonOS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,21 @@ extern "C"
uint32 wifi_softap_get_dhcps_lease_time()
{
auto& server = getNonOSDhcpServer();
return server.get_dhcps_lease_time();
return server.getLeaseTime();
}

bool wifi_softap_set_dhcps_lease_time(uint32 minutes)
{
auto& server = getNonOSDhcpServer();
return server.set_dhcps_lease_time(minutes);
server.setLeaseTime(minutes);
return true;
}

bool wifi_softap_reset_dhcps_lease_time()
{
auto& server = getNonOSDhcpServer();
return server.reset_dhcps_lease_time();
server.resetLeaseTime();
return true;
}

bool wifi_softap_add_dhcps_lease(uint8* macaddr)
Expand Down
Loading

0 comments on commit b7c1cfb

Please sign in to comment.