]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-mask-loopback-address-allow-loopback-interfaces-to-be-advertised-20041110
authorDerrick Brashear <shadow@dementia.org>
Tue, 7 Dec 2004 05:48:55 +0000 (05:48 +0000)
committerDerrick Brashear <shadow@dementia.org>
Tue, 7 Dec 2004 05:48:55 +0000 (05:48 +0000)
some software network adapters use instances of lo but are real network adapters
. allow them to be advertised. the modified functions are called only in the pro
cess of collecting a list to advertise.

at the same time, make sure we mask 127.0.0.1.
i wonder if that's a mistake.

(cherry picked from commit aa204b0a4b586a3bfec532c16bd64a5964f092f5)

src/rx/rx_getaddr.c

index cb7c7e1ab6880b0d7d32aa683f17cca496fd47db..ede8a776dc881865a22214205d48525d05c39288 100644 (file)
@@ -456,6 +456,9 @@ rxi_getAllAddrMaskMtu(afs_int32 addrBuffer[], afs_int32 maskBuffer[],
                continue;       /* ignore this address */
            }
 
+            if (a->sin_addr.s_addr == htonl(0x7f000001) )
+                continue;   /* skip loopback address as well. */
+
            if (count >= maxSize) {     /* no more space */
                printf("Too many interfaces..ignoring 0x%x\n",
                       a->sin_addr.s_addr);