From aa204b0a4b586a3bfec532c16bd64a5964f092f5 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 11 Nov 2004 04:20:45 +0000 Subject: [PATCH] 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. --- src/rx/rx_getaddr.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5