Article ID: 957620 - Last Review: November 10, 2008 - Revision: 1.0 FIX: On a Windows CE 5.0-based device, the UDP packets are sent from all the network adapters when an application sends some UDP packets to a limited broadcast addressOn This PageSYMPTOMSYou
have a Microsoft Windows CE 5.0-based device that
is equipped with multiple network adapters. When an
application sends some User Datagram Protocol (UDP) packets to a limited
broadcast address by using a socket of the SOCK_DGRAM
type, the UDP packets are sent from
all the network adapters. However, you
expect the UDP packets to be sent from only the network
adapter to
which the socket is bound.
Additionally, the source IP addresses of the UDP packets are set to the IP address of the network adapter to which the socket is bound. CAUSEThis problem occurs because of the design of the weak host model that is used in Windows CE 5.0. RESOLUTIONSoftware update informationA supported software update is now available from Microsoft as Windows CE 5.0 Platform Builder Monthly Update (October 2008). 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 After you apply this update, you can use a socket
I/O control command to force limited broadcast UDP packets to be sent from only the network adapter to
which the socket is bound.
After
the socket is bound to a network adapter, the
application that sends the limited broadcast UDP packets should call the ioctlsocket function by setting the cmd parameter to SIO_LIMIT_BROADCASTS and the argp parameter to 2.Note Setting the argp parameter to 2 means that the UDP packets are sent from only the source. To do this, you can use code that resembles the following. PrerequisitesThis update is supported only if all previously issued updates for this product are also installed.Restart requirementAfter you apply this update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
Update replacement informationThis update does not replace any other updates.File informationThe English version of this package has the file attributes (or later file attributes) that are listed in the following table.Collapse this table
Collapse this table
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
in the "Applies to" section. MORE INFORMATIONFor more information about the ioctlsocket function, visit the following Microsoft Developer Network (MSDN)
Web site: http://msdn.microsoft.com/en-us/library/ms738573.aspx
(http://msdn.microsoft.com/en-us/library/ms738573.aspx)
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:824684
(http://support.microsoft.com/kb/824684/
)
Description of the standard terminology that is used to describe Microsoft software updates
| Article Translations
|
Back to the top
