1
1
openmpi/opal/mca/btl
Jeff Squyres 5dae086f7e btl/tcp: output the IP address correctly
Per
https://github.com/open-mpi/ompi/issues/3035#issuecomment-426085673,
it looks like the IP address for a given interface is being stashed in
two places: on the endpoint and on the module.

1. On the endpoint, it is storing the moral equivalent of a
   (struct sockaddr_in.sin_addr).
2. On the module, it is storing a full (struct sockaddr_storage).

The call to opal_net_get_hostname() expects a full (struct sockaddr*)
-- not just the stripped-down (struct sockaddr_in.sin_addr).  Hence,
when the original code was passing in the endpoint's (struct
sockaddr_in.sin_addr) and opal_net_get_hostname() was treating it
like a (struct sockaddr), hilarity ensued (i.e., we got the wrong
output).

This commit eliminates the call to opal_net_get_hostname() and just
calls inet_ntop() directly to convert the (struct
sockaddr_in.sin_addr) to a string.

NOTE: Per the github comment cited above, there can be a disparity
between the IP address cached on the endpoint vs. the IP address
cached on the module.  This only happens with interfaces that have
more than one IP address.  This commit does not fix that issue.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
2018-10-01 16:12:57 -07:00
..
base opal/btl: add support for flushing RDMA/atomic operations 2018-02-13 12:49:51 -07:00
ofi opal: fix warning 2018-09-21 00:51:40 -06:00
openib Squash a bunch of harmless compiler warnings. 2018-09-26 12:15:21 -07:00
portals4 opal: add types for atomic variables 2018-09-14 10:48:55 -06:00
self mca: Dynamic components link against project lib 2017-08-24 11:56:16 -04:00
sm btl/sm: fix CID 1415105 2018-03-26 14:21:21 -07:00
smcuda opal: add types for atomic variables 2018-09-14 10:48:55 -06:00
tcp btl/tcp: output the IP address correctly 2018-10-01 16:12:57 -07:00
template mca: Dynamic components link against project lib 2017-08-24 11:56:16 -04:00
uct opal: add types for atomic variables 2018-09-14 10:48:55 -06:00
ugni opal: add types for atomic variables 2018-09-14 10:48:55 -06:00
usnic btl/usnic: missed a preprocessor check in d36648b 2018-02-19 07:03:05 -08:00
vader Merge pull request #5696 from hjelmn/vader_5375 2018-09-14 12:33:35 -06:00
btl.h btl/vader: add support for atomics and emulated rdma 2018-07-02 13:57:11 -06:00
Makefile.am Purge whitespace from the repo 2015-06-23 20:59:57 -07:00