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:
Guy Harris 2021-06-01 18:59:29 -07:00
parent 6542fd7ab2
commit 2f5c0ffdb2
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}