From 3339a629b41c50cca4232517b8249d55f462464d Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sat, 3 Aug 2019 12:50:29 +0200 Subject: ipcpd: Fix length mismatch of encryption cypher The cypher_s field in QoS was sometimes 32 and sometimes 16 bits. This is now corrected to be 16 bits. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/qos.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/ouroboros/qos.h b/include/ouroboros/qos.h index f5becaa6..c34cb9f8 100644 --- a/include/ouroboros/qos.h +++ b/include/ouroboros/qos.h @@ -34,7 +34,7 @@ typedef struct qos_spec { uint32_t ber; /* Bit error rate, errors per billion bits */ uint8_t in_order; /* In-order delivery, enables FRCT */ uint32_t max_gap; /* In ms */ - uint32_t cypher_s; /* Cypher strength, 0 = no encryption */ + uint16_t cypher_s; /* Cypher strength, 0 = no encryption */ } qosspec_t; static const qosspec_t qos_raw = { -- cgit v1.2.3