forked from osmocom/wireshark
pcapng: set the length of the options item.
It runs up to either the end of the option data or the terminating end-of-options option (readers MUST handle lists of options that contains an end-of-options option and lists of options that don't).
This commit is contained in:
parent
6542fd7ab2
commit
2f5c0ffdb2
|
@ -1361,6 +1361,7 @@ static gint dissect_options(proto_tree *tree, packet_info *pinfo,
|
|||
} else
|
||||
proto_item_set_len(option_item, option_length + 2 * 2);
|
||||
}
|
||||
proto_item_set_end(options_item, tvb, offset);
|
||||
|
||||
return offset;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue