13
13
* All rights reserved.
14
14
* Copyright (c) 2010-2011 Cisco Systems, Inc. All rights reserved.
15
15
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
16
+ * Copyright (c) 2017 Research Organization for Information Science
17
+ * and Technology (RIST). All rights reserved.
16
18
*
17
19
* $COPYRIGHT$
18
20
*
32
34
* the message came from an external (to
33
35
* this component) source
34
36
*/
35
- typedef enum {
36
- MCA_OOB_TCP_IDENT ,
37
- MCA_OOB_TCP_PROBE ,
38
- MCA_OOB_TCP_PING ,
39
- MCA_OOB_TCP_USER
40
- } mca_oob_tcp_msg_type_t ;
37
+ typedef uint8_t mca_oob_tcp_msg_type_t ;
38
+
39
+ #define MCA_OOB_TCP_IDENT 1
40
+ #define MCA_OOB_TCP_PROBE 2
41
+ #define MCA_OOB_TCP_PING 3
42
+ #define MCA_OOB_TCP_USER 4
41
43
42
44
#define ORTE_MAX_RTD_SIZE 31
43
45
@@ -54,14 +56,14 @@ typedef struct {
54
56
* and let some other module try to send it
55
57
*/
56
58
orte_process_name_t dst ;
57
- /* type of message */
58
- mca_oob_tcp_msg_type_t type ;
59
59
/* the rml tag where this message is headed */
60
60
orte_rml_tag_t tag ;
61
61
/* the seq number of this message */
62
62
uint32_t seq_num ;
63
63
/* number of bytes in message */
64
64
uint32_t nbytes ;
65
+ /* type of message */
66
+ mca_oob_tcp_msg_type_t type ;
65
67
/* routed module to be used */
66
68
char routed [ORTE_MAX_RTD_SIZE + 1 ];
67
69
} mca_oob_tcp_hdr_t ;
@@ -71,7 +73,6 @@ typedef struct {
71
73
#define MCA_OOB_TCP_HDR_NTOH (h ) \
72
74
ORTE_PROCESS_NAME_NTOH((h)->origin); \
73
75
ORTE_PROCESS_NAME_NTOH((h)->dst); \
74
- (h)->type = ntohl((h)->type); \
75
76
(h)->tag = ORTE_RML_TAG_NTOH((h)->tag); \
76
77
(h)->nbytes = ntohl((h)->nbytes);
77
78
@@ -81,7 +82,6 @@ typedef struct {
81
82
#define MCA_OOB_TCP_HDR_HTON (h ) \
82
83
ORTE_PROCESS_NAME_HTON((h)->origin); \
83
84
ORTE_PROCESS_NAME_HTON((h)->dst); \
84
- (h)->type = htonl((h)->type); \
85
85
(h)->tag = ORTE_RML_TAG_HTON((h)->tag); \
86
86
(h)->nbytes = htonl((h)->nbytes);
87
87
0 commit comments