aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorJan Hutter <jhutter@hsr.ch>2005-11-14 10:13:49 +0000
committerJan Hutter <jhutter@hsr.ch>2005-11-14 10:13:49 +0000
commit1b89ef112e5a7cb2bd1b5890a001bdc37c102bc1 (patch)
tree07e70096437c0c2e9ce40607387ed37cd00d6b01 /Source
parent150ed20688cc66814ffcb882f97187725f96beaa (diff)
downloadstrongswan-1b89ef112e5a7cb2bd1b5890a001bdc37c102bc1.tar.bz2
strongswan-1b89ef112e5a7cb2bd1b5890a001bdc37c102bc1.tar.xz
LENGTH is not anymore available
Diffstat (limited to 'Source')
-rw-r--r--Source/charon/generator.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/charon/generator.c b/Source/charon/generator.c
index 997c556b9..30ca74c2e 100644
--- a/Source/charon/generator.c
+++ b/Source/charon/generator.c
@@ -469,8 +469,13 @@ static status_t generate_payload (private_generator_t *this,payload_t *payload)
status = this->generate_flag(this,rules[i].offset);
break;
}
- case LENGTH:
- /* length is generated like an U_INT_32 */
+ case PAYLOAD_LENGTH:
+ /* payload length is generated like an U_INT_16 */
+ status = this->generate_u_int_type(this,U_INT_16,rules[i].offset);
+ break;
+
+ case HEADER_LENGTH:
+ /* header length is generated like an U_INT_32 */
status = this->generate_u_int_type(this,U_INT_32,rules[i].offset);
break;
case SPI_SIZE: