From 4257e61b6c8d496cb0f91a9f3ceaf5ddb551a065 Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Mon, 4 Jul 2011 14:33:22 +0000 Subject: From Kluchnikov Ivan: Wireshark cannot decode wimax compressed DL-MAP without FCH burst. Function is_down_link use the base station address (bs_address), which is set in function dissect_wimax_fch_decoder. Changed function is_down_link, it use packet_info->p2p_dir for check if packet is downlink. packet_info->p2p_dir set in GSMTAP. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6066 svn path=/trunk/; revision=37889 --- plugins/wimax/wimax_pdu_decoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/wimax/wimax_pdu_decoder.c') diff --git a/plugins/wimax/wimax_pdu_decoder.c b/plugins/wimax/wimax_pdu_decoder.c index 0874db752c..2c4649ec4e 100644 --- a/plugins/wimax/wimax_pdu_decoder.c +++ b/plugins/wimax/wimax_pdu_decoder.c @@ -48,7 +48,7 @@ extern void dissect_mac_header_generic_decoder(tvbuff_t *tvb, packet_info *pinfo extern void dissect_mac_header_type_1_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); extern void dissect_mac_header_type_2_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); extern void dissector_wimax_harq_map_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree); -extern gboolean is_down_link(address *src_address); +extern gboolean is_down_link(packet_info *pinfo); extern gint wimax_decode_dlmap_reduced_aas(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree); extern gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *pdu_tree); @@ -130,7 +130,7 @@ static void dissect_wimax_pdu_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_t } else if((first_byte & WIMAX_MAP_TYPE_MASK) == WIMAX_COMPRESSED_DL_MAP_IND) { - if(is_down_link(&pinfo->src)) + if(is_down_link(pinfo)) { /* decode compressed dl-map without mac header */ if ((first_byte & REDUCED_PRIVATE_MAP_MASK) == REDUCED_PRIVATE_MAP_MASK) { -- cgit v1.2.3