if(from == NULL || strcmp(from, fsa_our_uname) == 0) { CRM_DEBUG("Discarding message from ourselves"); FNOUT(); } else { CRM_DEBUG4("%%%%%%%%%%%%%%%% %s , %s , %d",from, fsa_our_uname, strcmp(from, fsa_our_uname)); }
crmd_ha_input_callback(const struct ha_msg* msg, void* private_data){	const char *from = ha_msg_value(msg, F_ORIG);	if(from == NULL || strcmp(from, fsa_our_uname) == 0) {		CRM_DEBUG("Discarding message from ourselves");		FNOUT();	} else {		CRM_DEBUG4("%%%%%%%%%%%%%%%% %s , %s , %d",from, fsa_our_uname,			  strcmp(from, fsa_our_uname));	}			FNIN();	CRM_DEBUG3("processing HA message (%s from %s)",		   ha_msg_value(msg, F_SEQ), from);		xmlNodePtr root_xml_node = find_xml_in_hamessage(msg);	set_xml_property_copy(root_xml_node, XML_ATTR_HOSTFROM, from);#ifdef MSG_LOG		char *msg_text = dump_xml(root_xml_node);	if(msg_in_strm == NULL) {		msg_in_strm = fopen("/tmp/inbound.log", "w");	}	fprintf(msg_in_strm, "[HA (%s)]\t%s\n",		xmlGetProp(root_xml_node, XML_ATTR_REFERENCE),		msg_text);	fflush(msg_in_strm);	ha_free(msg_text);	#endif		s_crmd_fsa(C_HA_MESSAGE, I_ROUTER, root_xml_node);//	process_message(root_xml_node, FALSE, from);	free_xml(root_xml_node);	FNOUT();}