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)
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);