Author: tfaber
Date: Tue May 10 13:42:57 2016
New Revision: 71305
URL:
http://svn.reactos.org/svn/reactos?rev=71305&view=rev
Log:
[IPHLPAPI]
- Tabs to spaces. No code changes.
Modified:
trunk/reactos/dll/win32/iphlpapi/ifenum_reactos.c
Modified: trunk/reactos/dll/win32/iphlpapi/ifenum_reactos.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/iphlpapi/ifenum_…
==============================================================================
--- trunk/reactos/dll/win32/iphlpapi/ifenum_reactos.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/iphlpapi/ifenum_reactos.c [iso-8859-1] Tue May 10 13:42:57
2016
@@ -183,21 +183,21 @@
TDIEntityID ip_ent;
int j;
- status = getNthIpEntity( tcpFile, curInterf, &ip_ent );
- if( NT_SUCCESS(status) )
- status = tdiGetIpAddrsForIpEntity
- ( tcpFile, &ip_ent, &addrs, &numAddrs );
- for( j = 0; j < numAddrs && NT_SUCCESS(status); j++ ) {
- TRACE("ADDR %d: index %d (target %d)\n", j, addrs[j].iae_index,
infoSetInt[curInterf].if_info.ent.if_index);
- if( addrs[j].iae_index ==
- infoSetInt[curInterf].if_info.ent.if_index ) {
- memcpy( &infoSetInt[curInterf].ip_addr,
- &addrs[j],
- sizeof( addrs[j] ) );
- curInterf++;
- break;
- }
- }
+ status = getNthIpEntity( tcpFile, curInterf, &ip_ent );
+ if( NT_SUCCESS(status) )
+ status = tdiGetIpAddrsForIpEntity
+ ( tcpFile, &ip_ent, &addrs, &numAddrs );
+ for( j = 0; j < numAddrs && NT_SUCCESS(status); j++ ) {
+ TRACE("ADDR %d: index %d (target %d)\n", j,
addrs[j].iae_index, infoSetInt[curInterf].if_info.ent.if_index);
+ if( addrs[j].iae_index ==
+ infoSetInt[curInterf].if_info.ent.if_index ) {
+ memcpy( &infoSetInt[curInterf].ip_addr,
+ &addrs[j],
+ sizeof( addrs[j] ) );
+ curInterf++;
+ break;
+ }
+ }
}
}
}
@@ -243,7 +243,7 @@
for( i = 0; i < numEntities; i++ ) {
if( isInterface( &entitySet[i] ) &&
(!onlyNonLoopback ||
- (onlyNonLoopback && !isLoopback( tcpFile, &entitySet[i] ))) )
+ (onlyNonLoopback && !isLoopback( tcpFile, &entitySet[i] ))) )
numInterfaces++;
}
@@ -406,9 +406,9 @@
status = getInterfaceInfoSet( tcpFile, &ifInfo, &numInterfaces );
TRACE("InterfaceInfoSet: %08x, %04x:%08x\n",
- status,
- ifInfo->entity_id.tei_entity,
- ifInfo->entity_id.tei_instance);
+ status,
+ ifInfo->entity_id.tei_entity,
+ ifInfo->entity_id.tei_instance);
if( NT_SUCCESS(status) ) {
ret = (InterfaceIndexTable *)
@@ -418,13 +418,13 @@
if (ret) {
ret->numAllocated = numInterfaces;
- TRACE("NumInterfaces = %d\n", numInterfaces);
+ TRACE("NumInterfaces = %d\n", numInterfaces);
for( i = 0; i < numInterfaces; i++ ) {
- TRACE("Examining interface %d\n", i);
+ TRACE("Examining interface %d\n", i);
if( !nonLoopbackOnly ||
!isLoopback( tcpFile, &ifInfo[i].entity_id ) ) {
- TRACE("Interface %d matches (%d)\n", i, curInterface);
+ TRACE("Interface %d matches (%d)\n", i, curInterface);
ret->indexes[curInterface++] =
ifInfo[i].if_info.ent.if_index;
}
@@ -633,7 +633,7 @@
if (string)
strncpy(string, inet_ntoa(iAddr), 16);
-
+
return inet_ntoa(iAddr);
}