2004-09-02 14:20:13 +00:00
|
|
|
/*
|
2005-11-05 19:57:48 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
2006-08-23 03:32:36 +00:00
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
2005-11-05 19:57:48 +00:00
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 12:43:37 +00:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-09-02 14:20:13 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
/** @file:
|
|
|
|
*
|
|
|
|
* Contains header used by tcp oob.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _MCA_OOB_TCP_ADDR_H_
|
|
|
|
#define _MCA_OOB_TCP_ADDR_H_
|
|
|
|
|
2006-02-12 01:33:29 +00:00
|
|
|
#include "orte_config.h"
|
2008-02-28 01:57:57 +00:00
|
|
|
#include "orte/types.h"
|
|
|
|
|
2004-10-22 16:06:05 +00:00
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
2004-09-02 14:20:13 +00:00
|
|
|
#include <sys/types.h>
|
2004-10-22 16:06:05 +00:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_NETINET_IN_H
|
2004-09-02 14:20:13 +00:00
|
|
|
#include <netinet/in.h>
|
2004-10-22 16:06:05 +00:00
|
|
|
#endif
|
2008-02-28 01:57:57 +00:00
|
|
|
|
2005-07-03 16:06:07 +00:00
|
|
|
#include "opal/class/opal_object.h"
|
2008-02-28 01:57:57 +00:00
|
|
|
|
|
|
|
#include "opal/dss/dss.h"
|
2007-04-25 19:08:07 +00:00
|
|
|
|
|
|
|
BEGIN_C_DECLS
|
2007-04-25 01:55:40 +00:00
|
|
|
|
|
|
|
#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
|
2007-07-20 01:34:02 +00:00
|
|
|
#define MCA_OOB_TCP_ADDR_TYPE_AFINET6 0x02
|
2007-04-25 01:55:40 +00:00
|
|
|
|
2004-09-02 14:20:13 +00:00
|
|
|
/**
|
|
|
|
* Address info published to registry
|
|
|
|
*/
|
|
|
|
struct mca_oob_tcp_addr_t {
|
2005-07-03 16:06:07 +00:00
|
|
|
opal_object_t super;
|
2005-03-14 20:57:21 +00:00
|
|
|
orte_process_name_t addr_name;
|
2006-08-15 19:54:10 +00:00
|
|
|
orte_std_cntr_t addr_count;
|
|
|
|
orte_std_cntr_t addr_next;
|
|
|
|
orte_std_cntr_t addr_alloc;
|
2007-04-25 01:55:40 +00:00
|
|
|
orte_std_cntr_t addr_matched;/* status of already tried address classes */
|
2007-07-20 01:34:02 +00:00
|
|
|
struct sockaddr_storage *addr_inet; /* yes, we want storage here, so the indexes work out... */
|
2004-09-02 14:20:13 +00:00
|
|
|
};
|
|
|
|
typedef struct mca_oob_tcp_addr_t mca_oob_tcp_addr_t;
|
|
|
|
|
|
|
|
OBJ_CLASS_DECLARATION(mca_oob_tcp_addr_t);
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2007-07-20 01:34:02 +00:00
|
|
|
int mca_oob_tcp_addr_insert(mca_oob_tcp_addr_t*, const struct sockaddr*);
|
2004-09-02 14:20:13 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
2007-04-25 01:55:40 +00:00
|
|
|
|
2007-07-20 01:34:02 +00:00
|
|
|
int mca_oob_tcp_addr_get_next(mca_oob_tcp_addr_t*, struct sockaddr*);
|
2007-04-25 01:55:40 +00:00
|
|
|
|
2007-04-25 19:08:07 +00:00
|
|
|
END_C_DECLS
|
2004-09-02 14:20:13 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|