FIX: The gethostbyname function does not return a valid IP address on a Windows Embedded CE 6.0 R3-based device that has more than five Ethernet adapters attached

Article ID: 2666265 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You have a Windows Embedded CE 6.0 R3-based device that has more than five Ethernet adapters attached.
  • Each Ethernet adapter has obtained a valid IP address from a local area network (LAN) or a wide area network (WAN).
  • You use the gethostbyname function to obtain the IP address list of the attached Ethernet adapters.

In this scenario, you may notice that there is only one element (such as 127.0.0.1) in the IP address list.

Note This issue only occurs when there are more than five Ethernet adapters attached to the device. If you disable one or more Ethernet adapters so that five or fewer Ethernet adapters are attached, the gethostbyname function returns the correct IP address.

CAUSE

This problem occurs because the system allocates a static memory size that is used to query for TCP information.

RESOLUTION

To resolve this problem, apply this update. After you apply this update, the gethostbyname function will return a valid IP address for up to nine Ethernet adapters that are attached to the device.

Software update information

A supported software update is now available from Microsoft as Windows Embedded CE 6.0 Monthly Update February 2012. In the "File information" section, the package file name contains the product version, the date, the Knowledge Base article number, and the processor type. The package file name format is as follows:
Product version-yymmdd-kbnnnnnn-processor type
For example, Wincepb60-110128-kb2492159-armv4i.msi is the ARMV4i Windows Embedded CE 6.0 Platform Builder fix that is documented in KB article 2492159 and that is contained in the January 2011 monthly update.

To resolve this problem immediately, download this Windows Embedded CE 6.0 Monthly Update from the following Microsoft website.

Microsoft Download Center
Windows Embedded CE 6.0

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package 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.
Installer files
Collapse this tableExpand this table
File nameFile sizeDateTime
Wincepb60-120222-kb2666265-mipsiv_fp.msi1,323,00822-Feb-201219:03
Wincepb60-120222-kb2666265-sh4.msi1,290,24022-Feb-201219:03
Wincepb60-120222-kb2666265-x86.msi1,232,89622-Feb-201219:03
Wincepb60-120222-kb2666265-armv4i.msi1,347,58422-Feb-201219:03
Wincepb60-120222-kb2666265-mipsii.msi1,310,72022-Feb-201219:03
Wincepb60-120222-kb2666265-mipsii_fp.msi1,310,72022-Feb-201219:03
Wincepb60-120222-kb2666265-mipsiv.msi1,323,00822-Feb-201219:03
Files that are included in this update package
Collapse this tableExpand this table
File nameFile sizeDateTimePath
Afdlib.lib1,571,28202-Feb-201212:46Public\Common\Oak\Lib\Armv4i\Debug
Afdlib.lib1,006,78002-Feb-201212:46Public\Common\Oak\Lib\Armv4i\Retail
Afdlib.lib1,493,91202-Feb-201212:46Public\Common\Oak\Lib\Mipsii\Debug
Afdlib.lib983,78002-Feb-201212:46Public\Common\Oak\Lib\Mipsii\Retail
Afdlib.lib1,494,03802-Feb-201212:47Public\Common\Oak\Lib\Mipsii_fp\Debug
Afdlib.lib983,99802-Feb-201212:47Public\Common\Oak\Lib\Mipsii_fp\Retail
Afdlib.lib1,511,89802-Feb-201212:47Public\Common\Oak\Lib\Mipsiv\Debug
Afdlib.lib1,000,64402-Feb-201212:47Public\Common\Oak\Lib\Mipsiv\Retail
Afdlib.lib1,512,02402-Feb-201212:48Public\Common\Oak\Lib\Mipsiv_fp\Debug
Afdlib.lib1,000,86202-Feb-201212:47Public\Common\Oak\Lib\Mipsiv_fp\Retail
Afdlib.lib1,330,91802-Feb-201212:48Public\Common\Oak\Lib\Sh4\Debug
Afdlib.lib911,19602-Feb-201212:48Public\Common\Oak\Lib\Sh4\Retail
Afdlib.lib1,314,38002-Feb-201212:46Public\Common\Oak\Lib\X86\Debug
Afdlib.lib894,77002-Feb-201212:45Public\Common\Oak\Lib\X86\Retail

REFERENCES

For more information about the gethostbyname function, visit the following Microsoft Developer Network (MSDN) website:
gethostbyname
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

Properties

Article ID: 2666265 - Last Review: March 9, 2012 - Revision: 1.0
APPLIES TO
  • Windows Embedded CE 6.0 R3
Keywords: 
kbqfe kbfix kbpubtypekc kbexpertiseinter kbsurveynew KB2666265

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com