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

[release/6.0-rc2] [iOS] Make sure IPGlobalProperties and NetworkInterface.GetIsNetworkAvailable methods return the correct info #59258

Merged
merged 2 commits into from
Sep 21, 2021

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 17, 2021

Backport of #57096 to release/6.0-rc2

/cc @steveisok

Customer Impact

Some IPGlobalProperties and NetworkInterface methods were throwing exceptions or returning incomplete data on iOS. The customer impact is that they can now rely on these methods to return the right information.

Testing

There were a handful of libraries tests that were previously failing that now pass

Risk

Minimal

Steve Pfister added 2 commits September 17, 2021 12:51
…vailable methods return the correct info

This change makes sure some of the IPGlobalProperties stop throwing exceptions and return the correct values.

- GetIPv4GlobalStatistics, GetIcmpV4Statistics, GetTcpIPv4Statistics, GetUdpIPv4Statistics no longer throw NetworkInformationException.

- GetActiveTcpConnections no longer returns TcpConnectionInformation instances only with the State of Unknown.

- GetActiveTcpListeners return the correct IPEndPoint details for the IPV6 loopback.

- NetworkInterface.GetIsNetworkAvailable no longer returns false for every call.

The reason these methods were behaving incorrectly on iOS is due to Apple not including the public headers for icmp_var.h, ip_var.h, tcp_fsm.h, if_media.h, and udp_var.h in the iOS SDK.  This would lead to, for example, pal_tcpstate.c always returning TcpState_Unknown even if the underlying native value was TCPS_ESTABLISHED. This change includes the missing public headers in our build.

Fixes #36890
@ghost
Copy link

ghost commented Sep 17, 2021

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Backport of #57096 to release/6.0-rc2

/cc @steveisok

Customer Impact

Testing

Risk

Author: github-actions[bot]
Assignees: -
Labels:

area-System.Net

Milestone: -

@steveisok steveisok added the Servicing-consider Issue for next servicing release review label Sep 17, 2021
@jamshedd jamshedd added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Sep 21, 2021
@steveisok steveisok self-requested a review September 21, 2021 20:41
@steveisok steveisok merged commit 8e3a1fb into release/6.0-rc2 Sep 21, 2021
@steveisok steveisok deleted the backport/pr-57096-to-release/6.0-rc2 branch September 21, 2021 20:42
@ghost ghost locked as resolved and limited conversation to collaborators Nov 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net Servicing-approved Approved for servicing release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants