aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/wimax/packet-wmx.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-07-04 14:33:22 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-07-04 14:33:22 +0000
commit4257e61b6c8d496cb0f91a9f3ceaf5ddb551a065 (patch)
tree1e930a87e6a95a2c9b0ac67d68d70b6e31e4db6b /plugins/wimax/packet-wmx.c
parent639e59a9f90f1f0dc4f673f8b1f37c9d64b84834 (diff)
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
Diffstat (limited to 'plugins/wimax/packet-wmx.c')
-rw-r--r--plugins/wimax/packet-wmx.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/wimax/packet-wmx.c b/plugins/wimax/packet-wmx.c
index 1a76f3c13d..9e9ece12d6 100644
--- a/plugins/wimax/packet-wmx.c
+++ b/plugins/wimax/packet-wmx.c
@@ -54,7 +54,7 @@ extern void proto_register_wimax_compact_ulmap_ie(void);
/* Global functions */
/* void proto_reg_handoff_wimax(void); */
-gboolean is_down_link(address *src_address);
+gboolean is_down_link(packet_info *pinfo);
/* Global variables */
gint proto_wimax = -1;
@@ -800,11 +800,13 @@ static void dissect_wimax(tvbuff_t *tvb _U_, packet_info *pinfo, proto_tree *tre
col_clear(pinfo->cinfo, COL_INFO);
}
-gboolean is_down_link(address *src_address)
+gboolean is_down_link(packet_info *pinfo)
{
- if(bs_address.len && !CMP_ADDRESS(&bs_address, src_address))
+ if (pinfo->p2p_dir == P2P_DIR_RECV)
return TRUE;
-
+ if (pinfo->p2p_dir == P2P_DIR_UNKNOWN)
+ if(bs_address.len && !CMP_ADDRESS(&bs_address, &pinfo->src))
+ return TRUE;
return FALSE;
}