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.8.0~153 X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=b53851f33be0aa344598624efc6336c8827f60b1;hp=b53851f33be0aa344598624efc6336c8827f60b1;p=lttng-tools.git 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 ---