rtcp.psfb.fmt DissectorTable does not work in Lua plugin

Change-Id: I4e26ee5e4d9c1556d62ce01720e40848047c23e0
Reviewed-on: https://code.wireshark.org/review/8119
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
This commit is contained in:
Peng Li 2015-04-19 17:15:11 +08:00 committed by Pascal Quantin
parent daafb9d700
commit 2bc5b3a8bb
1 changed files with 12 additions and 2 deletions

View File

@ -1194,8 +1194,7 @@ dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item
/* Check if we have a type specific dissector,
* if we do, just return from here
*/
if (packet_length > 12 &&
dissector_get_uint_handle (rtcp_rtpfb_dissector_table, rtcp_rtpfb_fmt)) {
if (packet_length > 12) {
tvbuff_t *subtvb = tvb_new_subset_length(tvb, offset, packet_length - 12);
if (dissector_try_uint (rtcp_rtpfb_dissector_table, rtcp_rtpfb_fmt,
@ -1262,6 +1261,17 @@ dissect_rtcp_psfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree,
proto_item_append_text(ti," %s", val_to_str_const(tvb_get_ntohl(tvb,offset), rtcp_ssrc_values, ""));
offset += 4;
/* Check if we have a type specific dissector,
* if we do, just return from here
*/
if (packet_length > 12) {
tvbuff_t *subtvb = tvb_new_subset_length(tvb, offset, packet_length - 12);
if (dissector_try_uint (rtcp_psfb_dissector_table, rtcp_psfb_fmt,
subtvb, pinfo, rtcp_tree))
return base_offset + packet_length;
}
/* Feedback Control Information (FCI) */
counter = 0;
read_fci = 0;