diff options
Diffstat (limited to 'plugins/wimax/msg_dsd.c')
-rw-r--r-- | plugins/wimax/msg_dsd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/wimax/msg_dsd.c b/plugins/wimax/msg_dsd.c index db698b2b86..1bc2ace73c 100644 --- a/plugins/wimax/msg_dsd.c +++ b/plugins/wimax/msg_dsd.c @@ -36,7 +36,7 @@ #define DEBUG */ -#include <gmodule.h> +#include <glib.h> #include <epan/packet.h> #include "wimax_tlv.h" #include "wimax_mac.h" @@ -152,8 +152,8 @@ void dissect_mac_mgmt_msg_dsd_req_decoder(tvbuff_t *tvb, packet_info *pinfo, pro /* ensure the message type is DSD REQ/RSP/ACK */ if(payload_type != MAC_MGMT_MSG_DSD_REQ) return; - /* Get the tvb length */ - tvb_len = tvb_length(tvb); + /* Get the tvb reported length */ + tvb_len = tvb_reported_length(tvb); /* display MAC message type */ dsd_item = proto_tree_add_protocol_format(tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tvb_len, "%s (%u bytes)", dsd_msgs[payload_type - MAC_MGMT_MSG_DSD_REQ], tvb_len); /* add MAC DSx subtree */ @@ -236,8 +236,8 @@ void dissect_mac_mgmt_msg_dsd_rsp_decoder(tvbuff_t *tvb, packet_info *pinfo, pro /* ensure the message type is DSD REQ/RSP/ACK */ if(payload_type != MAC_MGMT_MSG_DSD_RSP) return; - /* Get the tvb length */ - tvb_len = tvb_length(tvb); + /* Get the tvb reported length */ + tvb_len = tvb_reported_length(tvb); /* display MAC message type */ dsd_item = proto_tree_add_protocol_format(tree, proto_mac_mgmt_msg_dsd_decoder, tvb, offset, tvb_len, "%s (%u bytes)", dsd_msgs[payload_type - MAC_MGMT_MSG_DSD_REQ], tvb_len); /* add MAC DSx subtree */ |