forked from osmocom/wireshark
gQUIC: Add MAD0 Tag (Max Ack Delay)
This commit is contained in:
parent
c38c83c38f
commit
3f171542ac
|
@ -166,6 +166,7 @@ static int hf_gquic_tag_fhol = -1;
|
|||
static int hf_gquic_tag_sttl = -1;
|
||||
static int hf_gquic_tag_smhl = -1;
|
||||
static int hf_gquic_tag_tbkp = -1;
|
||||
static int hf_gquic_tag_mad0 = -1;
|
||||
|
||||
/* Public Reset Tags */
|
||||
static int hf_gquic_tag_rnon = -1;
|
||||
|
@ -424,6 +425,7 @@ static const value_string message_tag_vals[] = {
|
|||
#define TAG_STTL 0x5354544C
|
||||
#define TAG_SMHL 0x534D484C
|
||||
#define TAG_TBKP 0x54424B50
|
||||
#define TAG_MAD0 0x4d414400
|
||||
|
||||
/* Public Reset Tag */
|
||||
#define TAG_RNON 0x524E4F4E
|
||||
|
@ -470,6 +472,7 @@ static const value_string tag_vals[] = {
|
|||
{ TAG_STTL, "Server Config TTL" },
|
||||
{ TAG_SMHL, "Support Max Header List (size)" },
|
||||
{ TAG_TBKP, "Token Binding Key Params" },
|
||||
{ TAG_MAD0, "Max Ack Delay (IETF QUIC)" },
|
||||
|
||||
{ TAG_RNON, "Public Reset Nonce Proof" },
|
||||
{ TAG_RSEQ, "Rejected Packet Number" },
|
||||
|
@ -1650,6 +1653,11 @@ dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, gui
|
|||
proto_item_append_text(ti_tag, ": %s", tag_str);
|
||||
tag_offset += 4;
|
||||
break;
|
||||
case TAG_MAD0:
|
||||
proto_tree_add_item(tag_tree, hf_gquic_tag_mad0, tvb, tag_offset_start + tag_offset, 4, ENC_LITTLE_ENDIAN);
|
||||
proto_item_append_text(ti_tag, ": %u", tvb_get_guint32(tvb, tag_offset_start + tag_offset, ENC_LITTLE_ENDIAN));
|
||||
tag_offset += 4;
|
||||
break;
|
||||
default:
|
||||
proto_tree_add_item(tag_tree, hf_gquic_tag_unknown, tvb, tag_offset_start + tag_offset, tag_len, ENC_NA);
|
||||
expert_add_info_format(pinfo, ti_tag, &ei_gquic_tag_undecoded,
|
||||
|
@ -3129,6 +3137,11 @@ proto_register_gquic(void)
|
|||
FT_STRING, BASE_NONE, NULL, 0x0,
|
||||
NULL, HFILL }
|
||||
},
|
||||
{ &hf_gquic_tag_mad0,
|
||||
{ "Max Ack Delay", "gquic.tag.mad0",
|
||||
FT_UINT32, BASE_DEC, NULL, 0x0,
|
||||
NULL, HFILL }
|
||||
},
|
||||
|
||||
{ &hf_gquic_tag_unknown,
|
||||
{ "Unknown tag", "gquic.tag.unknown",
|
||||
|
|
Loading…
Reference in New Issue