forked from osmocom/wireshark
SV / IEC 61850: Accommodate Ethernet trailers
IEC 61850 is directly over Ethernet, so use set_actual_length like other such protocols so that the Ethernet dissector has a chance to detect and dissect trailers / FCS.
This commit is contained in:
parent
8a311003df
commit
d87fb12bc2
|
@ -523,7 +523,8 @@ dissect_sv(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* dat
|
|||
proto_tree_add_item(tree, hf_sv_reserve2, tvb, offset + 6, 2, ENC_BIG_ENDIAN);
|
||||
|
||||
offset = 8;
|
||||
while ((tvb_reported_length_remaining(tvb, offset) > 0) && ((guint)offset < sv_length)) {
|
||||
set_actual_length(tvb, sv_length);
|
||||
while (tvb_reported_length_remaining(tvb, offset) > 0) {
|
||||
old_offset = offset;
|
||||
offset = dissect_sv_SampledValues(FALSE, tvb, offset, &asn1_ctx , tree, -1);
|
||||
if (offset == old_offset) {
|
||||
|
|
Loading…
Reference in New Issue