Filter virtual/filter network adapters by Name and Description in .NET 9/10#3309
Merged
mergify[bot] merged 9 commits intomainfrom Feb 1, 2026
Merged
Filter virtual/filter network adapters by Name and Description in .NET 9/10#3309mergify[bot] merged 9 commits intomainfrom
mergify[bot] merged 9 commits intomainfrom
Conversation
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix strange adapters shown in NetworkInterfaces for .net10
Filter virtual/filter adapters in .NET 9/10
Feb 1, 2026
Owner
|
@copilot what is with the |
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Contributor
Author
Added "WAN Miniport" and "Microsoft Wi-Fi Direct Virtual Adapter" to the filter list in commit ac3ac82. These virtual adapters (used for VPN/PPP connections and Wi-Fi Direct peer-to-peer) will now be filtered out along with the other virtual/filter adapters. Testing confirms all WAN Miniport variants (SSTP, IKEv2, L2TP, PPTP, IP, IPv6) and Wi-Fi Direct adapters are now filtered while legitimate network interfaces remain visible. |
Co-authored-by: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com>
Copilot
AI
changed the title
Filter virtual/filter adapters in .NET 9/10
Filter virtual/filter network adapters by Name and Description in .NET 9/10
Feb 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes proposed in this pull request
NameandDescriptionproperties against pattern listRelated issue(s)
Copilot generated summary
Copilot summary
.NET 9/10 changed
NetworkInterface.GetAllNetworkInterfaces()to expose virtual/filter adapters. These appear in two forms:"vEthernet (Default Switch)-WFP Native MAC Layer LightWeight Filter-0000""LAN-Verbindung* 1", Description="WAN Miniport (SSTP)"Previous implementation only checked
Name, missing adapters where patterns appear inDescription.Fix: Check both properties
Filter patterns (applied to both fields):
Impact: Filters all virtual/filter adapters regardless of whether pattern appears in Name or Description. Preserves legitimate interfaces (Ethernet, WLAN, Bluetooth).
Ref: dotnet/runtime#122751
To-Do
Contributing
By submitting this pull request, I confirm the following:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.