corosync  3.1.2
ipc_cfg.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2005 MontaVista Software, Inc.
3  * Copyright (c) 2009-2013 Red Hat, Inc.
4  *
5  * All rights reserved.
6  *
7  * Author: Steven Dake (sdake@redhat.com)
8  *
9  * This software licensed under BSD license, the text of which follows:
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions are met:
13  *
14  * - Redistributions of source code must retain the above copyright notice,
15  * this list of conditions and the following disclaimer.
16  * - Redistributions in binary form must reproduce the above copyright notice,
17  * this list of conditions and the following disclaimer in the documentation
18  * and/or other materials provided with the distribution.
19  * - Neither the name of the MontaVista Software, Inc. nor the names of its
20  * contributors may be used to endorse or promote products derived from this
21  * software without specific prior written permission.
22  *
23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
33  * THE POSSIBILITY OF SUCH DAMAGE.
34  */
35 #ifndef IPC_CFG_H_DEFINED
36 #define IPC_CFG_H_DEFINED
37 
38 #include <netinet/in.h>
39 #include <corosync/corotypes.h>
40 #include <corosync/mar_gen.h>
41 
42 #define CFG_INTERFACE_NAME_MAX_LEN 128
43 #define CFG_INTERFACE_STATUS_MAX_LEN 512
44 /*
45  * Too keep future ABI compatibility, this value
46  * is intentionaly bigger then INTERFACE_MAX
47  */
48 #define CFG_MAX_INTERFACES 16
49 
66 };
67 
89 };
90 
95  struct qb_ipc_request_header header __attribute__((aligned(8)));
96 };
97 
102  struct qb_ipc_response_header header __attribute__((aligned(8)));
103  mar_uint32_t interface_count __attribute__((aligned(8)));
104  char interface_name[CFG_MAX_INTERFACES][CFG_INTERFACE_NAME_MAX_LEN] __attribute__((aligned(8)));
105  char interface_status[CFG_MAX_INTERFACES][CFG_INTERFACE_STATUS_MAX_LEN] __attribute__((aligned(8)));
106 };
107 
112  struct qb_ipc_request_header header __attribute__((aligned(8)));
113  unsigned int nodeid __attribute__((aligned(8)));
115 };
116 
118  struct qb_ipc_response_header header __attribute__((aligned(8)));
120 };
121 
126  struct qb_ipc_response_header header __attribute__((aligned(8)));
127  struct corosync_cfg_node_status_v1 node_status __attribute__((aligned(8)));
128 };
129 
134  struct qb_ipc_request_header header __attribute__((aligned(8)));
135 };
136 
141  struct qb_ipc_response_header header __attribute__((aligned(8)));
142 };
143 
148  struct qb_ipc_request_header header __attribute__((aligned(8)));
149  unsigned int nodeid __attribute__((aligned(8)));
150  cs_name_t reason __attribute__((aligned(8)));
151 };
152 
157  struct qb_ipc_response_header header __attribute__((aligned(8)));
158 };
159 
164  struct qb_ipc_request_header header __attribute__((aligned(8)));
165  unsigned int flags;
166 };
167 
172  struct qb_ipc_response_header header __attribute__((aligned(8)));
173 };
174 
179  struct qb_ipc_request_header header __attribute__((aligned(8)));
180  unsigned int response;
181 };
182 
187  struct qb_ipc_response_header header __attribute__((aligned(8)));
188 };
189 
194  struct qb_ipc_response_header header __attribute__((aligned(8)));
195  unsigned int flags;
196 };
197 
202  struct qb_ipc_request_header header __attribute__((aligned(8)));
203  unsigned int nodeid;
204 };
205 
210  struct qb_ipc_response_header header __attribute__((aligned(8)));
211  unsigned int family;
212  unsigned int num_addrs;
213  /* array of TOTEMIP_ADDRLEN items */
214  char addrs[];
215 };
216 
221  struct qb_ipc_request_header header __attribute__((aligned(8)));
222 };
223 
228  struct qb_ipc_response_header header __attribute__((aligned(8)));
229  mar_uint32_t local_nodeid __attribute__((aligned(8)));
230 };
231 
236  struct qb_ipc_request_header header __attribute__((aligned(8)));
237 };
238 
243  struct qb_ipc_response_header header __attribute__((aligned(8)));
244 };
245 
250  struct qb_ipc_request_header header __attribute__((aligned(8)));
251 };
252 
257  struct qb_ipc_response_header header __attribute__((aligned(8)));
258 };
259 
261  struct qb_ipc_request_header header;
262  uint8_t track_flags;
263 };
264 
266  struct qb_ipc_response_header header;
267 };
268 
270  struct qb_ipc_request_header header;
271 };
272 
274  struct qb_ipc_response_header header;
275 };
276 
277 
281 typedef enum {
287 
291 typedef enum {
296 
300 typedef enum {
305 
306 
307 #endif /* IPC_CFG_H_DEFINED */
req_lib_cfg_replytoshutdown
The req_lib_cfg_replytoshutdown struct.
Definition: ipc_cfg.h:178
MESSAGE_REQ_CFG_NODESTATUSGET
@ MESSAGE_REQ_CFG_NODESTATUSGET
Definition: ipc_cfg.h:63
res_lib_cfg_tryshutdown
The res_lib_cfg_tryshutdown struct.
Definition: ipc_cfg.h:171
AIS_AMF_ADMINISTRATIVETARGET_SERVICEUNIT
@ AIS_AMF_ADMINISTRATIVETARGET_SERVICEUNIT
Definition: ipc_cfg.h:282
res_lib_cfg_ringstatusget::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
MESSAGE_RES_CFG_KILLNODE
@ MESSAGE_RES_CFG_KILLNODE
Definition: ipc_cfg.h:80
AIS_AMF_ADMINISTRATIVESTATE_UNLOCKED
@ AIS_AMF_ADMINISTRATIVESTATE_UNLOCKED
Definition: ipc_cfg.h:292
MESSAGE_REQ_CFG_REPLYTOSHUTDOWN
@ MESSAGE_REQ_CFG_REPLYTOSHUTDOWN
Definition: ipc_cfg.h:58
MESSAGE_RES_CFG_GET_NODE_ADDRS
@ MESSAGE_RES_CFG_GET_NODE_ADDRS
Definition: ipc_cfg.h:83
res_lib_cfg_trackstop::header
struct qb_ipc_response_header header
Definition: ipc_cfg.h:274
req_lib_cfg_ringstatusget::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
version
char version
Definition: totem.h:1
MESSAGE_RES_CFG_RINGSTATUSGET
@ MESSAGE_RES_CFG_RINGSTATUSGET
Definition: ipc_cfg.h:72
req_lib_cfg_trackstart::track_flags
uint8_t track_flags
Definition: ipc_cfg.h:262
req_lib_cfg_replytoshutdown::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
AIS_AMF_ADMINISTRATIVETARGET_COMPONENTSERVICEINSTANCE
@ AIS_AMF_ADMINISTRATIVETARGET_COMPONENTSERVICEINSTANCE
Definition: ipc_cfg.h:284
req_lib_cfg_reopen_log_files::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
MESSAGE_RES_CFG_RINGREENABLE
@ MESSAGE_RES_CFG_RINGREENABLE
Definition: ipc_cfg.h:73
MESSAGE_RES_CFG_STATETRACKSTART
@ MESSAGE_RES_CFG_STATETRACKSTART
Definition: ipc_cfg.h:74
req_lib_cfg_trackstart::header
struct qb_ipc_request_header header
Definition: ipc_cfg.h:261
cs_name_t
The cs_name_t struct.
Definition: corotypes.h:65
res_lib_cfg_get_node_addrs::num_addrs
unsigned int num_addrs
Definition: ipc_cfg.h:212
res_lib_cfg_ringreenable::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
mar_uint32_t
uint32_t mar_uint32_t
Definition: mar_gen.h:53
req_lib_cfg_nodestatusget::__attribute__
unsigned int nodeid __attribute__((aligned(8)))
MESSAGE_RES_CFG_REPLYTOSHUTDOWN
@ MESSAGE_RES_CFG_REPLYTOSHUTDOWN
Definition: ipc_cfg.h:85
CFG_INTERFACE_NAME_MAX_LEN
#define CFG_INTERFACE_NAME_MAX_LEN
Definition: ipc_cfg.h:42
res_lib_cfg_get_node_addrs::family
unsigned int family
Definition: ipc_cfg.h:211
res_lib_cfg_reload_config::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
corosync_cfg_node_status_version_t
corosync_cfg_node_status_version_t
Definition: cfg.h:165
res_lib_cfg_replytoshutdown::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cfg_get_node_addrs::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cfg_nodestatusget_version
Definition: ipc_cfg.h:117
MESSAGE_RES_CFG_NODESTATUSGET
@ MESSAGE_RES_CFG_NODESTATUSGET
Definition: ipc_cfg.h:88
res_lib_cfg_killnode
The res_lib_cfg_killnode struct.
Definition: ipc_cfg.h:156
req_lib_cfg_local_get::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
MESSAGE_RES_CFG_STATETRACKSTOP
@ MESSAGE_RES_CFG_STATETRACKSTOP
Definition: ipc_cfg.h:75
MESSAGE_RES_CFG_TRYSHUTDOWN
@ MESSAGE_RES_CFG_TRYSHUTDOWN
Definition: ipc_cfg.h:81
res_lib_cfg_ringstatusget::__attribute__
mar_uint32_t interface_count __attribute__((aligned(8)))
header
struct totem_message_header header
Definition: totemsrp.c:0
req_lib_cfg_replytoshutdown::response
unsigned int response
Definition: ipc_cfg.h:180
res_lib_cfg_testshutdown::flags
unsigned int flags
Definition: ipc_cfg.h:195
corosync_administrative_target_t
corosync_administrative_target_t
corosync_administrative_target_t enum
Definition: ipc_cfg.h:281
req_lib_cfg_types
req_lib_cfg_types
The req_lib_cfg_types enum.
Definition: ipc_cfg.h:53
AIS_AMF_ADMINISTRATIVESTATE_LOCKED
@ AIS_AMF_ADMINISTRATIVESTATE_LOCKED
Definition: ipc_cfg.h:293
mar_gen.h
MESSAGE_RES_CFG_RELOAD_CONFIG
@ MESSAGE_RES_CFG_RELOAD_CONFIG
Definition: ipc_cfg.h:86
req_lib_cfg_reload_config::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
res_lib_cfg_reload_config
The res_lib_cfg_reload_config struct.
Definition: ipc_cfg.h:242
req_lib_cfg_get_node_addrs::nodeid
unsigned int nodeid
Definition: ipc_cfg.h:203
res_lib_cfg_trackstart::header
struct qb_ipc_response_header header
Definition: ipc_cfg.h:266
MESSAGE_RES_CFG_TESTSHUTDOWN
@ MESSAGE_RES_CFG_TESTSHUTDOWN
Definition: ipc_cfg.h:82
res_lib_cfg_local_get::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
req_lib_cfg_ringreenable
The req_lib_cfg_ringreenable struct.
Definition: ipc_cfg.h:133
res_lib_cfg_trackstop
Definition: ipc_cfg.h:273
res_lib_cfg_replytoshutdown
The res_lib_cfg_replytoshutdown struct.
Definition: ipc_cfg.h:186
res_lib_cfg_get_node_addrs
The res_lib_cfg_get_node_addrs struct.
Definition: ipc_cfg.h:209
req_lib_cfg_trackstart
Definition: ipc_cfg.h:260
MESSAGE_REQ_CFG_REOPEN_LOG_FILES
@ MESSAGE_REQ_CFG_REOPEN_LOG_FILES
Definition: ipc_cfg.h:62
req_lib_cfg_local_get
The req_lib_cfg_local_get struct.
Definition: ipc_cfg.h:220
res_lib_cfg_testshutdown
The res_lib_cfg_testshutdown struct.
Definition: ipc_cfg.h:193
MESSAGE_REQ_CFG_TRACKSTOP
@ MESSAGE_REQ_CFG_TRACKSTOP
Definition: ipc_cfg.h:65
req_lib_cfg_killnode::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
MESSAGE_REQ_CFG_RINGREENABLE
@ MESSAGE_REQ_CFG_RINGREENABLE
Definition: ipc_cfg.h:55
req_lib_cfg_tryshutdown::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cfg_get_node_addrs
The req_lib_cfg_get_node_addrs struct.
Definition: ipc_cfg.h:201
CFG_SHUTDOWN_FLAG_IMMEDIATE
@ CFG_SHUTDOWN_FLAG_IMMEDIATE
Definition: ipc_cfg.h:303
req_lib_cfg_trackstop::header
struct qb_ipc_request_header header
Definition: ipc_cfg.h:270
CFG_SHUTDOWN_FLAG_REQUEST
@ CFG_SHUTDOWN_FLAG_REQUEST
Definition: ipc_cfg.h:301
req_lib_cfg_killnode::__attribute__
unsigned int nodeid __attribute__((aligned(8)))
req_lib_cfg_nodestatusget
The req_lib_cfg_nodestatusget struct.
Definition: ipc_cfg.h:111
req_lib_cfg_ringstatusget
The req_lib_cfg_ringstatusget struct.
Definition: ipc_cfg.h:94
req_lib_cfg_tryshutdown::flags
unsigned int flags
Definition: ipc_cfg.h:165
AIS_AMF_ADMINISTRATIVETARGET_SERVICEGROUP
@ AIS_AMF_ADMINISTRATIVETARGET_SERVICEGROUP
Definition: ipc_cfg.h:283
res_lib_cfg_nodestatusget_v1
The res_lib_cfg_nodestatusget struct.
Definition: ipc_cfg.h:125
MESSAGE_RES_CFG_SERVICEUNLOAD
@ MESSAGE_RES_CFG_SERVICEUNLOAD
Definition: ipc_cfg.h:79
req_lib_cfg_ringreenable::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
req_lib_cfg_nodestatusget::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
MESSAGE_REQ_CFG_TRYSHUTDOWN
@ MESSAGE_REQ_CFG_TRYSHUTDOWN
Definition: ipc_cfg.h:57
res_lib_cfg_testshutdown::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
req_lib_cfg_trackstop
Definition: ipc_cfg.h:269
MESSAGE_RES_CFG_SERVICELOAD
@ MESSAGE_RES_CFG_SERVICELOAD
Definition: ipc_cfg.h:78
corosync_administrative_state_t
corosync_administrative_state_t
corosync_administrative_state_t enum
Definition: ipc_cfg.h:291
res_lib_cfg_ringstatusget::__attribute__
char interface_name[CFG_MAX_INTERFACES][CFG_INTERFACE_NAME_MAX_LEN] __attribute__((aligned(8)))
AIS_AMF_ADMINISTRATIVESTATE_STOPPING
@ AIS_AMF_ADMINISTRATIVESTATE_STOPPING
Definition: ipc_cfg.h:294
MESSAGE_REQ_CFG_GET_NODE_ADDRS
@ MESSAGE_REQ_CFG_GET_NODE_ADDRS
Definition: ipc_cfg.h:59
AIS_AMF_ADMINISTRATIVETARGET_NODE
@ AIS_AMF_ADMINISTRATIVETARGET_NODE
Definition: ipc_cfg.h:285
res_lib_cfg_ringstatusget
The res_lib_cfg_ringstatusget struct.
Definition: ipc_cfg.h:101
req_lib_cfg_get_node_addrs::__attribute__
struct qb_ipc_request_header header __attribute__((aligned(8)))
MESSAGE_REQ_CFG_RINGSTATUSGET
@ MESSAGE_REQ_CFG_RINGSTATUSGET
Definition: ipc_cfg.h:54
CFG_SHUTDOWN_FLAG_REGARDLESS
@ CFG_SHUTDOWN_FLAG_REGARDLESS
Definition: ipc_cfg.h:302
nodeid
unsigned int nodeid
Definition: coroapi.h:0
res_lib_cfg_types
res_lib_cfg_types
The res_lib_cfg_types enum.
Definition: ipc_cfg.h:71
corosync_shutdown_flags_t
corosync_shutdown_flags_t
corosync_shutdown_flags_t enum
Definition: ipc_cfg.h:300
req_lib_cfg_reopen_log_files
The req_lib_cfg_reopen_log_files struct.
Definition: ipc_cfg.h:249
res_lib_cfg_trackstart
Definition: ipc_cfg.h:265
CFG_INTERFACE_STATUS_MAX_LEN
#define CFG_INTERFACE_STATUS_MAX_LEN
Definition: ipc_cfg.h:43
res_lib_cfg_ringreenable
The res_lib_cfg_ringreenable struct.
Definition: ipc_cfg.h:140
MESSAGE_RES_CFG_ADMINISTRATIVESTATESET
@ MESSAGE_RES_CFG_ADMINISTRATIVESTATESET
Definition: ipc_cfg.h:76
res_lib_cfg_nodestatusget_version::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cfg_reopen_log_files::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
MESSAGE_REQ_CFG_LOCAL_GET
@ MESSAGE_REQ_CFG_LOCAL_GET
Definition: ipc_cfg.h:60
corotypes.h
res_lib_cfg_get_node_addrs::addrs
char addrs[]
Definition: ipc_cfg.h:214
MESSAGE_RES_CFG_LOCAL_GET
@ MESSAGE_RES_CFG_LOCAL_GET
Definition: ipc_cfg.h:84
req_lib_cfg_killnode
The req_lib_cfg_killnode struct.
Definition: ipc_cfg.h:147
res_lib_cfg_killnode::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
res_lib_cfg_reopen_log_files
The res_lib_cfg_reopen_log_files struct.
Definition: ipc_cfg.h:256
req_lib_cfg_tryshutdown
The req_lib_cfg_tryshutdown struct.
Definition: ipc_cfg.h:163
res_lib_cfg_local_get
The res_lib_cfg_local_get struct.
Definition: ipc_cfg.h:227
res_lib_cfg_tryshutdown::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
MESSAGE_RES_CFG_REOPEN_LOG_FILES
@ MESSAGE_RES_CFG_REOPEN_LOG_FILES
Definition: ipc_cfg.h:87
MESSAGE_REQ_CFG_TRACKSTART
@ MESSAGE_REQ_CFG_TRACKSTART
Definition: ipc_cfg.h:64
req_lib_cfg_reload_config
The req_lib_cfg_reload_config struct.
Definition: ipc_cfg.h:235
MESSAGE_REQ_CFG_KILLNODE
@ MESSAGE_REQ_CFG_KILLNODE
Definition: ipc_cfg.h:56
res_lib_cfg_nodestatusget_v1::__attribute__
struct qb_ipc_response_header header __attribute__((aligned(8)))
MESSAGE_RES_CFG_ADMINISTRATIVESTATEGET
@ MESSAGE_RES_CFG_ADMINISTRATIVESTATEGET
Definition: ipc_cfg.h:77
corosync_cfg_node_status_v1
Definition: cfg.h:181
CFG_MAX_INTERFACES
#define CFG_MAX_INTERFACES
Definition: ipc_cfg.h:48
MESSAGE_REQ_CFG_RELOAD_CONFIG
@ MESSAGE_REQ_CFG_RELOAD_CONFIG
Definition: ipc_cfg.h:61