The WTSQuerySessionInformation function on a Windows Server 2008-based terminal server returns ambiguous IPv6 address data

The WTSQuerySessionInformation function on a Windows Server 2008-based terminal server returns ambiguous IPv6 address data
Article ID : 951422
Last Review : April 18, 2008
Revision : 1.0
On This Page

SYMPTOMS

Consider the following scenario:
• On a Windows Server 2008-based terminal server, an application calls the WTSQuerySessionInformation function to query the IP address of a terminal server client.
• The terminal server client has an IPv6 address that contains several contiguous blocks of zeros.

In this scenario, the WTSQuerySessionInformation function returns ambiguous data. Therefore, the application cannot rely on this function to retrieve the IPv6 address of the terminal server client.

For example, the following is the actual client IPv6 address:

fe80:0000:0000:0000:385f:e84b:ac02:f69c

In compliance with the IPv6 specification, this address can be abbreviated by using double-colon characters (::). Therefore, the following is the abbreviated form of the address:

fe80::385f:e84b:ac02:f69c

However, the WTSQuerySessionInformation function returns a WTS_CLIENT_ADDRESS structure that resembles the following:

typedef struct _WTS_CLIENT_ADDRESS {DWORD AddressFamily; 17 00 00 00BYTE Address[20]; 00 00 FE 80 00 00 38 5F E8 4B AC 02 F6 9C 00 00 00 00 00 00} ;

In this example, the double-colon characters are returned as 00 00 instead of as the correct number of zeros. In this situation, the application cannot interpret which one of the following is the correct full IPv6 address:

• fe80:0000:385f:e84b:ac02:f69c:0000:0000
• fe80:0000:0000:385f:e84b:ac02:f69c:0000
• fe80:0000:0000:0000:385f:e84b:ac02:f69c

Back to the top

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that this article describes. Apply this hotfix only to systems that are experiencing this specific problem.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451 (http://go.microsoft.com/?linkid=6294451)

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)

Prerequisites

No prerequisites are required.

Restart requirement

You must restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace any other hotfixes.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.

Windows Server 2008, x86-based versions
File name File version File size Date Time Platform
Rdpwd.sys 6.0.6001.22152 180,736 08-Apr-2008 06:13 x86
Windows Server 2008, x64-based versions
File name File version File size Date Time Platform
Rdpwd.sys 6.0.6001.22152 209,920 08-Apr-2008 06:47 x64
Windows Server 2008, Itanium-based versions
File name File version File size Date Time Platform
Rdpwd.sys 6.0.6001.22152 475,648 08-Apr-2008 02:24 IA-64

Back to the top

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the Applies to section.

Back to the top

MORE INFORMATION

Request for Comments (RFC) 4291

Because of how certain styles of IPv6 addresses are allocated, some addresses may contain long strings of zero bits. There is a special syntax to simplify the presentation of these zero bits. That is, double-colon characters (::) can be used to indicate one or more groups of 16 bits of zero. These double-colon characters can also be used to compress leading zeros or trailing zeros in an address.

Note The double-colon characters can appear only one time in a particular address.

Back to the top

REFERENCES

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 (/) Description of the standard terminology that is used to describe Microsoft software updates

Back to the top



APPLIES TO
• Windows Server 2008 Standard
• Windows Server 2008 Enterprise
• Windows Server 2008 Datacenter

Back to the top

Keywords: 
kbexpertiseadvanced kbexpertiseinter kbbug kbfix kbhotfixserver kbqfe KB951422

Back to the top

 

Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
Microsoft Corporation. All rights reserved. Terms of Use | Trademarks


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image