10 #ifndef OPAL_MCA_IF_IF_H
11 #define OPAL_MCA_IF_IF_H
13 #include "opal_config.h"
20 #ifdef HAVE_SYS_TYPES_H
21 #include <sys/types.h>
23 #ifdef HAVE_SYS_SOCKET_H
24 #include <sys/socket.h>
26 #ifdef HAVE_SYS_SOCKIO_H
27 #include <sys/sockio.h>
29 #ifdef HAVE_SYS_IOCTL_H
30 #include <sys/ioctl.h>
32 #ifdef HAVE_NETINET_IN_H
33 #include <netinet/in.h>
35 #ifdef HAVE_ARPA_INET_H
36 #include <arpa/inet.h>
39 #if defined(__APPLE__) && defined(_LP64)
53 #if defined(__APPLE__) && defined(_LP64)
64 #include "opal/util/if.h"
66 #include "opal/mca/base/base.h"
78 #if !defined(INADDR_NONE)
79 #define INADDR_NONE -1
82 #define DEFAULT_NUMBER_INTERFACES 10
83 #define MAX_IFCONF_SIZE 10 * 1024 * 1024
88 char if_name[IF_NAMESIZE];
90 uint16_t if_kernel_index;
100 struct sockaddr_in if_bcast;
102 uint32_t if_bandwidth;
111 OPAL_DECLSPEC
extern bool opal_if_do_not_resolve;
112 OPAL_DECLSPEC
extern bool opal_if_retain_loopback;
131 #define OPAL_IF_BASE_VERSION_2_0_0 \
132 MCA_BASE_VERSION_2_0_0, \
Common type for all MCA components.
Definition: mca.h:250
mca_base_component_data_t component_data
MCA base data.
Definition: if.h:121
Structure for if components.
Definition: if.h:117
mca_base_component_t component
MCA base component.
Definition: if.h:119
Top-level interface for all MCA components.
Definition: opal_list.h:98
Definition: util-internal.h:214
Meta data for MCA v2.0.0 components.
Definition: mca.h:309
Definition: opal_list.h:147
#define OBJ_CLASS_DECLARATION(NAME)
Declaration for class descriptor.
Definition: opal_object.h:236