forked from osmocom/wireshark
GeoNW: properly display lists of HashedId3
Currently, if the sequence of HashedId3 is 111111222222333333, wireshark will display the following 3 elements: * 111111222222333333 * 222222333333 * 333333 This is wrong, as a HashedId3 is defined as a 3 byte ID. This patch makes sure we only output 3 bytes at a time, so the output will look like the following: * 111111 * 222222 * 333333 Change-Id: I331ef473a452c3574bfca90fe2180ae27f93a480 Reviewed-on: https://code.wireshark.org/review/37996 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
This commit is contained in:
parent
5d0f0131eb
commit
1977417385
|
@ -2013,7 +2013,7 @@ dissect_secured_message(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tr
|
|||
param_len = dissect_sec_var_len(tvb, &offset, pinfo, field_tree);
|
||||
proto_item_set_len(ti, (offset-start) + param_len);
|
||||
while (param_len) {
|
||||
proto_tree_add_item(field_tree, hf_sgeonw_hashedid3, tvb, offset, param_len, ENC_NA);
|
||||
proto_tree_add_item(field_tree, hf_sgeonw_hashedid3, tvb, offset, 3, ENC_NA);
|
||||
offset += 3;
|
||||
param_len -= 3;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue