![Rainer Keller](/assets/img/avatar_default.png)
- Delete unnecessary header files using contrib/check_unnecessary_headers.sh after applying patches, that include headers, being "lost" due to inclusion in one of the now deleted headers... In total 817 files are touched. In ompi/mpi/c/ header files are moved up into the actual c-file, where necessary (these are the only additional #include), otherwise it is only deletions of #include (apart from the above additions required due to notifier...) - To get different MCAs (OpenIB, TM, ALPS), an earlier version was successfully compiled (yesterday) on: Linux locally using intel-11, gcc-4.3.2 and gcc-SVN + warnings enabled Smoky cluster (x86-64 running Linux) using PGI-8.0.2 + warnings enabled Lens cluster (x86-64 running Linux) using Pathscale-3.2 + warnings enabled This commit was SVN r21096.
81 строка
2.1 KiB
C
81 строка
2.1 KiB
C
/*
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
* University Research and Technology
|
|
* Corporation. All rights reserved.
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
|
* of Tennessee Research Foundation. All rights
|
|
* reserved.
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
* University of Stuttgart. All rights reserved.
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
* All rights reserved.
|
|
* $COPYRIGHT$
|
|
*
|
|
* Additional copyrights may follow
|
|
*
|
|
* $HEADER$
|
|
*/
|
|
/** @file:
|
|
*
|
|
* Contains header used by tcp oob.
|
|
*/
|
|
|
|
#ifndef _MCA_OOB_TCP_ADDR_H_
|
|
#define _MCA_OOB_TCP_ADDR_H_
|
|
|
|
#include "orte_config.h"
|
|
#include "orte/types.h"
|
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
|
#include <sys/types.h>
|
|
#endif
|
|
#ifdef HAVE_NETINET_IN_H
|
|
#include <netinet/in.h>
|
|
#endif
|
|
|
|
#include "opal/class/opal_object.h"
|
|
|
|
|
|
BEGIN_C_DECLS
|
|
|
|
#define MCA_OOB_TCP_ADDR_UNCLASSIFIED 0 /* we don't know anything */
|
|
#define MCA_OOB_TCP_ADDR_MATCHED 1 /* peer has IP on the same LAN */
|
|
#define MCA_OOB_TCP_ADDR_IPV6 2 /* peer has an IPv6 address */
|
|
#define MCA_OOB_TCP_ADDR_IPV4public 4 /* peer has public IPv4 address */
|
|
|
|
#define MCA_OOB_TCP_ADDR_TYPE_AFINET 0x01
|
|
#define MCA_OOB_TCP_ADDR_TYPE_AFINET6 0x02
|
|
|
|
/**
|
|
* Address info published to registry
|
|
*/
|
|
struct mca_oob_tcp_addr_t {
|
|
opal_object_t super;
|
|
orte_process_name_t addr_name;
|
|
orte_std_cntr_t addr_count;
|
|
orte_std_cntr_t addr_next;
|
|
orte_std_cntr_t addr_alloc;
|
|
orte_std_cntr_t addr_matched;/* status of already tried address classes */
|
|
struct sockaddr_storage *addr_inet; /* yes, we want storage here, so the indexes work out... */
|
|
};
|
|
typedef struct mca_oob_tcp_addr_t mca_oob_tcp_addr_t;
|
|
|
|
OBJ_CLASS_DECLARATION(mca_oob_tcp_addr_t);
|
|
|
|
/**
|
|
*
|
|
*/
|
|
|
|
int mca_oob_tcp_addr_insert(mca_oob_tcp_addr_t*, const struct sockaddr*);
|
|
|
|
/**
|
|
*
|
|
*/
|
|
|
|
int mca_oob_tcp_addr_get_next(mca_oob_tcp_addr_t*, struct sockaddr*);
|
|
|
|
END_C_DECLS
|
|
|
|
#endif
|
|
|