Skip to content

Cellular: Fix resolving of DNS server IPv4/6 address #11548

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 1 commit into from
Oct 7, 2019

Conversation

AriParkkila
Copy link

Description

Fix resolving of DNS server IPv4/6 address, if a network returns just IPv4 local address but both IPv4 and IPv6 addresses for DNS.

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@mirelachirica

Release Notes

@ciarmcom ciarmcom requested review from mirelachirica and a team September 23, 2019 11:00
@ciarmcom
Copy link
Member

@AriParkkila, thank you for your changes.
@mirelachirica @ARMmbed/mbed-os-wan @ARMmbed/mbed-os-maintainers please review.

@@ -1065,3 +1065,16 @@ void AT_CellularContext::set_disconnect()
_is_connected = false;
_device->cellular_callback(NSAPI_EVENT_CONNECTION_STATUS_CHANGE, NSAPI_STATUS_DISCONNECTED, this);
}

void AT_CellularContext::is_prefer_ipv6(char *ip, size_t ip_size, char *ip2, size_t ip2_size)
Copy link
Contributor

Choose a reason for hiding this comment

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

This wouldnt be needed if CGCONTRDP's local address is checked, instead of quering the info from the stack.

Copy link
Author

Choose a reason for hiding this comment

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

@mirelachirica please re-review

@adbridge
Copy link
Contributor

adbridge commented Oct 3, 2019

CI started

@adbridge
Copy link
Contributor

adbridge commented Oct 7, 2019

Restarting CI

@mbed-ci
Copy link

mbed-ci commented Oct 7, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 2
Build artifacts

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.

6 participants