We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Repro Steps
NetworkInterface.GetAllNetworkInterfaces() .SelectMany(i => i.GetIPProperties().UnicastAddresses) .Select(a => a.Address) .Where(a => a.IsIPv6LinkLocal) .ToList() .ForEach(ip => Console.WriteLine($"IP: {ip}, ScopeId: {ip.ScopeId}"));
Windows .NET Core
IP: fe80::1234:5678:90ab:cdef%18, ScopeId: 18 IP: fe80::1234:5.6.7.8%15, ScopeId: 15
ipconfig /all
Link-local IPv6 Address . . . . . : fe80::1234:5678:90ab:cdef%18(Preferred)
OS X .NET Core
IP: fe80::1, ScopeId: 0 IP: fe80::1234:5678:90ab:cdef, ScopeId: 0
ifconfig
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 inet6 fe80::1234:5678:90ab:cdef%en0 prefixlen 64 scopeid 0x4
Linux .NET Core
IP: fe80::1234:5468:90ab:cdef, ScopeId: 0
eth0 inet6 addr: fe80::1234:5678:90ab:cdef/64 Scope:Link
The text was updated successfully, but these errors were encountered:
cc: @ericeil @stephentoub
Sorry, something went wrong.
I believe we just need to store the scopeID on line 82 of UnixNetworkInterface.cs. We already have the scope ID there.
stephentoub
No branches or pull requests
Repro Steps
Windows
.NET Core
ipconfig /all
OS X
.NET Core
ifconfig
Linux
.NET Core
ifconfig
The text was updated successfully, but these errors were encountered: