diff options
Diffstat (limited to 'plugins/wimax/msg_reg_req.c')
-rw-r--r-- | plugins/wimax/msg_reg_req.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/plugins/wimax/msg_reg_req.c b/plugins/wimax/msg_reg_req.c index 5fd5a81f7b..2475bcd79c 100644 --- a/plugins/wimax/msg_reg_req.c +++ b/plugins/wimax/msg_reg_req.c @@ -39,10 +39,9 @@ #include "wimax_mac.h" #include "wimax_utils.h" -extern gint proto_wimax; extern gboolean include_cor2_changes; -gint proto_mac_mgmt_msg_reg_req_decoder = -1; +static gint proto_mac_mgmt_msg_reg_req_decoder = -1; static gint ett_mac_mgmt_msg_reg_req_decoder = -1; /* REG-REQ fields */ @@ -1409,11 +1408,19 @@ void proto_register_mac_mgmt_msg_reg_req(void) proto_mac_mgmt_msg_reg_req_decoder = proto_register_protocol ( - "WiMax REG-REQ/RSP Messages", /* name */ - "WiMax REG-REQ/RSP (reg)", /* short name */ - "wmx.reg" /* abbrev */ + "WiMax REG-REQ Messages", /* name */ + "WiMax REG-REQ", /* short name */ + "wmx.reg_req" /* abbrev */ ); proto_register_field_array(proto_mac_mgmt_msg_reg_req_decoder, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); } + +void proto_reg_handoff_mac_mgmt_msg_reg_req(void) +{ + dissector_handle_t reg_req_handle; + + reg_req_handle = create_dissector_handle(dissect_mac_mgmt_msg_reg_req_decoder, proto_mac_mgmt_msg_reg_req_decoder); + dissector_add_uint("wmx.mgmtmsg", MAC_MGMT_MSG_REG_REQ, reg_req_handle); +} |