aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2011-04-28 02:27:08 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2011-04-28 02:27:08 +0200
commit7d39f3e1b94cc18a0d031704caf0dc8836fd46b0 (patch)
tree1f43bf0364aabf878888c982eacdc17e1c2726b4 /src
parente7f21e33b19430bddb5ec66756cc947c723d78b8 (diff)
downloadstrongswan-7d39f3e1b94cc18a0d031704caf0dc8836fd46b0.tar.bz2
strongswan-7d39f3e1b94cc18a0d031704caf0dc8836fd46b0.tar.xz
log unsupported IMC_IMV message types
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/tnc_imc/tnc_imc_manager.c6
-rw-r--r--src/libcharon/plugins/tnc_imv/tnc_imv_manager.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/libcharon/plugins/tnc_imc/tnc_imc_manager.c b/src/libcharon/plugins/tnc_imc/tnc_imc_manager.c
index aa20534f5..5d38b6ea0 100644
--- a/src/libcharon/plugins/tnc_imc/tnc_imc_manager.c
+++ b/src/libcharon/plugins/tnc_imc/tnc_imc_manager.c
@@ -160,6 +160,7 @@ METHOD(imc_manager_t, receive_message, void,
TNC_UInt32 message_len,
TNC_MessageType message_type)
{
+ bool type_supported = FALSE;
enumerator_t *enumerator;
imc_t *imc;
@@ -168,11 +169,16 @@ METHOD(imc_manager_t, receive_message, void,
{
if (imc->receive_message && imc->type_supported(imc, message_type))
{
+ type_supported = TRUE;
imc->receive_message(imc->get_id(imc), connection_id,
message, message_len, message_type);
}
}
enumerator->destroy(enumerator);
+ if (!type_supported)
+ {
+ DBG2(DBG_TNC, "IMC_IMV message type 0x%08x not supported", message_type);
+ }
}
METHOD(imc_manager_t, batch_ending, void,
diff --git a/src/libcharon/plugins/tnc_imv/tnc_imv_manager.c b/src/libcharon/plugins/tnc_imv/tnc_imv_manager.c
index cfbda1846..0ebecd4df 100644
--- a/src/libcharon/plugins/tnc_imv/tnc_imv_manager.c
+++ b/src/libcharon/plugins/tnc_imv/tnc_imv_manager.c
@@ -228,6 +228,7 @@ METHOD(imv_manager_t, receive_message, void,
TNC_UInt32 message_len,
TNC_MessageType message_type)
{
+ bool type_supported = FALSE;
enumerator_t *enumerator;
imv_t *imv;
@@ -236,11 +237,16 @@ METHOD(imv_manager_t, receive_message, void,
{
if (imv->receive_message && imv->type_supported(imv, message_type))
{
+ type_supported = TRUE;
imv->receive_message(imv->get_id(imv), connection_id,
message, message_len, message_type);
}
}
enumerator->destroy(enumerator);
+ if (!type_supported)
+ {
+ DBG2(DBG_TNC, "IMC_IMV message type 0x%08x not supported", message_type);
+ }
}
METHOD(imv_manager_t, batch_ending, void,