diff --git a/checkin_notes b/checkin_notes index a19194a4e7..6bc08ea8b8 100755 --- a/checkin_notes +++ b/checkin_notes @@ -13922,3 +13922,9 @@ Daniel 17 June 2004 hostinfo_unix.C hostinfo_network.C +Rom 17 June 2004 + - Add an additional path to the list of pings to try. + /usr/sbin + + client/ + hostinfo_network.C diff --git a/client/hostinfo_network.C b/client/hostinfo_network.C index e1f8162e8a..b44a50adad 100644 --- a/client/hostinfo_network.C +++ b/client/hostinfo_network.C @@ -120,7 +120,15 @@ int get_local_network_info( retval = try_ping(buf, domain_name, domlen, ip_addr, iplen); if (retval) { sprintf(buf, "ping -c 1 %s > %s 2>/dev/null", hostname, TEMP_FILE_NAME); - return try_ping(buf, domain_name, domlen, ip_addr, iplen); + retval = try_ping(buf, domain_name, domlen, ip_addr, iplen); + if (retval) { + sprintf(buf, "/usr/sbin/ping -c 1 -w 1 %s > %s 2>/dev/null", hostname, TEMP_FILE_NAME); + retval = try_ping(buf, domain_name, domlen, ip_addr, iplen); + if (retval) { + sprintf(buf, "/usr/sbin/ping -c 1 %s > %s 2>/dev/null", hostname, TEMP_FILE_NAME); + return try_ping(buf, domain_name, domlen, ip_addr, iplen); + } + } } return 0; }