Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Fix handling of ScopeIDs with IPAddresses in NetworkInformation #8462

Merged
merged 1 commit into from May 11, 2016

Conversation

stephentoub
Copy link
Member

We had the scopeId, we just weren't storing it into the IPAddress.

(As with other aspects of NetworkInformation, this is hard to add a test for, but I'm going to add a test to the HttpClient suite that tries to use a link-local Uri with a loopback server, and that will implicitly provide some verification here, as that will only succeed if the scope ID is correct.)

Fixes https://github.com/dotnet/corefx/issues/8458
cc: @mellinoe, @ericeil, @mikeharder

We had the scopeId, we just weren't storing it into the IPAddress.
@mellinoe
Copy link
Contributor

LGTM

@ericeil
Copy link
Contributor

ericeil commented May 11, 2016

Looks good.

@davidsh
Copy link
Contributor

davidsh commented May 11, 2016

but I'm going to add a test to the HttpClient suite that tries to use a link-local Uri with a loopback server

Why complicate the Http tests for this? This should be added maybe to System.Net.Sockets tests using the loopback sockets server.

@stephentoub
Copy link
Member Author

stephentoub commented May 11, 2016

Why complicate the Http tests for this? This should be added maybe to System.Net.Sockets tests using the loopback sockets server.

Because it's also a way of validating that HttpClient can connect to link-local Uris. I've now made two PRs to fix that behavior for CurlHandler, without tests, and I was already planning to add such a test:
#8467

@stephentoub stephentoub merged commit 5ff0676 into dotnet:master May 11, 2016
@stephentoub stephentoub deleted the fix_ni_scopeid branch May 11, 2016 22:37
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
@karelz karelz added os-linux Linux OS (any supported distro) and removed X-Plat labels Mar 8, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Fix handling of ScopeIDs with IPAddresses in NetworkInformation

Commit migrated from dotnet/corefx@5ff0676
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net os-linux Linux OS (any supported distro)
Projects
None yet
6 participants