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).


(cherry picked from commit 2f5c0ffdb2)
This commit is contained in:
Guy Harris 2021-06-01 18:59:29 -07:00
parent 73fe213954
commit 65a554b976
1 changed files with 1 additions and 0 deletions

View File

@ -1339,6 +1339,7 @@ static gint dissect_options(proto_tree *tree, packet_info *pinfo,
proto_item_append_text(option_item, " = %s", str);
}
proto_item_set_end(options_item, tvb, offset);
return offset;
}