QUIC: Add Statess Reset Token field on NEW CONNECTION ID Frame

Adding on draft-05

and also fix typo on NEW_CONNECTION_ID column

Ping-Bug: 13881
Change-Id: I838069d6a19f85772cbbb6346853a2ba64d056fd
Reviewed-on: https://code.wireshark.org/review/23387
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2017-09-01 16:06:22 +02:00 committed by Anders Broman
parent 83f727d73d
commit f7ff38bc78
1 changed files with 11 additions and 2 deletions

View File

@ -92,6 +92,7 @@ static int hf_quic_frame_type_msi_stream_id = -1;
static int hf_quic_frame_type_sb_stream_id = -1;
static int hf_quic_frame_type_nci_sequence = -1;
static int hf_quic_frame_type_nci_connection_id = -1;
static int hf_quic_frame_type_nci_stateless_reset_token = -1;
static int hf_quic_hash = -1;
@ -622,9 +623,12 @@ dissect_quic_frame_type(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *quic_
proto_tree_add_item(ft_tree, hf_quic_frame_type_nci_connection_id, tvb, offset, 8, ENC_BIG_ENDIAN);
offset += 8;
proto_item_set_len(ti_ft, 1 + 2 + 8);
proto_tree_add_item(ft_tree, hf_quic_frame_type_nci_stateless_reset_token, tvb, offset, 16, ENC_NA);
offset += 16;
col_prepend_fstr(pinfo->cinfo, COL_INFO, "Stream Blocked");
proto_item_set_len(ti_ft, 1 + 2 + 8 + 16);
col_prepend_fstr(pinfo->cinfo, COL_INFO, "New Connection ID");
}
break;
@ -1023,6 +1027,11 @@ proto_register_quic(void)
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_quic_frame_type_nci_stateless_reset_token,
{ "Stateless Reset Token", "quic.frame_type.stateless_reset_token",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
{ &hf_quic_hash,
{ "Hash", "quic.hash",
FT_BYTES, BASE_NONE, NULL, 0x0,