[
https://issues.apache.org/jira/browse/MESOS-1919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14203272#comment-14203272
]
Evelina Dumitrescu commented on MESOS-1919:
-------------------------------------------
How is it going to be decided the family type for libprocess and mesos?
Currently, in libporcess the default __ip__ is set to 0:
static uint32_t __ip__ = 0;
Should we set the default ip to AF_INET and 0.0.0.0 ?
Should we allow binding on both IPv6 and IPv4 addresses(and make sure that at
least one of them is defined) and let the other endpoint decide which protocol
to use to connect?
This envolves to define another environment variable, LIBPROCESS_IPV6. If this
variables are not defined, when we look for the public IP address call
gethostbyname2 for both AF_INET/AF_INET6?
In this case, which values to store in __ip__ (libprocess has a single variable
to store the IP)?
Otherwise, if we use only one type of protocol family we have to tell
libprocess which type to use, ie by defining an additional environment variable
LIBPROCESS_INET_ FAMILY .
The same thing happends also to mesos in port_mapping. If we decide to use only
a single family type, should we pass a flag to this module?
> Create IP address abstraction
> -----------------------------
>
> Key: MESOS-1919
> URL: https://issues.apache.org/jira/browse/MESOS-1919
> Project: Mesos
> Issue Type: Task
> Components: libprocess
> Reporter: Dominic Hamon
> Assignee: Evelina Dumitrescu
> Priority: Minor
>
> in the code many functions need only the ip address to be passed as a
> parameter. I don't think it would be desirable to use a struct
> SockaddrStorage (MESOS-1916).
> Consider using a {{std::vector<unsigned char>}} (see {{typedef
> std::vector<unsigned char> IPAddressNumber;}} in the Chromium project)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)