forked from osmocom/wireshark
tcp: always display next seq number
While you can add both the sequence number and next sequence number as columns, the latter would remain empty if it was the same. This disrupts the user reading flow who would have to look left and right, so just display the field unconditionally. Change-Id: I80efb972eaa9a16813a87ac0fdf6a045a3eb9d2f Suggested-by: Laura Chappell Reviewed-on: https://code.wireshark.org/review/22307 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
d25c33cc0b
commit
44aa08d025
|
@ -5985,14 +5985,12 @@ dissect_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
|
|||
}
|
||||
proto_item_set_len(ti, tcph->th_hlen);
|
||||
if (tcph->th_have_seglen) {
|
||||
if (nxtseq != tcph->th_seq) {
|
||||
if(tcp_relative_seq) {
|
||||
tf=proto_tree_add_uint_format_value(tcp_tree, hf_tcp_nxtseq, tvb, offset, 0, nxtseq, "%u (relative sequence number)", nxtseq);
|
||||
} else {
|
||||
tf=proto_tree_add_uint(tcp_tree, hf_tcp_nxtseq, tvb, offset, 0, nxtseq);
|
||||
}
|
||||
PROTO_ITEM_SET_GENERATED(tf);
|
||||
if(tcp_relative_seq) {
|
||||
tf=proto_tree_add_uint_format_value(tcp_tree, hf_tcp_nxtseq, tvb, offset, 0, nxtseq, "%u (relative sequence number)", nxtseq);
|
||||
} else {
|
||||
tf=proto_tree_add_uint(tcp_tree, hf_tcp_nxtseq, tvb, offset, 0, nxtseq);
|
||||
}
|
||||
PROTO_ITEM_SET_GENERATED(tf);
|
||||
}
|
||||
|
||||
tf = proto_tree_add_uint(tcp_tree, hf_tcp_ack, tvb, offset + 8, 4, tcph->th_ack);
|
||||
|
|
Loading…
Reference in New Issue