Article ID: 924785 - Last Review: October 20, 2006 - Revision: 1.2

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

On This Page

Expand all | Collapse all

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.

RESOLUTION

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 "File information" 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  (http://support.microsoft.com/kb/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.
Collapse this tableExpand this table
File nameFile sizeDateTime
Wincepb50-060920-kb924785-armv4i.msi642,04820-Sep-200621:52
Wincepb50-060920-kb924785-mipsii.msi651,26420-Sep-200621:52
Wincepb50-060920-kb924785-mipsii_fp.msi651,26420-Sep-200621:52
Wincepb50-060920-kb924785-mipsiv.msi653,31220-Sep-200621:52
Wincepb50-060920-kb924785-mipsiv_fp.msi653,31220-Sep-200621:52
Wincepb50-060920-kb924785-sh4.msi638,97620-Sep-200621:52
Wincepb50-060920-kb924785-x86.msi625,15220-Sep-200621:52
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.
Collapse this tableExpand this table
File nameFile sizeDateTimePath
Dhcp.c84,70408-Sep-200601:01Private\Winceos\Comm\Dhcp
Dhcpp.h9,55008-Sep-200601:01Private\Winceos\Comm\Dhcp
Packet.c32,63308-Sep-200601:01Private\Winceos\Comm\Dhcp
Dhcp.lib312,27608-Sep-200601:00Public\Common\Oak\Lib\Armv4i\Debug
Dhcp.lib166,34808-Sep-200601:00Public\Common\Oak\Lib\Armv4i\Retail
Dhcp.lib317,26608-Sep-200601:00Public\Common\Oak\Lib\Mipsii\Debug
Dhcp.lib171,31208-Sep-200601:00Public\Common\Oak\Lib\Mipsii\Retail
Dhcp.lib317,30408-Sep-200601:01Public\Common\Oak\Lib\Mipsii_fp\Debug
Dhcp.lib171,33208-Sep-200601:01Public\Common\Oak\Lib\Mipsii_fp\Retail
Dhcp.lib321,62808-Sep-200601:01Public\Common\Oak\Lib\Mipsiv\Debug
Dhcp.lib172,42608-Sep-200601:01Public\Common\Oak\Lib\Mipsiv\Retail
Dhcp.lib321,67008-Sep-200601:01Public\Common\Oak\Lib\Mipsiv_fp\Debug
Dhcp.lib172,44808-Sep-200601:01Public\Common\Oak\Lib\Mipsiv_fp\Retail
Dhcp.lib281,33808-Sep-200601:00Public\Common\Oak\Lib\Sh4\Debug
Dhcp.lib154,97208-Sep-200601:00Public\Common\Oak\Lib\Sh4\Retail
Dhcp.lib276,55408-Sep-200601:00Public\Common\Oak\Lib\X86\Debug
Dhcp.lib149,66808-Sep-200601:00Public\Common\Oak\Lib\X86\Retail

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" 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):
HKEY_LOCAL_MACHINE\Comm\<AdaptorName>\Parms\TCPIP
"AutoTimeout"=dword:3E8
To help troubleshoot the various times, add the following debug code. Open the <WINCE500>\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("SendDhcpPkt: Timeval = %d s, %d us\n"), Timeval.tv_sec, Timeval.tv_usec));
This change shows how much the AddFuzz() function changes the configured time-out value.

APPLIES TO
  • Microsoft Windows CE 5.0
Keywords: 
kbpubtypekc kbqfe kbfix kbbug KB924785
 

Article Translations

 

Related Support Centers