changed VENDOR_ID to PEN

This commit is contained in:
Andreas Steffen
2011-05-29 10:48:55 +02:00
parent a9f0feecb3
commit 425a3a26a5
4 changed files with 32 additions and 25 deletions
+6 -2
View File
@@ -32,6 +32,7 @@
#include <tnc/tncif.h>
#include <tnc/tncifimv.h>
#include <tnc/tnccs/tnccs.h>
#include <tnc/pen/pen.h>
typedef struct private_tnccs_20_t private_tnccs_20_t;
@@ -115,6 +116,8 @@ METHOD(tnccs_t, send_msg, TNC_Result,
pb_tnc_msg = pb_pa_msg_create(msg_vendor_id, msg_sub_type, imc_id, imv_id,
chunk_create(msg, msg_len));
DBG2(DBG_TNC, "creating PB-PA message type 0x%06x(%N)/0x%02x",
msg_vendor_id, pen_names, msg_vendor_id, msg_sub_type);
/* adding PA message to SDATA or CDATA batch only */
batch_type = this->is_server ? PB_BATCH_SDATA : PB_BATCH_CDATA;
@@ -157,7 +160,8 @@ static void handle_message(private_tnccs_20_t *this, pb_tnc_msg_t *msg)
msg_type = (vendor_id << 8) | (subtype & 0xff);
msg_body = pa_msg->get_body(pa_msg);
DBG2(DBG_TNC, "handling PB-PA message type 0x%08x", msg_type);
DBG2(DBG_TNC, "handling PB-PA message type 0x%06x(%N)/0x%02x",
vendor_id, pen_names, vendor_id, subtype);
this->send_msg = TRUE;
if (this->is_server)
@@ -231,7 +235,7 @@ static void handle_message(private_tnccs_20_t *this, pb_tnc_msg_t *msg)
this->fatal_error = TRUE;
}
if (vendor_id == IETF_VENDOR_ID)
if (vendor_id == PEN_IETF)
{
switch (error_code)
{