QUIC: move NCI Sequence(i) field after CID Length field (draft -15)
on NEW_CONNECTION_ID frame Change-Id: I6bd9a158358eb5277f582b376bce2e71bd6af496 Ping-Bug: 13881 Reviewed-on: https://code.wireshark.org/review/30419 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
96224e425d
commit
9e3d5a7d74
|
@ -1053,9 +1053,10 @@ dissect_quic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *quic_tree
|
|||
|
||||
col_append_fstr(pinfo->cinfo, COL_INFO, ", NCI");
|
||||
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_frame_type_nci_sequence, tvb, offset, -1, ENC_VARINT_QUIC, NULL, &len_sequence);
|
||||
offset += len_sequence;
|
||||
|
||||
if (is_quic_draft_max(quic_info->version, 14)) {
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_frame_type_nci_sequence, tvb, offset, -1, ENC_VARINT_QUIC, NULL, &len_sequence);
|
||||
offset += len_sequence;
|
||||
}
|
||||
ti = proto_tree_add_item_ret_uint(ft_tree, hf_quic_frame_type_nci_connection_id_length, tvb, offset, 1, ENC_BIG_ENDIAN, &nci_length);
|
||||
offset++;
|
||||
|
||||
|
@ -1074,6 +1075,11 @@ dissect_quic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *quic_tree
|
|||
}
|
||||
offset += nci_length;
|
||||
|
||||
if (!is_quic_draft_max(quic_info->version, 14)) {
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_frame_type_nci_sequence, tvb, offset, -1, ENC_VARINT_QUIC, NULL, &len_sequence);
|
||||
offset += len_sequence;
|
||||
}
|
||||
|
||||
proto_tree_add_item(ft_tree, hf_quic_frame_type_nci_stateless_reset_token, tvb, offset, 16, ENC_NA);
|
||||
offset += 16;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue