evs.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. /*
  2. * vi: set autoindent ;
  3. *
  4. * Copyright (c) 2004-2006 MontaVista Software, Inc.
  5. *
  6. * All rights reserved.
  7. *
  8. * Author: Steven Dake (sdake@mvista.com)
  9. *
  10. * This software licensed under BSD license, the text of which follows:
  11. *
  12. * Redistribution and use in source and binary forms, with or without
  13. * modification, are permitted provided that the following conditions are met:
  14. *
  15. * - Redistributions of source code must retain the above copyright notice,
  16. * this list of conditions and the following disclaimer.
  17. * - Redistributions in binary form must reproduce the above copyright notice,
  18. * this list of conditions and the following disclaimer in the documentation
  19. * and/or other materials provided with the distribution.
  20. * - Neither the name of the MontaVista Software, Inc. nor the names of its
  21. * contributors may be used to endorse or promote products derived from this
  22. * software without specific prior written permission.
  23. *
  24. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  25. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  26. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27. * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  28. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  29. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  30. * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  31. * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  32. * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  33. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  34. * THE POSSIBILITY OF SUCH DAMAGE.
  35. */
  36. #include <sys/types.h>
  37. #include <sys/socket.h>
  38. #include <sys/un.h>
  39. #include <sys/ioctl.h>
  40. #include <netinet/in.h>
  41. #include <sys/uio.h>
  42. #include <unistd.h>
  43. #include <fcntl.h>
  44. #include <stdlib.h>
  45. #include <stdio.h>
  46. #include <errno.h>
  47. #include <signal.h>
  48. #include <time.h>
  49. #include <netinet/in.h>
  50. #include <arpa/inet.h>
  51. #include "../include/saAis.h"
  52. #include "../include/ipc_gen.h"
  53. #include "../include/ipc_evs.h"
  54. #include "../include/list.h"
  55. #include "../include/queue.h"
  56. #include "../lcr/lcr_comp.h"
  57. #include "aispoll.h"
  58. #include "totempg.h"
  59. #include "totemip.h"
  60. #include "main.h"
  61. #include "mempool.h"
  62. #include "service.h"
  63. #define LOG_SERVICE LOG_SERVICE_EVS
  64. #include "print.h"
  65. enum evs_exec_message_req_types {
  66. MESSAGE_REQ_EXEC_EVS_MCAST = 0
  67. };
  68. /*
  69. * Service Interfaces required by service_message_handler struct
  70. */
  71. static void evs_confchg_fn (
  72. enum totem_configuration_type configuration_type,
  73. struct totem_ip_address *member_list, int member_list_entries,
  74. struct totem_ip_address *left_list, int left_list_entries,
  75. struct totem_ip_address *joined_list, int joined_list_entries,
  76. struct memb_ring_id *ring_id);
  77. static void message_handler_req_exec_mcast (void *message, struct totem_ip_address *source_addr);
  78. static void req_exec_mcast_endian_convert (void *msg);
  79. static void message_handler_req_evs_join (void *conn, void *msg);
  80. static void message_handler_req_evs_leave (void *conn, void *msg);
  81. static void message_handler_req_evs_mcast_joined (void *conn, void *msg);
  82. static void message_handler_req_evs_mcast_groups (void *conn, void *msg);
  83. static void message_handler_req_evs_membership_get (void *conn, void *msg);
  84. static int evs_lib_init_fn (void *conn);
  85. static int evs_lib_exit_fn (void *conn);
  86. struct evs_pd {
  87. struct evs_group *groups;
  88. int group_entries;
  89. struct list_head list;
  90. void *conn;
  91. };
  92. static struct openais_lib_handler evs_lib_service[] =
  93. {
  94. { /* 0 */
  95. .lib_handler_fn = message_handler_req_evs_join,
  96. .response_size = sizeof (struct res_lib_evs_join),
  97. .response_id = MESSAGE_RES_EVS_JOIN,
  98. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  99. },
  100. { /* 1 */
  101. .lib_handler_fn = message_handler_req_evs_leave,
  102. .response_size = sizeof (struct res_lib_evs_leave),
  103. .response_id = MESSAGE_RES_EVS_LEAVE,
  104. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  105. },
  106. { /* 2 */
  107. .lib_handler_fn = message_handler_req_evs_mcast_joined,
  108. .response_size = sizeof (struct res_lib_evs_mcast_joined),
  109. .response_id = MESSAGE_RES_EVS_MCAST_JOINED,
  110. .flow_control = OPENAIS_FLOW_CONTROL_REQUIRED
  111. },
  112. { /* 3 */
  113. .lib_handler_fn = message_handler_req_evs_mcast_groups,
  114. .response_size = sizeof (struct res_lib_evs_mcast_groups),
  115. .response_id = MESSAGE_RES_EVS_MCAST_GROUPS,
  116. .flow_control = OPENAIS_FLOW_CONTROL_REQUIRED
  117. },
  118. { /* 4 */
  119. .lib_handler_fn = message_handler_req_evs_membership_get,
  120. .response_size = sizeof (struct res_lib_evs_membership_get),
  121. .response_id = MESSAGE_RES_EVS_MEMBERSHIP_GET,
  122. .flow_control = OPENAIS_FLOW_CONTROL_NOT_REQUIRED
  123. }
  124. };
  125. static struct openais_exec_handler evs_exec_service[] =
  126. {
  127. {
  128. .exec_handler_fn = message_handler_req_exec_mcast,
  129. .exec_endian_convert_fn = req_exec_mcast_endian_convert
  130. }
  131. };
  132. struct openais_service_handler evs_service_handler = {
  133. .name = (unsigned char*)"openais extended virtual synchrony service",
  134. .id = EVS_SERVICE,
  135. .private_data_size = sizeof (struct evs_pd),
  136. .lib_init_fn = evs_lib_init_fn,
  137. .lib_exit_fn = evs_lib_exit_fn,
  138. .lib_service = evs_lib_service,
  139. .lib_service_count = sizeof (evs_lib_service) / sizeof (struct openais_lib_handler),
  140. .exec_service = evs_exec_service,
  141. .exec_service_count = sizeof (evs_exec_service) / sizeof (struct openais_exec_handler),
  142. .confchg_fn = evs_confchg_fn,
  143. .exec_init_fn = NULL,
  144. .exec_dump_fn = NULL
  145. };
  146. static DECLARE_LIST_INIT (confchg_notify);
  147. /*
  148. * Dynamic loading descriptor
  149. */
  150. struct openais_service_handler *evs_get_service_handler_ver0 (void);
  151. struct openais_service_handler_iface_ver0 evs_service_handler_iface = {
  152. .openais_get_service_handler_ver0 = evs_get_service_handler_ver0
  153. };
  154. struct lcr_iface openais_evs_ver0[1] = {
  155. {
  156. .name = "openais_evs",
  157. .version = 0,
  158. .versions_replace = 0,
  159. .versions_replace_count = 0,
  160. .dependencies = 0,
  161. .dependency_count = 0,
  162. .constructor = NULL,
  163. .destructor = NULL,
  164. .interfaces = (void **)(void *)&evs_service_handler_iface,
  165. }
  166. };
  167. struct lcr_comp evs_comp_ver0 = {
  168. .iface_count = 1,
  169. .ifaces = openais_evs_ver0
  170. };
  171. struct openais_service_handler *evs_get_service_handler_ver0 (void)
  172. {
  173. return (&evs_service_handler);
  174. }
  175. __attribute__ ((constructor)) static void evs_comp_register (void) {
  176. lcr_component_register (&evs_comp_ver0);
  177. }
  178. struct res_evs_confchg_callback res_evs_confchg_callback;
  179. static void evs_confchg_fn (
  180. enum totem_configuration_type configuration_type,
  181. struct totem_ip_address *member_list, int member_list_entries,
  182. struct totem_ip_address *left_list, int left_list_entries,
  183. struct totem_ip_address *joined_list, int joined_list_entries,
  184. struct memb_ring_id *ring_id)
  185. {
  186. int i;
  187. struct list_head *list;
  188. struct evs_pd *evs_pd;
  189. /*
  190. * Build configuration change message
  191. */
  192. res_evs_confchg_callback.header.size = sizeof (struct res_evs_confchg_callback);
  193. res_evs_confchg_callback.header.id = MESSAGE_RES_EVS_CONFCHG_CALLBACK;
  194. res_evs_confchg_callback.header.error = SA_AIS_OK;
  195. for (i = 0; i < member_list_entries; i++) {
  196. totemip_copy((struct totem_ip_address *)&res_evs_confchg_callback.member_list[i],
  197. &member_list[i]);
  198. }
  199. res_evs_confchg_callback.member_list_entries = member_list_entries;
  200. for (i = 0; i < left_list_entries; i++) {
  201. totemip_copy((struct totem_ip_address *)&res_evs_confchg_callback.left_list[i],
  202. &left_list[i]);
  203. }
  204. res_evs_confchg_callback.left_list_entries = left_list_entries;
  205. for (i = 0; i < joined_list_entries; i++) {
  206. totemip_copy((struct totem_ip_address *)&res_evs_confchg_callback.joined_list[i],
  207. &joined_list[i]);
  208. }
  209. res_evs_confchg_callback.joined_list_entries = joined_list_entries;
  210. /*
  211. * Send configuration change message to every EVS library user
  212. */
  213. for (list = confchg_notify.next; list != &confchg_notify; list = list->next) {
  214. evs_pd = list_entry (list, struct evs_pd, list);
  215. openais_conn_send_response (evs_pd->conn,
  216. &res_evs_confchg_callback,
  217. sizeof (res_evs_confchg_callback));
  218. }
  219. }
  220. static int evs_lib_init_fn (void *conn)
  221. {
  222. struct evs_pd *evs_pd = (struct evs_pd *)openais_conn_private_data_get (conn);
  223. log_printf (LOG_LEVEL_DEBUG, "Got request to initalize evs service.\n");
  224. evs_pd->groups = NULL;
  225. evs_pd->group_entries = 0;
  226. evs_pd->conn = conn;
  227. list_init (&evs_pd->list);
  228. list_add (&evs_pd->list, &confchg_notify);
  229. openais_conn_send_response (conn, &res_evs_confchg_callback,
  230. sizeof (res_evs_confchg_callback));
  231. return (0);
  232. }
  233. static int evs_lib_exit_fn (void *conn)
  234. {
  235. struct evs_pd *evs_pd = (struct evs_pd *)openais_conn_private_data_get (conn);
  236. list_del (&evs_pd->list);
  237. return (0);
  238. }
  239. static void message_handler_req_evs_join (void *conn, void *msg)
  240. {
  241. evs_error_t error = EVS_OK;
  242. struct req_lib_evs_join *req_lib_evs_join = (struct req_lib_evs_join *)msg;
  243. struct res_lib_evs_join res_lib_evs_join;
  244. void *addr;
  245. struct evs_pd *evs_pd = (struct evs_pd *)openais_conn_private_data_get (conn);
  246. if (req_lib_evs_join->group_entries > 50) {
  247. error = EVS_ERR_TOO_MANY_GROUPS;
  248. goto exit_error;
  249. }
  250. #ifdef DEBUG
  251. { int i;
  252. for (i = 0; i < req_lib_evs_join->group_entries; i++) {
  253. printf ("Joining group %s\n", req_lib_evs_join->groups[i].key);
  254. }
  255. }
  256. #endif
  257. addr = realloc (evs_pd->groups, sizeof (struct evs_group) *
  258. (evs_pd->group_entries + req_lib_evs_join->group_entries));
  259. if (addr == 0) {
  260. error = SA_AIS_ERR_NO_MEMORY;
  261. goto exit_error;
  262. }
  263. evs_pd->groups = addr;
  264. memcpy (&evs_pd->groups[evs_pd->group_entries],
  265. req_lib_evs_join->groups,
  266. sizeof (struct evs_group) * req_lib_evs_join->group_entries);
  267. evs_pd->group_entries += req_lib_evs_join->group_entries;
  268. exit_error:
  269. res_lib_evs_join.header.size = sizeof (struct res_lib_evs_join);
  270. res_lib_evs_join.header.id = MESSAGE_RES_EVS_JOIN;
  271. res_lib_evs_join.header.error = error;
  272. openais_conn_send_response (conn, &res_lib_evs_join,
  273. sizeof (struct res_lib_evs_join));
  274. }
  275. static void message_handler_req_evs_leave (void *conn, void *msg)
  276. {
  277. struct req_lib_evs_leave *req_lib_evs_leave = (struct req_lib_evs_leave *)msg;
  278. struct res_lib_evs_leave res_lib_evs_leave;
  279. evs_error_t error = EVS_OK;
  280. int error_index;
  281. int i, j;
  282. int found;
  283. struct evs_pd *evs_pd = (struct evs_pd *)openais_conn_private_data_get (conn);
  284. for (i = 0; i < req_lib_evs_leave->group_entries; i++) {
  285. found = 0;
  286. for (j = 0; j < evs_pd->group_entries;) {
  287. if (memcmp (&req_lib_evs_leave->groups[i],
  288. &evs_pd->groups[j], sizeof (struct evs_group)) == 0) {
  289. /*
  290. * Delete entry
  291. */
  292. memmove (&evs_pd->groups[j], &evs_pd->groups[j + 1],
  293. (evs_pd->group_entries - j - 1) * sizeof (struct evs_group));
  294. evs_pd->group_entries -= 1;
  295. found = 1;
  296. break;
  297. } else {
  298. j++;
  299. }
  300. }
  301. if (found == 0) {
  302. error = EVS_ERR_NOT_EXIST;
  303. error_index = i;
  304. break;
  305. }
  306. }
  307. res_lib_evs_leave.header.size = sizeof (struct res_lib_evs_leave);
  308. res_lib_evs_leave.header.id = MESSAGE_RES_EVS_LEAVE;
  309. res_lib_evs_leave.header.error = error;
  310. openais_conn_send_response (conn, &res_lib_evs_leave,
  311. sizeof (struct res_lib_evs_leave));
  312. }
  313. static void message_handler_req_evs_mcast_joined (void *conn, void *msg)
  314. {
  315. evs_error_t error = EVS_ERR_TRY_AGAIN;
  316. struct req_lib_evs_mcast_joined *req_lib_evs_mcast_joined = (struct req_lib_evs_mcast_joined *)msg;
  317. struct res_lib_evs_mcast_joined res_lib_evs_mcast_joined;
  318. struct iovec req_exec_evs_mcast_iovec[3];
  319. struct req_exec_evs_mcast req_exec_evs_mcast;
  320. int send_ok = 0;
  321. int res;
  322. struct evs_pd *evs_pd = (struct evs_pd *)openais_conn_private_data_get (conn);
  323. req_exec_evs_mcast.header.size = sizeof (struct req_exec_evs_mcast) +
  324. evs_pd->group_entries * sizeof (struct evs_group) +
  325. req_lib_evs_mcast_joined->msg_len;
  326. req_exec_evs_mcast.header.id =
  327. SERVICE_ID_MAKE (EVS_SERVICE, MESSAGE_REQ_EXEC_EVS_MCAST);
  328. req_exec_evs_mcast.msg_len = req_lib_evs_mcast_joined->msg_len;
  329. req_exec_evs_mcast.group_entries = evs_pd->group_entries;
  330. req_exec_evs_mcast_iovec[0].iov_base = &req_exec_evs_mcast;
  331. req_exec_evs_mcast_iovec[0].iov_len = sizeof (req_exec_evs_mcast);
  332. req_exec_evs_mcast_iovec[1].iov_base = evs_pd->groups;
  333. req_exec_evs_mcast_iovec[1].iov_len = evs_pd->group_entries * sizeof (struct evs_group);
  334. req_exec_evs_mcast_iovec[2].iov_base = &req_lib_evs_mcast_joined->msg;
  335. req_exec_evs_mcast_iovec[2].iov_len = req_lib_evs_mcast_joined->msg_len;
  336. // TODO this doesn't seem to work for some reason
  337. send_ok = totempg_groups_send_ok_joined (openais_group_handle, req_exec_evs_mcast_iovec, 3);
  338. res = totempg_groups_mcast_joined (openais_group_handle, req_exec_evs_mcast_iovec, 3, TOTEMPG_AGREED);
  339. // TODO
  340. if (res == 0) {
  341. error = EVS_OK;
  342. }
  343. res_lib_evs_mcast_joined.header.size = sizeof (struct res_lib_evs_mcast_joined);
  344. res_lib_evs_mcast_joined.header.id = MESSAGE_RES_EVS_MCAST_JOINED;
  345. res_lib_evs_mcast_joined.header.error = error;
  346. openais_conn_send_response (conn, &res_lib_evs_mcast_joined,
  347. sizeof (struct res_lib_evs_mcast_joined));
  348. }
  349. static void message_handler_req_evs_mcast_groups (void *conn, void *msg)
  350. {
  351. evs_error_t error = EVS_ERR_TRY_AGAIN;
  352. struct req_lib_evs_mcast_groups *req_lib_evs_mcast_groups = (struct req_lib_evs_mcast_groups *)msg;
  353. struct res_lib_evs_mcast_groups res_lib_evs_mcast_groups;
  354. struct iovec req_exec_evs_mcast_iovec[3];
  355. struct req_exec_evs_mcast req_exec_evs_mcast;
  356. char *msg_addr;
  357. int send_ok = 0;
  358. int res;
  359. req_exec_evs_mcast.header.size = sizeof (struct req_exec_evs_mcast) +
  360. sizeof (struct evs_group) * req_lib_evs_mcast_groups->group_entries +
  361. req_lib_evs_mcast_groups->msg_len;
  362. req_exec_evs_mcast.header.id =
  363. SERVICE_ID_MAKE (EVS_SERVICE, MESSAGE_REQ_EXEC_EVS_MCAST);
  364. req_exec_evs_mcast.msg_len = req_lib_evs_mcast_groups->msg_len;
  365. req_exec_evs_mcast.group_entries = req_lib_evs_mcast_groups->group_entries;
  366. msg_addr = (char *)req_lib_evs_mcast_groups +
  367. sizeof (struct req_lib_evs_mcast_groups) +
  368. (sizeof (struct evs_group) * req_lib_evs_mcast_groups->group_entries);
  369. req_exec_evs_mcast_iovec[0].iov_base = &req_exec_evs_mcast;
  370. req_exec_evs_mcast_iovec[0].iov_len = sizeof (req_exec_evs_mcast);
  371. req_exec_evs_mcast_iovec[1].iov_base = &req_lib_evs_mcast_groups->groups;
  372. req_exec_evs_mcast_iovec[1].iov_len = sizeof (struct evs_group) * req_lib_evs_mcast_groups->group_entries;
  373. req_exec_evs_mcast_iovec[2].iov_base = msg_addr;
  374. req_exec_evs_mcast_iovec[2].iov_len = req_lib_evs_mcast_groups->msg_len;
  375. // TODO this is wacky
  376. send_ok = totempg_groups_send_ok_joined (openais_group_handle, req_exec_evs_mcast_iovec, 3);
  377. res = totempg_groups_mcast_joined (openais_group_handle, req_exec_evs_mcast_iovec, 3, TOTEMPG_AGREED);
  378. if (res == 0) {
  379. error = EVS_OK;
  380. }
  381. res_lib_evs_mcast_groups.header.size = sizeof (struct res_lib_evs_mcast_groups);
  382. res_lib_evs_mcast_groups.header.id = MESSAGE_RES_EVS_MCAST_GROUPS;
  383. res_lib_evs_mcast_groups.header.error = error;
  384. openais_conn_send_response (conn, &res_lib_evs_mcast_groups,
  385. sizeof (struct res_lib_evs_mcast_groups));
  386. }
  387. static void message_handler_req_evs_membership_get (void *conn, void *msg)
  388. {
  389. struct res_lib_evs_membership_get res_lib_evs_membership_get;
  390. res_lib_evs_membership_get.header.size = sizeof (struct res_lib_evs_membership_get);
  391. res_lib_evs_membership_get.header.id = MESSAGE_RES_EVS_MEMBERSHIP_GET;
  392. res_lib_evs_membership_get.header.error = EVS_OK;
  393. totemip_copy((struct totem_ip_address *)&res_lib_evs_membership_get.local_addr,
  394. this_ip);
  395. memcpy (&res_lib_evs_membership_get.member_list,
  396. &res_evs_confchg_callback.member_list,
  397. sizeof (res_lib_evs_membership_get.member_list));
  398. res_lib_evs_membership_get.member_list_entries =
  399. res_evs_confchg_callback.member_list_entries;
  400. openais_conn_send_response (conn, &res_lib_evs_membership_get,
  401. sizeof (struct res_lib_evs_membership_get));
  402. }
  403. static void req_exec_mcast_endian_convert (void *msg)
  404. {
  405. }
  406. static void message_handler_req_exec_mcast (void *msg, struct totem_ip_address *source_addr)
  407. {
  408. struct req_exec_evs_mcast *req_exec_evs_mcast = (struct req_exec_evs_mcast *)msg;
  409. struct res_evs_deliver_callback res_evs_deliver_callback;
  410. char *msg_addr;
  411. struct list_head *list;
  412. int found = 0;
  413. int i, j;
  414. struct evs_pd *evs_pd;
  415. res_evs_deliver_callback.header.size = sizeof (struct res_evs_deliver_callback) +
  416. req_exec_evs_mcast->msg_len;
  417. res_evs_deliver_callback.header.id = MESSAGE_RES_EVS_DELIVER_CALLBACK;
  418. res_evs_deliver_callback.header.error = SA_AIS_OK;
  419. res_evs_deliver_callback.msglen = req_exec_evs_mcast->msg_len;
  420. msg_addr = (char *)req_exec_evs_mcast + sizeof (struct req_exec_evs_mcast) +
  421. (sizeof (struct evs_group) * req_exec_evs_mcast->group_entries);
  422. for (list = confchg_notify.next; list != &confchg_notify; list = list->next) {
  423. found = 0;
  424. evs_pd = list_entry (list, struct evs_pd, list);
  425. for (i = 0; i < evs_pd->group_entries; i++) {
  426. for (j = 0; j < req_exec_evs_mcast->group_entries; j++) {
  427. if (memcmp (&evs_pd->groups[i], &req_exec_evs_mcast->groups[j],
  428. sizeof (struct evs_group)) == 0) {
  429. found = 1;
  430. break;
  431. }
  432. }
  433. if (found) {
  434. break;
  435. }
  436. }
  437. if (found) {
  438. totemip_copy((struct totem_ip_address *)&res_evs_deliver_callback.evs_address,
  439. source_addr);
  440. openais_conn_send_response (evs_pd->conn, &res_evs_deliver_callback,
  441. sizeof (struct res_evs_deliver_callback));
  442. openais_conn_send_response (evs_pd->conn, msg_addr,
  443. req_exec_evs_mcast->msg_len);
  444. }
  445. }
  446. }