corosync 3.1.7
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)));
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
281typedef enum {
287
291typedef enum {
296
300typedef enum {
305
306
307#endif /* IPC_CFG_H_DEFINED */
corosync_cfg_node_status_version_t
Definition: cfg.h:165
unsigned int nodeid
Definition: coroapi.h:0
corosync_shutdown_flags_t
corosync_shutdown_flags_t enum
Definition: ipc_cfg.h:300
@ CFG_SHUTDOWN_FLAG_REQUEST
Definition: ipc_cfg.h:301
@ CFG_SHUTDOWN_FLAG_REGARDLESS
Definition: ipc_cfg.h:302
@ CFG_SHUTDOWN_FLAG_IMMEDIATE
Definition: ipc_cfg.h:303
#define CFG_INTERFACE_STATUS_MAX_LEN
Definition: ipc_cfg.h:43
corosync_administrative_state_t
corosync_administrative_state_t enum
Definition: ipc_cfg.h:291
@ AIS_AMF_ADMINISTRATIVESTATE_LOCKED
Definition: ipc_cfg.h:293
@ AIS_AMF_ADMINISTRATIVESTATE_UNLOCKED
Definition: ipc_cfg.h:292
@ AIS_AMF_ADMINISTRATIVESTATE_STOPPING
Definition: ipc_cfg.h:294
req_lib_cfg_types
The req_lib_cfg_types enum.
Definition: ipc_cfg.h:53
@ MESSAGE_REQ_CFG_RELOAD_CONFIG
Definition: ipc_cfg.h:61
@ MESSAGE_REQ_CFG_RINGSTATUSGET
Definition: ipc_cfg.h:54
@ MESSAGE_REQ_CFG_TRACKSTART
Definition: ipc_cfg.h:64
@ MESSAGE_REQ_CFG_RINGREENABLE
Definition: ipc_cfg.h:55
@ MESSAGE_REQ_CFG_TRACKSTOP
Definition: ipc_cfg.h:65
@ MESSAGE_REQ_CFG_NODESTATUSGET
Definition: ipc_cfg.h:63
@ MESSAGE_REQ_CFG_REOPEN_LOG_FILES
Definition: ipc_cfg.h:62
@ MESSAGE_REQ_CFG_TRYSHUTDOWN
Definition: ipc_cfg.h:57
@ MESSAGE_REQ_CFG_REPLYTOSHUTDOWN
Definition: ipc_cfg.h:58
@ MESSAGE_REQ_CFG_KILLNODE
Definition: ipc_cfg.h:56
@ MESSAGE_REQ_CFG_GET_NODE_ADDRS
Definition: ipc_cfg.h:59
@ MESSAGE_REQ_CFG_LOCAL_GET
Definition: ipc_cfg.h:60
corosync_administrative_target_t
corosync_administrative_target_t enum
Definition: ipc_cfg.h:281
@ AIS_AMF_ADMINISTRATIVETARGET_SERVICEGROUP
Definition: ipc_cfg.h:283
@ AIS_AMF_ADMINISTRATIVETARGET_SERVICEUNIT
Definition: ipc_cfg.h:282
@ AIS_AMF_ADMINISTRATIVETARGET_NODE
Definition: ipc_cfg.h:285
@ AIS_AMF_ADMINISTRATIVETARGET_COMPONENTSERVICEINSTANCE
Definition: ipc_cfg.h:284
#define CFG_INTERFACE_NAME_MAX_LEN
Definition: ipc_cfg.h:42
res_lib_cfg_types
The res_lib_cfg_types enum.
Definition: ipc_cfg.h:71
@ MESSAGE_RES_CFG_STATETRACKSTOP
Definition: ipc_cfg.h:75
@ MESSAGE_RES_CFG_LOCAL_GET
Definition: ipc_cfg.h:84
@ MESSAGE_RES_CFG_SERVICEUNLOAD
Definition: ipc_cfg.h:79
@ MESSAGE_RES_CFG_RELOAD_CONFIG
Definition: ipc_cfg.h:86
@ MESSAGE_RES_CFG_ADMINISTRATIVESTATEGET
Definition: ipc_cfg.h:77
@ MESSAGE_RES_CFG_RINGSTATUSGET
Definition: ipc_cfg.h:72
@ MESSAGE_RES_CFG_TRYSHUTDOWN
Definition: ipc_cfg.h:81
@ MESSAGE_RES_CFG_NODESTATUSGET
Definition: ipc_cfg.h:88
@ MESSAGE_RES_CFG_GET_NODE_ADDRS
Definition: ipc_cfg.h:83
@ MESSAGE_RES_CFG_REOPEN_LOG_FILES
Definition: ipc_cfg.h:87
@ MESSAGE_RES_CFG_TESTSHUTDOWN
Definition: ipc_cfg.h:82
@ MESSAGE_RES_CFG_STATETRACKSTART
Definition: ipc_cfg.h:74
@ MESSAGE_RES_CFG_KILLNODE
Definition: ipc_cfg.h:80
@ MESSAGE_RES_CFG_ADMINISTRATIVESTATESET
Definition: ipc_cfg.h:76
@ MESSAGE_RES_CFG_REPLYTOSHUTDOWN
Definition: ipc_cfg.h:85
@ MESSAGE_RES_CFG_SERVICELOAD
Definition: ipc_cfg.h:78
@ MESSAGE_RES_CFG_RINGREENABLE
Definition: ipc_cfg.h:73
#define CFG_MAX_INTERFACES
Definition: ipc_cfg.h:48
uint32_t mar_uint32_t
Definition: mar_gen.h:53
The cs_name_t struct.
Definition: corotypes.h:66
The req_lib_cfg_get_node_addrs struct.
Definition: ipc_cfg.h:201
struct qb_ipc_request_header header __attribute__((aligned(8)))
The req_lib_cfg_killnode struct.
Definition: ipc_cfg.h:147
struct qb_ipc_request_header header __attribute__((aligned(8)))
unsigned int nodeid __attribute__((aligned(8)))
cs_name_t reason __attribute__((aligned(8)))
The req_lib_cfg_local_get struct.
Definition: ipc_cfg.h:220
struct qb_ipc_request_header header __attribute__((aligned(8)))
The req_lib_cfg_nodestatusget struct.
Definition: ipc_cfg.h:111
mar_uint32_t version __attribute__((aligned(8)))
struct qb_ipc_request_header header __attribute__((aligned(8)))
unsigned int nodeid __attribute__((aligned(8)))
The req_lib_cfg_reload_config struct.
Definition: ipc_cfg.h:235
struct qb_ipc_request_header header __attribute__((aligned(8)))
The req_lib_cfg_reopen_log_files struct.
Definition: ipc_cfg.h:249
struct qb_ipc_request_header header __attribute__((aligned(8)))
The req_lib_cfg_replytoshutdown struct.
Definition: ipc_cfg.h:178
struct qb_ipc_request_header header __attribute__((aligned(8)))
The req_lib_cfg_ringreenable struct.
Definition: ipc_cfg.h:133
struct qb_ipc_request_header header __attribute__((aligned(8)))
The req_lib_cfg_ringstatusget struct.
Definition: ipc_cfg.h:94
struct qb_ipc_request_header header __attribute__((aligned(8)))
struct qb_ipc_request_header header
Definition: ipc_cfg.h:261
struct qb_ipc_request_header header
Definition: ipc_cfg.h:270
The req_lib_cfg_tryshutdown struct.
Definition: ipc_cfg.h:163
struct qb_ipc_request_header header __attribute__((aligned(8)))
unsigned int flags
Definition: ipc_cfg.h:165
The res_lib_cfg_get_node_addrs struct.
Definition: ipc_cfg.h:209
unsigned int num_addrs
Definition: ipc_cfg.h:212
struct qb_ipc_response_header header __attribute__((aligned(8)))
The res_lib_cfg_killnode struct.
Definition: ipc_cfg.h:156
struct qb_ipc_response_header header __attribute__((aligned(8)))
The res_lib_cfg_local_get struct.
Definition: ipc_cfg.h:227
mar_uint32_t local_nodeid __attribute__((aligned(8)))
struct qb_ipc_response_header header __attribute__((aligned(8)))
The res_lib_cfg_nodestatusget struct.
Definition: ipc_cfg.h:125
struct qb_ipc_response_header header __attribute__((aligned(8)))
struct qb_ipc_response_header header __attribute__((aligned(8)))
corosync_cfg_node_status_version_t version __attribute__((aligned(8)))
The res_lib_cfg_reload_config struct.
Definition: ipc_cfg.h:242
struct qb_ipc_response_header header __attribute__((aligned(8)))
The res_lib_cfg_reopen_log_files struct.
Definition: ipc_cfg.h:256
struct qb_ipc_response_header header __attribute__((aligned(8)))
The res_lib_cfg_replytoshutdown struct.
Definition: ipc_cfg.h:186
struct qb_ipc_response_header header __attribute__((aligned(8)))
The res_lib_cfg_ringreenable struct.
Definition: ipc_cfg.h:140
struct qb_ipc_response_header header __attribute__((aligned(8)))
The res_lib_cfg_ringstatusget struct.
Definition: ipc_cfg.h:101
mar_uint32_t interface_count __attribute__((aligned(8)))
struct qb_ipc_response_header header __attribute__((aligned(8)))
char interface_status[CFG_MAX_INTERFACES][CFG_INTERFACE_STATUS_MAX_LEN] __attribute__((aligned(8)))
char interface_name[CFG_MAX_INTERFACES][CFG_INTERFACE_NAME_MAX_LEN] __attribute__((aligned(8)))
The res_lib_cfg_testshutdown struct.
Definition: ipc_cfg.h:193
struct qb_ipc_response_header header __attribute__((aligned(8)))
unsigned int flags
Definition: ipc_cfg.h:195
struct qb_ipc_response_header header
Definition: ipc_cfg.h:266
struct qb_ipc_response_header header
Definition: ipc_cfg.h:274
The res_lib_cfg_tryshutdown struct.
Definition: ipc_cfg.h:171
struct qb_ipc_response_header header __attribute__((aligned(8)))
char version
Definition: totem.h:1
struct totem_message_header header
Definition: totemsrp.c:0