Skip to content

softAP Subnet Mask unable to be set for DHCP #2578

Closed
@mtongnz

Description

@mtongnz

When running in softAP mode, there is no way to set what subnet mask is sent to DHCP clients. WiFi.softAPConfig allows you to set the subnet for the ESP8266 but this isn't passed to the DHCP server - it always assigns 255.255.255.0

It appears to me that this is set in Arduino/tools/sdk/lwip/src/app/dhcpserver.c on lines 135-150. The subnet mask is hard coded in.

Is it possible to link WiFi.softAPConfig to set these values or provide another function to achieve this?

There seem to be a few other issues logged which incorrectly state the subnet isn't set at all. The subnet appears to be set correctly on the ESP8266, just not given out by the DHCP server.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting for feedbackWaiting on additional info. If it's not received, the issue may be closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions