Skip to content

lwip - Fix static IP address issues with IPv4 #3526

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

Merged
merged 2 commits into from
Jan 9, 2017

Conversation

geky
Copy link
Contributor

@geky geky commented Jan 4, 2017

There were a few lingering issues with static IPv4 addresses that was preventing the set_network function from working with lwip.

  1. lwip connected state being set incorrectly (thanks to @YixiaoLi for finding this)
  2. default dns servers were not being set up

Generalized handling of dns servers when brought up with both ipv4 and ipv6 addresses. Falls back to google dns servers if not dns server is found through dhcp.

Also added support for the add_dns_server method to lwip to support custom servers.

should resolve #3234
should resolve #3524
cc @kjbracey-arm

geky added 2 commits January 4, 2017 12:10
Generalized handling of dns servers when brought up with both ipv4 and
ipv6 addresses. Falls back to google dns servers if not dns server is
found through dhcp.

Also added support for the `add_dns_server` method to lwip to support
custom servers.
@geky geky changed the title lwip - ix static IP address issues with IPv4 lwip - Fix static IP address issues with IPv4 Jan 4, 2017
@theotherjimmy
Copy link
Contributor

👏

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 4, 2017

cc @kjbracey-arm @c1728p9

@geky
Copy link
Contributor Author

geky commented Jan 4, 2017

Sorry about the slipped message initially 😆

@bridadan
Copy link
Contributor

bridadan commented Jan 4, 2017

/morph test-nightly

@mbed-bot
Copy link

mbed-bot commented Jan 4, 2017

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 1353

All builds and test passed!

@bridadan bridadan removed the needs: CI label Jan 4, 2017
Copy link
Contributor

@kjbracey kjbracey left a comment

Choose a reason for hiding this comment

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

Looks okay to me, but I'd like @mikaleppanen to have a look.

@mikaleppanen
Copy link

Looks good to me.

Copy link
Contributor

@c1728p9 c1728p9 left a comment

Choose a reason for hiding this comment

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

Looks good to me

@sg- sg- merged commit 7b83e0f into ARMmbed:master Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EthernetInterface MBED-OS 5.3 static IP mbed_lwip_bringup() with static IP
9 participants