From febcc71ac8cacb633b60ab5a35970eff0ad3241b Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Thu, 8 Nov 2018 17:13:50 +0100 Subject: [PATCH] Fix SRTCP packet index being 47 bits (it's 31 bits) --- src/rfc3711.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rfc3711.rs b/src/rfc3711.rs index 89a067b..d4e427e 100644 --- a/src/rfc3711.rs +++ b/src/rfc3711.rs @@ -161,10 +161,10 @@ pub struct SrtcpContext { // TODO: support other fields pub master_key: Vec, pub master_salt: Vec, - pub highest_recv_index: PacketIndex, // NOTE: 47-bits + pub highest_recv_index: u32, // NOTE: 31-bits pub encryption: EncryptionAlgorithm, pub authentication: AuthenticationAlgorithm, - pub replay_list: SplaySet, + pub replay_list: SplaySet, pub session_encr_key: Vec, pub session_salt_key: Vec, pub session_auth_key: Vec,