TCP: Improve consistency of reproting the SACK supported option

The =1 part does not make any sense in reporting SACK_PERM=1.
There is no value in the option and if it is not supported the
option is not there. So remove the =1 part.
This commit is contained in:
Michael Tuexen 2022-08-22 21:18:54 +02:00 committed by A Wireshark GitLab Utility
parent 1b210202a5
commit 13a302da6e
1 changed files with 1 additions and 1 deletions

View File

@ -5141,7 +5141,7 @@ dissect_tcpopt_sack_perm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, vo
proto_tree_add_item(exp_tree, hf_tcp_option_kind, tvb, offset, 1, ENC_BIG_ENDIAN);
length_item = proto_tree_add_item(exp_tree, hf_tcp_option_len, tvb, offset + 1, 1, ENC_BIG_ENDIAN);
tcp_info_append_uint(pinfo, "SACK_PERM", TRUE);
col_append_str(pinfo->cinfo, COL_INFO, " SACK_PERM");
if (!tcp_option_len_check(length_item, pinfo, tvb_reported_length(tvb), TCPOLEN_SACK_PERM))
return tvb_captured_length(tvb);