aboutsummaryrefslogtreecommitdiffstats
path: root/src/libimcv/plugins/imv_os
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2015-08-18 20:25:26 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2015-08-18 21:24:26 +0200
commit10f25a3dd9390ff25a995ed422be697b76873625 (patch)
tree64c59b1e6b83da541ae6363544a7c6a7ddca0100 /src/libimcv/plugins/imv_os
parent6bd1216e7a8a41eb6c103c27a05f50871e1aef99 (diff)
downloadstrongswan-10f25a3dd9390ff25a995ed422be697b76873625.tar.bz2
strongswan-10f25a3dd9390ff25a995ed422be697b76873625.tar.xz
Fixed the implemention of the IF-M segmentation protocol
The first segment only fit if the segmentation envelope attribute was preceded by a Max Attribute Size Response attribute. The improved implementation fills up the first PA-TNC message with the first segment up to the maximum message size.
Diffstat (limited to 'src/libimcv/plugins/imv_os')
-rw-r--r--src/libimcv/plugins/imv_os/imv_os_agent.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libimcv/plugins/imv_os/imv_os_agent.c b/src/libimcv/plugins/imv_os/imv_os_agent.c
index f0b1936ab..5eefb51ad 100644
--- a/src/libimcv/plugins/imv_os/imv_os_agent.c
+++ b/src/libimcv/plugins/imv_os/imv_os_agent.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013-2014 Andreas Steffen
+ * Copyright (C) 2013-2015 Andreas Steffen
* HSR Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
@@ -542,9 +542,7 @@ METHOD(imv_agent_if_t, batch_ending, TNC_Result,
max_seg_size = state->get_max_msg_len(state)
- PA_TNC_HEADER_SIZE
- PA_TNC_ATTR_HEADER_SIZE
- - TCG_SEG_ATTR_SEG_ENV_HEADER
- - PA_TNC_ATTR_HEADER_SIZE
- - TCG_SEG_ATTR_MAX_SIZE_SIZE;
+ - TCG_SEG_ATTR_SEG_ENV_HEADER;
/* Announce support of PA-TNC segmentation to IMC */
contract = seg_contract_create(msg_types[0], max_attr_size,