buffer for the SIOCGIFCONF ioctl to complete successfully. Also, use
the sa_len member of if ifreq's ifr_addr member, if available, for
computing offsets of the ifreq structures.
Since this has the potential to break people, setting the env
variable OMPI_orig_if will result in the old code being used. This
will be removed once the new code survives a couple days in the
wild.
This commit was SVN r3845.
OMPI_ERROR if it found something and OMPI_SUCCESS otherwise). Also
look for INADDR_NONE instead of INADDR_ANY as the return from inet_addr()
* add convinience function ompi_ifislocal to quickly test if a given
hostname or IP address (in dotted-quad form) is a local address
* don't ssh to the local machine, but fork() / exec() the bootproxy directly
if ompi_ifislocal returns true *AND* there is no username specified
for the given host
* remove the llm hack to translate localhost -> local machine name
This commit was SVN r3450.
should really be advancing by sizeof(struct ifreq) --
sizeof(ifr->ifr_name) + sizeof(struct sockaddr) may be smaller than
sizeof(struct ifreq). More specifically, the second element of struct
ifreq may be a union, of which struct sockaddr is only one element
(and may not be the smallest).
This commit was SVN r3441.
1. header file and source file protections using #ifdef WIN32
2. new files and directories to support windows functionality
3. appropritate linkage symbols added (OMPI_DECLSPEC) for windows
4. some functions are unimplemented on the windows side. this is mostly
because there might not be need to implement it in windows land. eg., forking
a daemon off
5. Introduced locking mechanisms for windows
This commit was SVN r3286.
- Add #include "ompi_config.h" to all .c files, and ensure that it's
the first #included file
- remove a few useless #if HAVE_CONFIG_H checks
This commit was SVN r3229.