Author: cgutman Date: Thu Aug 20 02:54:27 2009 New Revision: 42787
URL: http://svn.reactos.org/svn/reactos?rev=42787&view=rev Log: - Allow binding to an interface's broadcast address - Set address type
Modified: trunk/reactos/lib/drivers/ip/network/interface.c
Modified: trunk/reactos/lib/drivers/ip/network/interface.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/ip/network/inte... ============================================================================== --- trunk/reactos/lib/drivers/ip/network/interface.c [iso-8859-1] (original) +++ trunk/reactos/lib/drivers/ip/network/interface.c [iso-8859-1] Thu Aug 20 02:54:27 2009 @@ -88,7 +88,6 @@ * RETURNS: * Pointer to address entry if found, NULL if not found * NOTES: - * Only unicast addresses are considered. * If found, the address is referenced */ BOOLEAN AddrLocateADEv4( @@ -101,7 +100,9 @@ TcpipAcquireSpinLock(&InterfaceListLock, &OldIrql);
ForEachInterface(CurrentIF) { - if( AddrIsEqualIPv4( &CurrentIF->Unicast, MatchAddress ) ) { + if( AddrIsEqualIPv4( &CurrentIF->Unicast, MatchAddress ) || + AddrIsEqualIPv4( &CurrentIF->Broadcast, MatchAddress ) ) { + Address->Type = IP_ADDRESS_V4; Address->Address.IPv4Address = MatchAddress; Matched = TRUE; break; }