23 Jul
2019
23 Jul
'19
04:45
http://bugzilla.suse.com/show_bug.cgi?id=1139983 http://bugzilla.suse.com/show_bug.cgi?id=1139983#c3 --- Comment #3 from Stanislav Brabec <sbrabec@suse.com> --- Actually, the whole heuristic just picks a proper interface. It contains no heuristic for a proper IP address of the interface. It just prints the first one. getifaddrs() returns linked list of struct ifaddrs. for (p = addrs; p; p = p->ifa_next) goex through addresses, but once any single address is found (if (addr)), it is printed and function returns. If I comment out the "return" there, it will print all addresses. We always need to go through all returned addresses and pick the most proper one. -- You are receiving this mail because: You are on the CC list for the bug.