From: Derrick Brashear Date: Tue, 7 Dec 2004 05:48:55 +0000 (+0000) Subject: STABLE14-mask-loopback-address-allow-loopback-interfaces-to-be-advertised-20041110 X-Git-Tag: openafs-devel-1_3_75~54 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5b9660aba0dabbcdbe56c9e094fbb1efc9259279;p=packages%2Fo%2Fopenafs.git STABLE14-mask-loopback-address-allow-loopback-interfaces-to-be-advertised-20041110 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) --- diff --git a/src/rx/rx_getaddr.c b/src/rx/rx_getaddr.c index cb7c7e1ab..ede8a776d 100644 --- a/src/rx/rx_getaddr.c +++ b/src/rx/rx_getaddr.c @@ -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);