diff options
Diffstat (limited to 'plugins/wimax/msg_rep.c')
-rw-r--r-- | plugins/wimax/msg_rep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/wimax/msg_rep.c b/plugins/wimax/msg_rep.c index a06f13b1e9..c033703087 100644 --- a/plugins/wimax/msg_rep.c +++ b/plugins/wimax/msg_rep.c @@ -38,7 +38,7 @@ #include "moduleinfo.h" -#include <gmodule.h> +#include <glib.h> #include <epan/packet.h> #include <epan/prefs.h> #include "wimax_tlv.h" @@ -1007,8 +1007,8 @@ void dissect_mac_mgmt_msg_rep_req_decoder(tvbuff_t *tvb, packet_info *pinfo, pro if(tree) { /* we are being asked for details */ - /* Get the tvb length */ - tvb_len = tvb_length(tvb); + /* Get the tvb reported length */ + tvb_len = tvb_reported_length(tvb); /* display MAC payload type REP-REQ */ rep_item = proto_tree_add_protocol_format(tree, proto_mac_mgmt_msg_rep_decoder, tvb, offset, tvb_len, "Report Request (REP-REQ) (%u bytes)", tvb_len); /* add MAC REP-REQ subtree */ @@ -1181,8 +1181,8 @@ void dissect_mac_mgmt_msg_rep_rsp_decoder(tvbuff_t *tvb, packet_info *pinfo, pro if(tree) { /* we are being asked for details */ - /* Get the tvb length */ - tvb_len = tvb_length(tvb); + /* Get the tvb reported length */ + tvb_len = tvb_reported_length(tvb); /* display MAC payload type REP-RSP */ rep_item = proto_tree_add_protocol_format(tree, proto_mac_mgmt_msg_rep_decoder, tvb, offset, tvb_len, "Report Response (REP-RSP) (%u bytes)", tvb_len); /* add MAC REP-RSP subtree */ |