From dd13b0e26724445d20353a8eb382a99edc5734cc Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Tue, 3 Jul 2018 15:25:49 +1000 Subject: [PATCH] Add PN offset calculation adjustment for Initial packet --- draft-ietf-quic-tls.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/draft-ietf-quic-tls.md b/draft-ietf-quic-tls.md index 7c94b6a522..aef83a7990 100644 --- a/draft-ietf-quic-tls.md +++ b/draft-ietf-quic-tls.md @@ -745,6 +745,9 @@ handled separately. sample_offset = 6 + len(destination_connection_id) + len(source_connection_id) + len(payload_length) + 4 +if packet_type == Initial: + sample_offset += len(token_length) + + len(token) ~~~ To ensure that this process does not sample the packet number, packet number