Beispiel #1
0
void dump_policy_version_list (void)
{
	Policy_t *node;
	int      i = 0;
	char     buf [32];

	dbg_printf ("Policy version list\r\n");
	LIST_FOREACH (policy_list, node) {
		dbg_printf ("%d. %s [%llu] [update_cnt: %d]\r\n", i, 
			    guid_prefix_str (&node->guid_prefix, buf), 
			    (unsigned long long) node->version, node->update_cnt);
		i++;
	}
Beispiel #2
0
static void ctt_trace (char dir, DDS_ParticipantVolatileSecureMessage *m)
{
#ifdef CTT_TRACE_DATA
	DDS_CryptoToken	*cp;
	unsigned	i;
#endif
	char		buf [40];

	if (dir == 'T')
		guid_prefix_str ((GuidPrefix_t *) m->destination_participant_key, buf);
	else
		guid_prefix_str ((GuidPrefix_t *) m->message_identity.source_guid, buf);
	log_printf (SPDP_ID, 0, "CTT: %c [%s].%llu - %s",
		dir,
		buf, 
		m->message_identity.sequence_number,
		m->message_class_id);
	if (strcmp (m->message_class_id, GMCLASSID_SECURITY_PARTICIPANT_CRYPTO_TOKENS)) {
		log_printf (SPDP_ID, 0, " (%s->", entity_id_str ((EntityId_t *) (m->source_endpoint_key + 12), buf));
		log_printf (SPDP_ID, 0, "%s)", entity_id_str ((EntityId_t *) (m->destination_endpoint_key + 12), buf));
	}
	log_printf (SPDP_ID, 0, "\r\n");
#ifdef CTT_TRACE_DATA
/*	if (strcmp (m->message_class_id, GMCLASSID_SECURITY_PARTICIPANT_CRYPTO_TOKENS)) {
		log_printf (SPDP_ID, 0, "       {%s -> ",
			guid_str ((GUID_t *) m->source_endpoint_key, buf));
		log_printf (SPDP_ID, 0, "%s}\r\n",
			guid_str ((GUID_t *) m->destination_endpoint_key, buf));
	} */
	for (i = 0; i < DDS_SEQ_LENGTH (m->message_data); i++) {
		cp = DDS_SEQ_ITEM_PTR (m->message_data, i);
		log_printf (SPDP_ID, 0, "  %u: %s:\r\n", i, cp->class_id);
		if (cp->binary_value1)
			ctt_dump_binary_value (1, cp->binary_value1);
		if (cp->binary_value2)
			ctt_dump_binary_value (2, cp->binary_value2);
	}
#endif
}