From: Jérémie Galarneau Date: Fri, 19 Feb 2016 19:32:21 +0000 (-0500) Subject: Fix: Set loopback adress in set_ip_addr if gethostbyname2 fails X-Git-Tag: v2.9.0-rc1~305 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=1b7c93cbef5f1c0497f65c9b48b3487e1f6c6034;hp=1b7c93cbef5f1c0497f65c9b48b3487e1f6c6034 Fix: Set loopback adress in set_ip_addr if gethostbyname2 fails Some systems may not have "localhost" defined in accordance with IETF RFC 6761. According to this RFC, applications may recognize "localhost" names as special and resolve to the appropriate loopback address. We choose to use the system name resolution API first to honor its network configuration. If this fails, we resolve to the appropriate loopback address. This is done to accomodate systems which may want to start tracing before their network configured. Signed-off-by: Jérémie Galarneau ---