Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable DHCP gateway offer when set up of AP. #4421

Merged
merged 4 commits into from
Mar 12, 2019

Conversation

tfry-git
Copy link
Contributor

When running the ESP8266 in AP mode, it will advertise a default gateway via DHCP, even if it cannot route traffic anywhere. This patch simply disables the gateway offer, when the gateway is set to 0.0.0.0.

See also:

Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see nothing wrong with this, but I wonder what difference it makes for the dhcp client to get a 0.0.0.0 gateway, or no gateway.

@tfry-git
Copy link
Contributor Author

While this really does not seem smart on the of the DHCP client, mine (dhclient on Ubuntu 16.04) happily adds a default route via 0.0.0.0 when advertised. That's the reason for this patch.

@tfry-git
Copy link
Contributor Author

Ping!

Not to add noise, but I think this has simply been forgotten.

@d-a-v d-a-v merged commit 071eeb8 into esp8266:master Mar 12, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants