CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 1999
    Location
    Belgium
    Posts
    440

    Question Test for tunnel adapters

    In my application I list all available network adapters...
    Code:
    ..
    foreach (NetworkInterface ni in NetworkInterface.GetAllNetworkInterfaces())
    {
         //add it to UI combobox
    }
    ..
    As my app is now being used more and more on Win7, users complain that a lot of 'unknown' network adapters are listed.
    It appears these are IPv6 so-called tunnel adapters .

    Does anyone know of a way to programmatically detect wether NetworkInterface is such a tunnel adapter ?

  2. #2
    Join Date
    Jan 2009
    Posts
    596

    Re: Test for tunnel adapters

    Look at the NetworkInterfaceType property, and check it isn't 'Tunnel'

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured