mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 12:17:30 +00:00
- Allow binding to an interface's broadcast address
- Set address type svn path=/trunk/; revision=42787
This commit is contained in:
parent
023b3bfa2a
commit
9757ce3f97
1 changed files with 3 additions and 2 deletions
|
@ -88,7 +88,6 @@ NTSTATUS GetInterfaceName( PIP_INTERFACE Interface,
|
|||
* 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 @@ BOOLEAN AddrLocateADEv4(
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue