- Don't set AT_ARP for the loopback interface
authorCameron Gutman <aicommander@gmail.com>
Tue, 20 Oct 2009 03:54:27 +0000 (03:54 +0000)
committerCameron Gutman <aicommander@gmail.com>
Tue, 20 Oct 2009 03:54:27 +0000 (03:54 +0000)
 - Remove hacks in iphlpapi that hid this bug

svn path=/trunk/; revision=43636

reactos/dll/win32/iphlpapi/ipstats_reactos.c
reactos/drivers/network/tcpip/tcpip/iinfo.c

index 7fb7cbf..fe54c48 100644 (file)
@@ -513,8 +513,7 @@ DWORD getNumArpEntries(void)
 
     for( i = 0; i < numEntities; i++ ) {
         if( isInterface( &entitySet[i] ) &&
-           hasArp( tcpFile, &entitySet[i] ) &&
-           !isLoopback( tcpFile, &entitySet[i] ) ) {
+           hasArp( tcpFile, &entitySet[i] ) ) {
 
            status = tdiGetSetOfThings( tcpFile,
                                        INFO_CLASS_PROTOCOL,
@@ -574,8 +573,7 @@ PMIB_IPNETTABLE getArpTable(void)
 
     for( i = 0; i < numEntities; i++ ) {
         if( isInterface( &entitySet[i] ) &&
-           hasArp( tcpFile, &entitySet[i] ) &&
-           !isLoopback( tcpFile, &entitySet[i] ) ) {
+           hasArp( tcpFile, &entitySet[i] ) ) {
 
            status = tdiGetSetOfThings( tcpFile,
                                        INFO_CLASS_PROTOCOL,
index 4612c1a..f16e1e2 100644 (file)
@@ -197,7 +197,7 @@ VOID InsertTDIInterfaceEntity( PIP_INTERFACE Interface ) {
     EntityList[EntityCount].tei_entity   = AT_ENTITY;
     EntityList[EntityCount].tei_instance = ATCount;
     EntityList[EntityCount].context      = Interface;
-    EntityList[EntityCount].flags        = AT_ARP;
+    EntityList[EntityCount].flags        = (Interface != Loopback) ? AT_ARP : AT_NULL;
     EntityCount++;
 
     TcpipReleaseSpinLock( &EntityListLock, OldIrql );