imc_msg_t public;
/**
- * Connection ID
+ * Connection ID
*/
TNC_ConnectionID connection_id;
/**
- * source ID
+ * source ID
*/
- TNC_UInt32 src_id;
+ TNC_UInt32 src_id;
/**
- * destination ID
+ * destination ID
*/
- TNC_UInt32 dst_id;
+ TNC_UInt32 dst_id;
/**
- * PA-TNC message type
+ * PA-TNC message type
*/
- pen_type_t msg_type;
+ pen_type_t msg_type;
/**
* List of PA-TNC attributes to be sent
linked_list_t *attr_list;
/**
- * PA-TNC message
+ * PA-TNC message
*/
pa_tnc_msg_t *pa_msg;
/**
- * Assigned IMC agent
+ * Assigned IMC agent
*/
imc_agent_t *agent;
/**
- * Assigned IMC state
+ * Assigned IMC state
*/
imc_state_t *state;
};
if (this->state->has_long(this->state) && this->agent->send_message_long)
{
- excl = excl && this->state->has_excl(this->state) &&
+ excl = excl && this->state->has_excl(this->state) &&
this->dst_id != TNC_IMVID_ANY;
msg_flags = excl ? TNC_MESSAGE_FLAGS_EXCLUSIVE : 0;
result = this->agent->send_message_long(this->src_id,
}
enumerator->destroy(enumerator);
- /*
+ /*
* send the PA-TNC message containing all error attributes
* with the excl flag set
*/
while (enumerator->enumerate(enumerator, &attr))
{
attr_type = attr->get_type(attr);
-
+
if (attr_type.vendor_id != PEN_IETF)
{
continue;
enumerator->destroy(enumerator);
print_assessment_trailer(first);
-
+
return TNC_RESULT_SUCCESS;
}
TNC_UInt32 src_id;
in = (private_imc_msg_t*)msg;
- src_id = (in->dst_id != TNC_IMCID_ANY) ?
+ src_id = (in->dst_id != TNC_IMCID_ANY) ?
in->dst_id : in->agent->get_id(in->agent);
return imc_msg_create(in->agent, in->state, in->connection_id, src_id,
msg_subtype = msg_type & TNC_SUBTYPE_ANY;
return imc_msg_create_from_long_data(agent, state, connection_id,
- TNC_IMVID_ANY, agent->get_id(agent),
+ TNC_IMVID_ANY, agent->get_id(agent),
msg_vid, msg_subtype, msg);
}
* @param attr PA-TNC attribute to be added
*/
void (*add_attribute)(imc_msg_t *this, pa_tnc_attr_t *attr);
-
+
/**
* Enumerator over PA-TNC attributes contained in the PA-TNC message
*
imc_msg_t* imc_msg_create_from_data(imc_agent_t *agent, imc_state_t *state,
TNC_ConnectionID connection_id,
TNC_MessageType msg_type,
- chunk_t msg);
+ chunk_t msg);
/**
* Create a wrapper around message data received via the long IF-IMC interface
TNC_UInt32 src_id, TNC_UInt32 dst_id,
TNC_VendorID msg_vid,
TNC_MessageSubtype msg_subtype,
- chunk_t msg);
+ chunk_t msg);
#endif /** IMC_MSG_H_ @}*/
imv_msg_t public;
/**
- * Connection ID
+ * Connection ID
*/
TNC_ConnectionID connection_id;
/**
- * source ID
+ * source ID
*/
- TNC_UInt32 src_id;
+ TNC_UInt32 src_id;
/**
- * destination ID
+ * destination ID
*/
- TNC_UInt32 dst_id;
+ TNC_UInt32 dst_id;
/**
- * PA-TNC message type
+ * PA-TNC message type
*/
- pen_type_t msg_type;
+ pen_type_t msg_type;
/**
* List of PA-TNC attributes to be sent
linked_list_t *attr_list;
/**
- * PA-TNC message
+ * PA-TNC message
*/
pa_tnc_msg_t *pa_msg;
/**
- * Assigned IMV agent
+ * Assigned IMV agent
*/
imv_agent_t *agent;
/**
- * Assigned IMV state
+ * Assigned IMV state
*/
imv_state_t *state;
};
if (this->state->has_long(this->state) && this->agent->send_message_long)
{
- excl = excl && this->state->has_excl(this->state) &&
+ excl = excl && this->state->has_excl(this->state) &&
this->dst_id != TNC_IMCID_ANY;
msg_flags = excl ? TNC_MESSAGE_FLAGS_EXCLUSIVE : 0;
result = this->agent->send_message_long(this->src_id,
}
enumerator->destroy(enumerator);
- /*
+ /*
* send the PA-TNC message containing all error attributes
* with the excl flag set
*/
/* preprocess any received IETF standard error attributes */
*fatal_error = this->pa_msg->process_ietf_std_errors(this->pa_msg);
-
+
return TNC_RESULT_SUCCESS;
}
TNC_UInt32 src_id;
in = (private_imv_msg_t*)msg;
- src_id = (in->dst_id != TNC_IMVID_ANY) ?
+ src_id = (in->dst_id != TNC_IMVID_ANY) ?
in->dst_id : in->agent->get_id(in->agent);
return imv_msg_create(in->agent, in->state, in->connection_id, src_id,
msg_subtype = msg_type & TNC_SUBTYPE_ANY;
return imv_msg_create_from_long_data(agent, state, connection_id,
- TNC_IMCID_ANY, agent->get_id(agent),
+ TNC_IMCID_ANY, agent->get_id(agent),
msg_vid, msg_subtype, msg);
}
* @param attr PA-TNC attribute to be added
*/
void (*add_attribute)(imv_msg_t *this, pa_tnc_attr_t *attr);
-
+
/**
* Delete all PA-TNC attributes in the send queue
*
imv_msg_t* imv_msg_create_from_data(imv_agent_t *agent, imv_state_t *state,
TNC_ConnectionID connection_id,
TNC_MessageType msg_type,
- chunk_t msg);
+ chunk_t msg);
/**
* Create a wrapper around message data received via the long IF-IMV interface
TNC_UInt32 src_id, TNC_UInt32 dst_id,
TNC_VendorID msg_vid,
TNC_MessageSubtype msg_subtype,
- chunk_t msg);
+ chunk_t msg);
#endif /** IMV_MSG_H_ @}*/