forked from osmocom/wireshark
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:
parent
1b210202a5
commit
13a302da6e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue