You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Anindya Sinha (JIRA)" <ji...@apache.org> on 2014/09/26 23:20:34 UTC
[jira] [Created] (MESOS-1835) Check for IP address being localhost
not platform independent
Anindya Sinha created MESOS-1835:
------------------------------------
Summary: Check for IP address being localhost not platform independent
Key: MESOS-1835
URL: https://issues.apache.org/jira/browse/MESOS-1835
Project: Mesos
Issue Type: Bug
Components: libprocess
Affects Versions: 0.20.1
Reporter: Anindya Sinha
In process::initialize() [3rdparty/src/libprocess/process.cpp], check for __ip__ for localhost (127.0.0.1) is done by checking if __ip__ == 2130706433. However, it could be either 2130706433 or 16777343 depending on endianness. This check should succeed independent of the endianness, so would be good to do a 'inet_ntop' and then compare against the string for 127.0.0.1.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)