Microsoft KB Archive/924785

= FIX: A Windows CE 5.0 based device is automatically assigned a linklocal IP address when a Dynamic Host Configuration Protocol (DHCP) server does not respond in 1000 ms to a device DHCP client discovery request =

Article ID: 924785

Article Last Modified on 10/20/2006

-

APPLIES TO


 * Microsoft Windows CE 5.0

-



SYMPTOMS
When a Dynamic Host Configuration Protocol (DHCP) server does not respond in 1000 ms to a Microsoft Windows CE 5.0-based device DHCP client discovery request, the Windows CE 5.0-based device is automatically assigned an IP address. This automatic IP addressing process is known as Auto-IP. Additionally, Auto-IP assigns a linklocal IP address of 169.254.0.0 with a subnet mask address of 255.255.0.0.



CAUSE
This problem occurs because the time-out value that is defined in the DHCP_TIMEOUT_AUTOCFG environment variable is too short for some DHCP servers to reply to a DHCP discovery request.



Software update information
A supported software update is now available from Microsoft as Windows CE 5.0 Platform Builder Monthly Update (September 2006). You can confirm this by scrolling to the &quot;File information&quot; section of this article. The package file name contains the product version, date, Knowledge Base article number, and processor type. The package file name format is:

Product version-yymmdd-kbnnnnnn-processor type

For example: Wincepb50-060503-kb917590-armv4i.msi is the ARMV4i Windows CE 5.0 Platform Builder fix that is documented in KB article 917590 and that is contained in the May 2006 monthly update. To resolve this problem immediately, click the following article number for information about obtaining Windows CE Platform Builder and core operating system software updates:

837392 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products

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

Restart requirement
After you apply this software update, you must perform a clean build of the whole operating system. To clean the operating system, click Clean on the Build menu. To build the operating system, click Build Platform on the Build menu. You do not have to restart the computer after you apply this software update.

Software update replacement information
This software update does not replace any other software updates.

File information
The English version of this software update package has the file attributes or the later file attributes that are listed in the following table.

The English version of this software update 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.



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



MORE INFORMATION
This hotfix added a new registry subkey that lets you configure a custom default time-out value. The following registry subkey indicates a default value of 1000 ms (3E8 hexadecimal):

&quot;AutoTimeout&quot;=dword:3E8

To help troubleshoot the various times, add the following debug code. Open the \PRIVATE\WINCEOS\COMM\DHCP\PACKET.C file, and then replace line 966 with the following two lines. Timeval.tv_usec = (cTimeLeft % 1000)*1000; DEBUGMSG(ZONE_AUTOIP, (TEXT(&quot;SendDhcpPkt: Timeval = %d s, %d us\n&quot;), Timeval.tv_sec, Timeval.tv_usec)); This change shows how much the AddFuzz function changes the configured time-out value.

Keywords: kbpubtypekc kbqfe kbfix kbbug KB924785

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.