forked from osmocom/wireshark
QUIC: append Stream ID to more frame types
Show the Stream ID in the Info column after the RESET_STREAM, STOP_SENDING, MAX_STREAM_DATA, and STREAM_DATA_BLOCKED frame types. Change-Id: Icec0b35dcd0cd79d5be519505d7b3b98c0af9ca7 Ping-Bug: 13881 Reviewed-on: https://code.wireshark.org/review/37157 Petri-Dish: Peter Wu <peter@lekensteyn.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
5d3eea14a3
commit
ceb45a186c
|
@ -1056,25 +1056,31 @@ dissect_quic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *quic_tree
|
|||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_rsts_stream_id, tvb, offset, -1, ENC_VARINT_QUIC, &stream_id, &len_streamid);
|
||||
offset += len_streamid;
|
||||
|
||||
proto_item_append_text(ti_ft, " id=%" G_GINT64_MODIFIER "u", stream_id);
|
||||
col_append_fstr(pinfo->cinfo, COL_INFO, "(%" G_GINT64_MODIFIER "u)", stream_id);
|
||||
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_rsts_application_error_code, tvb, offset, -1, ENC_VARINT_QUIC, &error_code, &len_error_code);
|
||||
offset += len_error_code;
|
||||
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_rsts_final_size, tvb, offset, -1, ENC_VARINT_QUIC, NULL, &len_finalsize);
|
||||
offset += len_finalsize;
|
||||
|
||||
proto_item_append_text(ti_ft, " Stream ID: %" G_GINT64_MODIFIER "u, Error code: %#" G_GINT64_MODIFIER "x", stream_id, error_code);
|
||||
proto_item_append_text(ti_ft, " Error code: %#" G_GINT64_MODIFIER "x", error_code);
|
||||
}
|
||||
break;
|
||||
case FT_STOP_SENDING:{
|
||||
guint32 len_streamid;
|
||||
guint64 error_code;
|
||||
guint64 stream_id, error_code;
|
||||
guint32 len_error_code = 0;
|
||||
|
||||
col_append_fstr(pinfo->cinfo, COL_INFO, ", SS");
|
||||
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_ss_stream_id, tvb, offset, -1, ENC_VARINT_QUIC, NULL, &len_streamid);
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_ss_stream_id, tvb, offset, -1, ENC_VARINT_QUIC, &stream_id, &len_streamid);
|
||||
offset += len_streamid;
|
||||
|
||||
proto_item_append_text(ti_ft, " id=%" G_GINT64_MODIFIER "u", stream_id);
|
||||
col_append_fstr(pinfo->cinfo, COL_INFO, "(%" G_GINT64_MODIFIER "u)", stream_id);
|
||||
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_ss_application_error_code, tvb, offset, -1, ENC_VARINT_QUIC, &error_code, &len_error_code);
|
||||
offset += len_error_code;
|
||||
|
||||
|
@ -1181,12 +1187,16 @@ dissect_quic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *quic_tree
|
|||
break;
|
||||
case FT_MAX_STREAM_DATA:{
|
||||
guint32 len_streamid, len_maximumstreamdata;
|
||||
guint64 stream_id;
|
||||
|
||||
col_append_fstr(pinfo->cinfo, COL_INFO, ", MSD");
|
||||
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_msd_stream_id, tvb, offset, -1, ENC_VARINT_QUIC, NULL, &len_streamid);
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_msd_stream_id, tvb, offset, -1, ENC_VARINT_QUIC, &stream_id, &len_streamid);
|
||||
offset += len_streamid;
|
||||
|
||||
proto_item_append_text(ti_ft, " id=%" G_GINT64_MODIFIER "u", stream_id);
|
||||
col_append_fstr(pinfo->cinfo, COL_INFO, "(%" G_GINT64_MODIFIER "u)", stream_id);
|
||||
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_msd_maximum_stream_data, tvb, offset, -1, ENC_VARINT_QUIC, NULL, &len_maximumstreamdata);
|
||||
offset += len_maximumstreamdata;
|
||||
}
|
||||
|
@ -1212,12 +1222,16 @@ dissect_quic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *quic_tree
|
|||
break;
|
||||
case FT_STREAM_DATA_BLOCKED:{
|
||||
guint32 len_streamid, len_offset;
|
||||
guint64 stream_id;
|
||||
|
||||
col_append_fstr(pinfo->cinfo, COL_INFO, ", SDB");
|
||||
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_sdb_stream_id, tvb, offset, -1, ENC_VARINT_QUIC, NULL, &len_streamid);
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_sdb_stream_id, tvb, offset, -1, ENC_VARINT_QUIC, &stream_id, &len_streamid);
|
||||
offset += len_streamid;
|
||||
|
||||
proto_item_append_text(ti_ft, " id=%" G_GINT64_MODIFIER "u", stream_id);
|
||||
col_append_fstr(pinfo->cinfo, COL_INFO, "(%" G_GINT64_MODIFIER "u)", stream_id);
|
||||
|
||||
proto_tree_add_item_ret_varint(ft_tree, hf_quic_sdb_stream_data_limit, tvb, offset, -1, ENC_VARINT_QUIC, NULL, &len_offset);
|
||||
offset += len_offset;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue