Do not display IPv6...
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

[Solved] Do not display IPv6 temporary addresses

8 Posts
2 Users
1 Reactions
662 Views
MrMrRubic
(@mrmrrubic)
Active Member Registered
Joined: 9 months ago
Posts: 4
Topic starter  

Hello!

One feature I'd like to see is the ability to filter out or in some way prevent temporary IPv6 Addresses from being show.

Currently with the two options "Display first address" and "display all addresses", there's no inbetween.
If i display only the first address, it will not display other addresses assigned to the interface (GUA, ULA and link-local).
If i display all addresses, it will display GUA, ULA and link-local, but it will also display temporary addresses. This clutters the interface and makes it hard for users to know which address is the "real" one.

Red is "real" addresses, blue are temporary addresses and yellow is the link-local. I want it to show the red and yellow, without any blue clogging it up.

first address:

All addresses:

Unless there's some obscure way to do this through WMI, i don't believe this is possible in the current version. Would this function be something you could add?


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

What defines a temporary address?


   
ReplyQuote
MrMrRubic
(@mrmrrubic)
Active Member Registered
Joined: 9 months ago
Posts: 4
Topic starter  

Temporary addresses are a part of <a href=" removed link " target="_blank" rel="noopener">RFC 4941. The client generated a new IPv6 address for outgoing connections, and binds that IP to the interface until it either expires or the client is rebooted. They show up in ipconfig as "Temporary IPv6 Address". They are completely random and the client can have several (I've hear about people having near a hundred) at once.


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

I've learned the structure returned by GetAdaptersAddresses contains a field called SuffixOrigin. When this is set to IpSuffixOriginRandom that indicates a temporary random address. So I can use that knowledge to filter out temporary addresses for ipv6.

The full enumeration is:

  IP_SUFFIX_ORIGIN = (
    IpSuffixOriginOther,
    IpSuffixOriginManual,
    IpSuffixOriginWellKnown,
    IpSuffixOriginDhcp,
    IpSuffixOriginLinkLayerAddress,
    IpSuffixOriginRandom);

 

 


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

I've updated NETWORKINTERFACES to exclude temporary addresses by default. If you want to include them you can set the include-temp option.


   
ReplyQuote
MrMrRubic
(@mrmrrubic)
Active Member Registered
Joined: 9 months ago
Posts: 4
Topic starter  

Awesome! Approximately when will the updated binary be made available?


   
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

real soon now...


   
ReplyQuote
MrMrRubic
(@mrmrrubic)
Active Member Registered
Joined: 9 months ago
Posts: 4
Topic starter  

Tested it just now, and it works nicely! Thank you, Glenn 🙂


   
Glenn reacted
ReplyQuote
Glenn's Page