forked from osmocom/wireshark
ACDR: Dissect LIX2X3 packets when the corresponding bit is enabled
Change-Id: Idac44fcb8667c9441d51678545b25ac8ba861526 Reviewed-on: https://code.wireshark.org/review/36623 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
b2e13cd782
commit
fa1599a22a
|
@ -401,6 +401,7 @@ static dissector_handle_t dsp_5x_dissector_handle;
|
|||
static dissector_handle_t dsp_5x_MII_dissector_handle;
|
||||
static dissector_handle_t udp_dissector_handle;
|
||||
static dissector_handle_t xml_dissector_handle;
|
||||
static dissector_handle_t lix2x3_dissector_handle;
|
||||
|
||||
static void dissect_rtp_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
||||
guint8 media_type, guint16 payload_type);
|
||||
|
@ -785,6 +786,11 @@ acdr_payload_handler(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb,
|
|||
col_set_str(pinfo->cinfo, COL_PROTOCOL, proto_name);
|
||||
return;
|
||||
}
|
||||
if (data->li_packet && !data->header_added && lix2x3_dissector_handle)
|
||||
{
|
||||
if (call_dissector_only(lix2x3_dissector_handle, tvb, pinfo, tree, data))
|
||||
return;
|
||||
}
|
||||
// check registered media types
|
||||
if (dissector_try_uint_new(media_type_table, data->media_type, tvb, pinfo, tree, FALSE, data))
|
||||
return;
|
||||
|
@ -1984,6 +1990,7 @@ proto_reg_handoff_acdr(void)
|
|||
mgcp_dissector_handle = find_dissector("mgcp");
|
||||
sip_dissector_handle = find_dissector("sip");
|
||||
udp_dissector_handle = find_dissector("udp");
|
||||
lix2x3_dissector_handle = find_dissector("lix2x3");
|
||||
|
||||
dsp_49x_dissector_handle = find_dissector("ac49x");
|
||||
proto_ac49x = proto_get_id_by_filter_name("ac49x");
|
||||
|
|
Loading…
Reference in New Issue