remote 429 daemons/based/based_callbacks.c pcmk__remote_send_xml(client_obj->remote, notify_src); remote 56 daemons/based/based_notify.c if (client->ipcs == NULL && client->remote == NULL) { remote 104 daemons/based/based_notify.c pcmk__remote_send_xml(client->remote, update->msg); remote 265 daemons/based/based_remote.c client->remote->auth_timeout = 0; remote 271 daemons/based/based_remote.c mainloop_del_fd(client->remote->source); remote 318 daemons/based/based_remote.c new_client->remote = calloc(1, sizeof(pcmk__remote_t)); remote 325 daemons/based/based_remote.c new_client->remote->tls_session = pcmk__new_tls_session(csock, remote 329 daemons/based/based_remote.c if (new_client->remote->tls_session == NULL) { remote 336 daemons/based/based_remote.c new_client->remote->tcp_socket = csock; remote 340 daemons/based/based_remote.c new_client->remote->auth_timeout = g_timeout_add(REMOTE_AUTH_TIMEOUT, remote 346 daemons/based/based_remote.c new_client->remote->source = remote 371 daemons/based/based_remote.c csock = client->remote->tcp_socket; remote 375 daemons/based/based_remote.c if (client->remote->tls_session) { remote 376 daemons/based/based_remote.c void *sock_ptr = gnutls_transport_get_ptr(*client->remote->tls_session); remote 381 daemons/based/based_remote.c gnutls_bye(*client->remote->tls_session, GNUTLS_SHUT_WR); remote 383 daemons/based/based_remote.c gnutls_deinit(*client->remote->tls_session); remote 384 daemons/based/based_remote.c gnutls_free(client->remote->tls_session); remote 385 daemons/based/based_remote.c client->remote->tls_session = NULL; remote 499 daemons/based/based_remote.c if (client->remote->auth_timeout) { remote 500 daemons/based/based_remote.c g_source_remove(client->remote->auth_timeout); remote 504 daemons/based/based_remote.c client->remote->auth_timeout = g_timeout_add(REMOTE_AUTH_TIMEOUT, remote 511 daemons/based/based_remote.c rc = pcmk__read_remote_message(client->remote, timeout); remote 518 daemons/based/based_remote.c command = pcmk__remote_message_xml(client->remote); remote 526 daemons/based/based_remote.c g_source_remove(client->remote->auth_timeout); remote 527 daemons/based/based_remote.c client->remote->auth_timeout = 0; remote 539 daemons/based/based_remote.c pcmk__remote_send_xml(client->remote, reg); remote 544 daemons/based/based_remote.c command = pcmk__remote_message_xml(client->remote); remote 549 daemons/based/based_remote.c command = pcmk__remote_message_xml(client->remote); remote 1262 daemons/controld/controld_remote_ra.c const char *remote = ID(result); remote 1264 daemons/controld/controld_remote_ra.c if (remote) { remote 1265 daemons/controld/controld_remote_ra.c remote_node_down(remote, DOWN_ERASE_LRM); remote 1485 daemons/execd/execd_commands.c if ((client->remote != NULL) remote 212 daemons/execd/pacemaker-execd.c return lrmd__remote_send_xml(client->remote, reply, id, "reply"); remote 236 daemons/execd/pacemaker-execd.c if (client->remote == NULL) { remote 240 daemons/execd/pacemaker-execd.c return lrmd__remote_send_xml(client->remote, msg, 0, "notify"); remote 69 daemons/execd/remoted_tls.c if (client->remote->auth_timeout) { remote 70 daemons/execd/remoted_tls.c g_source_remove(client->remote->auth_timeout); remote 72 daemons/execd/remoted_tls.c client->remote->auth_timeout = 0; remote 100 daemons/execd/remoted_tls.c switch (pcmk__remote_ready(client->remote, 0)) { remote 110 daemons/execd/remoted_tls.c rc = pcmk__read_remote_message(client->remote, -1); remote 112 daemons/execd/remoted_tls.c request = pcmk__remote_message_xml(client->remote); remote 137 daemons/execd/remoted_tls.c request = pcmk__remote_message_xml(client->remote); remote 168 daemons/execd/remoted_tls.c if (client->remote->tls_session) { remote 172 daemons/execd/remoted_tls.c sock_ptr = gnutls_transport_get_ptr(*client->remote->tls_session); remote 175 daemons/execd/remoted_tls.c gnutls_bye(*client->remote->tls_session, GNUTLS_SHUT_RDWR); remote 176 daemons/execd/remoted_tls.c gnutls_deinit(*client->remote->tls_session); remote 177 daemons/execd/remoted_tls.c gnutls_free(client->remote->tls_session); remote 190 daemons/execd/remoted_tls.c client->remote->auth_timeout = 0; remote 197 daemons/execd/remoted_tls.c mainloop_del_fd(client->remote->source); remote 198 daemons/execd/remoted_tls.c client->remote->source = NULL; remote 232 daemons/execd/remoted_tls.c new_client->remote = calloc(1, sizeof(pcmk__remote_t)); remote 234 daemons/execd/remoted_tls.c new_client->remote->tls_session = session; remote 237 daemons/execd/remoted_tls.c new_client->remote->auth_timeout = g_timeout_add(LRMD_REMOTE_AUTH_TIMEOUT, remote 243 daemons/execd/remoted_tls.c new_client->remote->source = remote 185 include/crm/common/ipc_internal.h struct pcmk__remote_s *remote; /* TCP/TLS */ remote 17 include/crm/common/remote_internal.h int pcmk__remote_send_xml(pcmk__remote_t *remote, xmlNode *msg); remote 18 include/crm/common/remote_internal.h int pcmk__remote_ready(const pcmk__remote_t *remote, int timeout_ms); remote 19 include/crm/common/remote_internal.h int pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms); remote 20 include/crm/common/remote_internal.h xmlNode *pcmk__remote_message_xml(pcmk__remote_t *remote); remote 45 include/crm/common/remote_internal.h int pcmk__tls_client_handshake(pcmk__remote_t *remote, int timeout_ms); remote 194 lib/cluster/membership.c const char *remote = crm_element_value(result, data->field); remote 198 lib/cluster/membership.c CRM_CHECK(remote != NULL, return); remote 206 lib/cluster/membership.c node = g_hash_table_lookup(crm_remote_peer_cache, remote); remote 210 lib/cluster/membership.c node = crm_remote_peer_get(remote); remote 330 lib/common/ipc_server.c if (c->remote) { remote 331 lib/common/ipc_server.c if (c->remote->auth_timeout) { remote 332 lib/common/ipc_server.c g_source_remove(c->remote->auth_timeout); remote 334 lib/common/ipc_server.c free(c->remote->buffer); remote 335 lib/common/ipc_server.c free(c->remote); remote 98 lib/common/remote.c localized_remote_header(pcmk__remote_t *remote) remote 100 lib/common/remote.c struct remote_header_v0 *header = (struct remote_header_v0 *)remote->buffer; remote 101 lib/common/remote.c if(remote->buffer_offset < sizeof(struct remote_header_v0)) { remote 132 lib/common/remote.c pcmk__tls_client_handshake(pcmk__remote_t *remote, int timeout_ms) remote 139 lib/common/remote.c rc = gnutls_handshake(*remote->tls_session); remote 141 lib/common/remote.c pollrc = pcmk__remote_ready(remote, 1000); remote 349 lib/common/remote.c CRM_ASSERT(client && client->remote && client->remote->tls_session); remote 352 lib/common/remote.c rc = gnutls_handshake(*client->remote->tls_session); remote 458 lib/common/remote.c remote_send_iovs(pcmk__remote_t *remote, struct iovec *iov, int iovs) remote 464 lib/common/remote.c if (remote->tls_session) { remote 465 lib/common/remote.c rc = send_tls(remote->tls_session, &(iov[lpc])); remote 469 lib/common/remote.c if (remote->tcp_socket) { remote 470 lib/common/remote.c rc = send_plaintext(remote->tcp_socket, &(iov[lpc])); remote 488 lib/common/remote.c pcmk__remote_send_xml(pcmk__remote_t *remote, xmlNode *msg) remote 497 lib/common/remote.c CRM_CHECK((remote != NULL) && (msg != NULL), return EINVAL); remote 519 lib/common/remote.c rc = remote_send_iovs(remote, iov, 2); remote 540 lib/common/remote.c pcmk__remote_message_xml(pcmk__remote_t *remote) remote 543 lib/common/remote.c struct remote_header_v0 *header = localized_remote_header(remote); remote 559 lib/common/remote.c remote->buffer + header->payload_offset, remote 577 lib/common/remote.c memcpy(uncompressed, remote->buffer, header->payload_offset); /* Preserve the header */ remote 578 lib/common/remote.c remote->buffer_size = header->payload_offset + size_u; remote 580 lib/common/remote.c free(remote->buffer); remote 581 lib/common/remote.c remote->buffer = uncompressed; remote 582 lib/common/remote.c header = localized_remote_header(remote); remote 586 lib/common/remote.c remote->buffer_offset = 0; remote 588 lib/common/remote.c CRM_LOG_ASSERT(remote->buffer[sizeof(struct remote_header_v0) + header->payload_uncompressed - 1] == 0); remote 590 lib/common/remote.c xml = string2xml(remote->buffer + header->payload_offset); remote 596 lib/common/remote.c crm_err("Couldn't parse: '%.120s'", remote->buffer + header->payload_offset); remote 603 lib/common/remote.c get_remote_socket(const pcmk__remote_t *remote) remote 606 lib/common/remote.c if (remote->tls_session) { remote 607 lib/common/remote.c void *sock_ptr = gnutls_transport_get_ptr(*remote->tls_session); remote 613 lib/common/remote.c if (remote->tcp_socket) { remote 614 lib/common/remote.c return remote->tcp_socket; remote 633 lib/common/remote.c pcmk__remote_ready(const pcmk__remote_t *remote, int timeout_ms) remote 641 lib/common/remote.c sock = get_remote_socket(remote); remote 685 lib/common/remote.c read_available_remote_data(pcmk__remote_t *remote) remote 689 lib/common/remote.c struct remote_header_v0 *header = localized_remote_header(remote); remote 699 lib/common/remote.c if(remote->buffer_size < read_len) { remote 700 lib/common/remote.c remote->buffer_size = 2 * read_len; remote 702 lib/common/remote.c (unsigned long long) remote->buffer_size); remote 703 lib/common/remote.c remote->buffer = pcmk__realloc(remote->buffer, remote->buffer_size + 1); remote 707 lib/common/remote.c if (!received && remote->tls_session) { remote 708 lib/common/remote.c read_rc = gnutls_record_recv(*(remote->tls_session), remote 709 lib/common/remote.c remote->buffer + remote->buffer_offset, remote 710 lib/common/remote.c remote->buffer_size - remote->buffer_offset); remote 724 lib/common/remote.c if (!received && remote->tcp_socket) { remote 725 lib/common/remote.c read_rc = read(remote->tcp_socket, remote 726 lib/common/remote.c remote->buffer + remote->buffer_offset, remote 727 lib/common/remote.c remote->buffer_size - remote->buffer_offset); remote 741 lib/common/remote.c remote->buffer_offset += read_rc; remote 743 lib/common/remote.c remote->buffer[remote->buffer_offset] = '\0'; remote 746 lib/common/remote.c (unsigned long long) remote->buffer_offset); remote 754 lib/common/remote.c (unsigned long long) remote->buffer_offset); remote 759 lib/common/remote.c (unsigned long long) remote->buffer_offset, remote 764 lib/common/remote.c header = localized_remote_header(remote); remote 766 lib/common/remote.c if(remote->buffer_offset < header->size_total) { remote 768 lib/common/remote.c (unsigned long long) remote->buffer_offset, remote 772 lib/common/remote.c (unsigned long long) remote->buffer_offset); remote 791 lib/common/remote.c pcmk__read_remote_message(pcmk__remote_t *remote, int timeout_ms) remote 808 lib/common/remote.c rc = pcmk__remote_ready(remote, remaining_timeout); remote 820 lib/common/remote.c rc = read_available_remote_data(remote); remote 78 lib/lrmd/lrmd_client.c pcmk__remote_t *remote; remote 361 lib/lrmd/lrmd_client.c return (native->remote->tls_session != NULL); remote 404 lib/lrmd/lrmd_client.c switch (pcmk__remote_ready(native->remote, 0)) { remote 406 lib/lrmd/lrmd_client.c rc = pcmk__read_remote_message(native->remote, -1); remote 407 lib/lrmd/lrmd_client.c xml = pcmk__remote_message_xml(native->remote); remote 411 lib/lrmd/lrmd_client.c xml = pcmk__remote_message_xml(native->remote); remote 432 lib/lrmd/lrmd_client.c xml = pcmk__remote_message_xml(native->remote); remote 460 lib/lrmd/lrmd_client.c int rc = pcmk__remote_ready(native->remote, 0); remote 570 lib/lrmd/lrmd_client.c if (native->remote->tls_session) { remote 571 lib/lrmd/lrmd_client.c gnutls_bye(*native->remote->tls_session, GNUTLS_SHUT_RDWR); remote 572 lib/lrmd/lrmd_client.c gnutls_deinit(*native->remote->tls_session); remote 573 lib/lrmd/lrmd_client.c gnutls_free(native->remote->tls_session); remote 590 lib/lrmd/lrmd_client.c free(native->remote->buffer); remote 591 lib/lrmd/lrmd_client.c native->remote->buffer = NULL; remote 595 lib/lrmd/lrmd_client.c native->remote->tls_session = NULL; remote 637 lib/lrmd/lrmd_client.c *reply = pcmk__remote_message_xml(native->remote); remote 649 lib/lrmd/lrmd_client.c rc = pcmk__read_remote_message(native->remote, remaining_timeout); remote 654 lib/lrmd/lrmd_client.c *reply = pcmk__remote_message_xml(native->remote); remote 692 lib/lrmd/lrmd_client.c if (native->remote->buffer && native->process_notify) { remote 711 lib/lrmd/lrmd_client.c rc = lrmd__remote_send_xml(native->remote, msg, global_remote_msg_id, remote 1334 lib/lrmd/lrmd_client.c lrmd__tls_client_handshake(pcmk__remote_t *remote) remote 1336 lib/lrmd/lrmd_client.c return pcmk__tls_client_handshake(remote, LRMD_CLIENT_HANDSHAKE_TIMEOUT); remote 1419 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(sock, GNUTLS_CLIENT, remote 1422 lib/lrmd/lrmd_client.c if (native->remote->tls_session == NULL) { remote 1428 lib/lrmd/lrmd_client.c if (lrmd__tls_client_handshake(native->remote) != pcmk_rc_ok) { remote 1431 lib/lrmd/lrmd_client.c gnutls_deinit(*native->remote->tls_session); remote 1432 lib/lrmd/lrmd_client.c gnutls_free(native->remote->tls_session); remote 1433 lib/lrmd/lrmd_client.c native->remote->tls_session = NULL; remote 1497 lib/lrmd/lrmd_client.c native->remote->tls_session = pcmk__new_tls_session(native->sock, GNUTLS_CLIENT, remote 1500 lib/lrmd/lrmd_client.c if (native->remote->tls_session == NULL) { remote 1505 lib/lrmd/lrmd_client.c if (lrmd__tls_client_handshake(native->remote) != pcmk_rc_ok) { remote 1507 lib/lrmd/lrmd_client.c gnutls_deinit(*native->remote->tls_session); remote 1508 lib/lrmd/lrmd_client.c gnutls_free(native->remote->tls_session); remote 1509 lib/lrmd/lrmd_client.c native->remote->tls_session = NULL; remote 1616 lib/lrmd/lrmd_client.c if (native->remote->tls_session) { remote 1617 lib/lrmd/lrmd_client.c gnutls_bye(*native->remote->tls_session, GNUTLS_SHUT_RDWR); remote 1618 lib/lrmd/lrmd_client.c gnutls_deinit(*native->remote->tls_session); remote 1619 lib/lrmd/lrmd_client.c gnutls_free(native->remote->tls_session); remote 1620 lib/lrmd/lrmd_client.c native->remote->tls_session = 0; remote 2239 lib/lrmd/lrmd_client.c pvt->remote = calloc(1, sizeof(pcmk__remote_t)); remote 2243 lib/lrmd/lrmd_client.c if ((pvt->remote == NULL) || ((*api)->cmds == NULL)) { remote 2338 lib/lrmd/lrmd_client.c free(native->remote); remote 111 lib/pacemaker/pcmk_sched_bundle.c if (replica->remote && pe__is_guest_or_remote_node(container_host)) { remote 117 lib/pacemaker/pcmk_sched_bundle.c INFINITY, replica->remote, remote 122 lib/pacemaker/pcmk_sched_bundle.c if (replica->remote) { remote 124 lib/pacemaker/pcmk_sched_bundle.c rsc->id, replica->remote->id); remote 125 lib/pacemaker/pcmk_sched_bundle.c replica->remote->cmds->assign(replica->remote, prefer); remote 195 lib/pacemaker/pcmk_sched_bundle.c if (replica->remote) { remote 196 lib/pacemaker/pcmk_sched_bundle.c replica->remote->cmds->create_actions(replica->remote); remote 292 lib/pacemaker/pcmk_sched_bundle.c if (replica->remote) { remote 298 lib/pacemaker/pcmk_sched_bundle.c replica->remote->cmds->internal_constraints(replica->remote); remote 302 lib/pacemaker/pcmk_sched_bundle.c CRM_ASSERT(replica->remote); remote 945 lib/pacemaker/pcmk_sched_bundle.c if (replica->remote && replica->container remote 946 lib/pacemaker/pcmk_sched_bundle.c && pe__bundle_needs_remote_name(replica->remote, rsc->cluster)) { remote 955 lib/pacemaker/pcmk_sched_bundle.c replica->remote->xml, LOG_ERR); remote 959 lib/pacemaker/pcmk_sched_bundle.c calculated_addr = pe__add_bundle_remote_name(replica->remote, remote 969 lib/pacemaker/pcmk_sched_bundle.c GHashTable *params = pe_rsc_params(replica->remote, remote 993 lib/pacemaker/pcmk_sched_bundle.c if (replica->remote) { remote 994 lib/pacemaker/pcmk_sched_bundle.c replica->remote->cmds->add_actions_to_graph(replica->remote); remote 1067 lib/pacemaker/pcmk_sched_bundle.c if ((replica->container != NULL) && (replica->remote != NULL) remote 1068 lib/pacemaker/pcmk_sched_bundle.c && replica->remote->cmds->create_probe(replica->remote, node)) { remote 1074 lib/pacemaker/pcmk_sched_bundle.c char *probe_uuid = pcmk__op_key(replica->remote->id, RSC_STATUS, remote 1076 lib/pacemaker/pcmk_sched_bundle.c pe_action_t *probe = find_first_action(replica->remote->actions, remote 1083 lib/pacemaker/pcmk_sched_bundle.c replica->remote->id, pe__node_name(node)); remote 1086 lib/pacemaker/pcmk_sched_bundle.c NULL, replica->remote, NULL, probe, remote 1113 lib/pacemaker/pcmk_sched_bundle.c if (replica->remote != NULL) { remote 1114 lib/pacemaker/pcmk_sched_bundle.c replica->remote->cmds->output_actions(replica->remote); remote 409 lib/pacemaker/pcmk_sched_remote.c pe_resource_t *remote = NULL; remote 449 lib/pacemaker/pcmk_sched_remote.c remote = action->node->details->remote_rsc; remote 450 lib/pacemaker/pcmk_sched_remote.c if (remote == NULL) { remote 467 lib/pacemaker/pcmk_sched_remote.c pcmk__new_ordering(remote, start_key(remote), NULL, remote 483 lib/pacemaker/pcmk_sched_remote.c if (remote->container) { remote 554 lib/pengine/bundle.c if (pe__unpack_resource(xml_remote, &replica->remote, parent, remote 559 lib/pengine/bundle.c g_hash_table_iter_init(&gIter, replica->remote->allowed_nodes); remote 567 lib/pengine/bundle.c replica->node->details->remote_rsc = replica->remote; remote 570 lib/pengine/bundle.c replica->remote->container = replica->container; remote 587 lib/pengine/bundle.c parent->children = g_list_append(parent->children, replica->remote); remote 617 lib/pengine/bundle.c if (replica->remote != NULL) { remote 626 lib/pengine/bundle.c pe__set_resource_flags(replica->remote, pe_rsc_allow_remote_remotes); remote 663 lib/pengine/bundle.c replica_for_remote(pe_resource_t *remote) remote 665 lib/pengine/bundle.c pe_resource_t *top = remote; remote 681 lib/pengine/bundle.c if (replica->remote == remote) { remote 1117 lib/pengine/bundle.c rsc_active = replica_resource_active(replica->remote, all); remote 1214 lib/pengine/bundle.c print_rsc_in_list(replica->remote, child_text, options, print_data); remote 1262 lib/pengine/bundle.c print_remote = replica->remote != NULL && remote 1263 lib/pengine/bundle.c !replica->remote->fns->is_filtered(replica->remote, only_rsc, print_everything); remote 1303 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), show_opts, remote 1304 lib/pengine/bundle.c replica->remote, only_node, only_rsc); remote 1330 lib/pengine/bundle.c if (replica->remote) { remote 1332 lib/pengine/bundle.c rsc_printable_id(replica->remote)); remote 1384 lib/pengine/bundle.c print_remote = replica->remote != NULL && remote 1385 lib/pengine/bundle.c !replica->remote->fns->is_filtered(replica->remote, only_rsc, print_everything); remote 1420 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), remote 1421 lib/pengine/bundle.c new_show_opts, replica->remote, only_node, only_rsc); remote 1458 lib/pengine/bundle.c if (replica->remote) { remote 1460 lib/pengine/bundle.c rsc_printable_id(replica->remote)); remote 1512 lib/pengine/bundle.c print_remote = replica->remote != NULL && remote 1513 lib/pengine/bundle.c !replica->remote->fns->is_filtered(replica->remote, only_rsc, print_everything); remote 1550 lib/pengine/bundle.c out->message(out, crm_map_element_name(replica->remote->xml), remote 1551 lib/pengine/bundle.c new_show_opts, replica->remote, only_node, only_rsc); remote 1591 lib/pengine/bundle.c if (replica->remote) { remote 1593 lib/pengine/bundle.c rsc_printable_id(replica->remote)); remote 1659 lib/pengine/bundle.c print_rsc_in_list(replica->remote, child_text, options, print_data); remote 1703 lib/pengine/bundle.c if (replica->remote) { remote 1704 lib/pengine/bundle.c free_xml(replica->remote->xml); remote 1705 lib/pengine/bundle.c replica->remote->xml = NULL; remote 1706 lib/pengine/bundle.c replica->remote->fns->free(replica->remote); remote 1707 lib/pengine/bundle.c replica->remote = NULL; remote 1792 lib/pengine/bundle.c if (replica->remote) { remote 1793 lib/pengine/bundle.c replica->remote->fns->count(replica->remote); remote 1821 lib/pengine/bundle.c } else if (replica->remote != NULL && !replica->remote->fns->is_filtered(replica->remote, only_rsc, FALSE)) { remote 161 lib/pengine/remote.c xmlNode *remote; remote 164 lib/pengine/remote.c remote = create_xml_node(parent, XML_CIB_TAG_RESOURCE); remote 167 lib/pengine/remote.c crm_xml_add(remote, XML_ATTR_ID, uname); remote 168 lib/pengine/remote.c crm_xml_add(remote, XML_AGENT_ATTR_CLASS, PCMK_RESOURCE_CLASS_OCF); remote 169 lib/pengine/remote.c crm_xml_add(remote, XML_AGENT_ATTR_PROVIDER, "pacemaker"); remote 170 lib/pengine/remote.c crm_xml_add(remote, XML_ATTR_TYPE, "remote"); remote 173 lib/pengine/remote.c xml_sub = create_xml_node(remote, XML_TAG_META_SETS); remote 191 lib/pengine/remote.c xml_sub = create_xml_node(remote, XML_TAG_ATTR_SETS); remote 203 lib/pengine/remote.c xml_sub = create_xml_node(remote, "operations"); remote 208 lib/pengine/remote.c return remote; remote 447 lib/pengine/tests/native/native_find_rsc_test.c remote_0 = replica_0->remote; remote 48 lib/pengine/variant.h pe_resource_t *remote;