diff options
Diffstat (limited to 'plugins/wimax/msg_dreg.c')
-rw-r--r-- | plugins/wimax/msg_dreg.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/wimax/msg_dreg.c b/plugins/wimax/msg_dreg.c index 8d3fac3f2c..d561581f25 100644 --- a/plugins/wimax/msg_dreg.c +++ b/plugins/wimax/msg_dreg.c @@ -366,7 +366,7 @@ void proto_register_mac_mgmt_msg_dreg_cmd(void) } /* Decode DREG-REQ messages. */ -static void dissect_mac_mgmt_msg_dreg_req_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int dissect_mac_mgmt_msg_dreg_req_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { guint offset = 0; guint tlv_offset; @@ -435,10 +435,11 @@ static void dissect_mac_mgmt_msg_dreg_req_decoder(tvbuff_t *tvb, packet_info *pi if (!hmac_found) proto_item_append_text(dreg_req_tree, " (HMAC Tuple is missing !)"); } + return tvb_captured_length(tvb); } /* Decode DREG-CMD messages. */ -static void dissect_mac_mgmt_msg_dreg_cmd_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static int dissect_mac_mgmt_msg_dreg_cmd_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_) { guint offset = 0; guint tlv_offset; @@ -509,6 +510,7 @@ static void dissect_mac_mgmt_msg_dreg_cmd_decoder(tvbuff_t *tvb, packet_info *pi if (!hmac_found) proto_item_append_text(dreg_cmd_tree, " (HMAC Tuple is missing !)"); } + return tvb_captured_length(tvb); } void @@ -516,10 +518,10 @@ proto_reg_handoff_mac_mgmt_msg_dreg(void) { dissector_handle_t dreg_handle; - dreg_handle = create_dissector_handle(dissect_mac_mgmt_msg_dreg_req_decoder, proto_mac_mgmt_msg_dreg_req_decoder); + dreg_handle = new_create_dissector_handle(dissect_mac_mgmt_msg_dreg_req_decoder, proto_mac_mgmt_msg_dreg_req_decoder); dissector_add_uint("wmx.mgmtmsg", MAC_MGMT_MSG_DREG_REQ, dreg_handle); - dreg_handle = create_dissector_handle(dissect_mac_mgmt_msg_dreg_cmd_decoder, proto_mac_mgmt_msg_dreg_cmd_decoder); + dreg_handle = new_create_dissector_handle(dissect_mac_mgmt_msg_dreg_cmd_decoder, proto_mac_mgmt_msg_dreg_cmd_decoder); dissector_add_uint("wmx.mgmtmsg", MAC_MGMT_MSG_DREG_CMD, dreg_handle); } |