diff options
Diffstat (limited to 'epan/dissectors/packet-m3ap.c')
-rw-r--r-- | epan/dissectors/packet-m3ap.c | 93 |
1 files changed, 45 insertions, 48 deletions
diff --git a/epan/dissectors/packet-m3ap.c b/epan/dissectors/packet-m3ap.c index 7516bbc73e..3af02845e5 100644 --- a/epan/dissectors/packet-m3ap.c +++ b/epan/dissectors/packet-m3ap.c @@ -273,9 +273,9 @@ static gint ett_m3ap_UnsuccessfulOutcome = -1; #line 67 "../../asn1/m3ap/packet-m3ap-template.c" enum{ - INITIATING_MESSAGE, - SUCCESSFUL_OUTCOME, - UNSUCCESSFUL_OUTCOME + INITIATING_MESSAGE, + SUCCESSFUL_OUTCOME, + UNSUCCESSFUL_OUTCOME }; /* Global variables */ @@ -1974,47 +1974,47 @@ static int dissect_M3AP_PDU_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto static int dissect_ProtocolIEFieldValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - return (dissector_try_uint(m3ap_ies_dissector_table, ProtocolIE_ID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; + return (dissector_try_uint(m3ap_ies_dissector_table, ProtocolIE_ID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; } static int dissect_ProtocolExtensionFieldExtensionValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - return (dissector_try_uint(m3ap_extension_dissector_table, ProtocolIE_ID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; + return (dissector_try_uint(m3ap_extension_dissector_table, ProtocolIE_ID, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; } static int dissect_InitiatingMessageValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - return (dissector_try_uint(m3ap_proc_imsg_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; + return (dissector_try_uint(m3ap_proc_imsg_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; } static int dissect_SuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - return (dissector_try_uint(m3ap_proc_sout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; + return (dissector_try_uint(m3ap_proc_sout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; } static int dissect_UnsuccessfulOutcomeValue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - return (dissector_try_uint(m3ap_proc_uout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; + return (dissector_try_uint(m3ap_proc_uout_dissector_table, ProcedureCode, tvb, pinfo, tree)) ? tvb_length(tvb) : 0; } static void dissect_m3ap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { - proto_item *m3ap_item = NULL; - proto_tree *m3ap_tree = NULL; + proto_item *m3ap_item = NULL; + proto_tree *m3ap_tree = NULL; - /* make entry in the Protocol column on summary display */ - if (check_col(pinfo->cinfo, COL_PROTOCOL)) - col_set_str(pinfo->cinfo, COL_PROTOCOL, PNAME); + /* make entry in the Protocol column on summary display */ + if (check_col(pinfo->cinfo, COL_PROTOCOL)) + col_set_str(pinfo->cinfo, COL_PROTOCOL, PNAME); - /* create the m3ap protocol tree */ - if (tree) { - m3ap_item = proto_tree_add_item(tree, proto_m3ap, tvb, 0, -1, FALSE); - m3ap_tree = proto_item_add_subtree(m3ap_item, ett_m3ap); + /* create the m3ap protocol tree */ + if (tree) { + m3ap_item = proto_tree_add_item(tree, proto_m3ap, tvb, 0, -1, ENC_NA); + m3ap_tree = proto_item_add_subtree(m3ap_item, ett_m3ap); - dissect_M3AP_PDU_PDU(tvb, pinfo, m3ap_tree); - } + dissect_M3AP_PDU_PDU(tvb, pinfo, m3ap_tree); + } } /*--- proto_register_m3ap -------------------------------------------*/ void proto_register_m3ap(void) { @@ -2022,15 +2022,15 @@ void proto_register_m3ap(void) { /* List of fields */ static hf_register_info hf[] = { { &hf_m3ap_Absolute_Time_ofMBMS_Data_value, - { "Absolute-Time-ofMBMS-Data-value", "m3ap.Absolute_Time_ofMBMS_Data_value", - FT_STRING, BASE_NONE, NULL, 0, - NULL, HFILL } - }, + { "Absolute-Time-ofMBMS-Data-value", "m3ap.Absolute_Time_ofMBMS_Data_value", + FT_STRING, BASE_NONE, NULL, 0, + NULL, HFILL } + }, { &hf_m3ap_IPAddress, - { "IPAddress", "m3ap.IPAddress", - FT_IPv6, BASE_NONE, NULL, 0, - NULL, HFILL } - }, + { "IPAddress", "m3ap.IPAddress", + FT_IPv6, BASE_NONE, NULL, 0, + NULL, HFILL } + }, /*--- Included file: packet-m3ap-hfarr.c ---*/ @@ -2493,8 +2493,6 @@ void proto_register_m3ap(void) { m3ap_proc_imsg_dissector_table = register_dissector_table("m3ap.proc.imsg", "M3AP-ELEMENTARY-PROCEDURE InitiatingMessage", FT_UINT32, BASE_DEC); m3ap_proc_sout_dissector_table = register_dissector_table("m3ap.proc.sout", "M3AP-ELEMENTARY-PROCEDURE SuccessfulOutcome", FT_UINT32, BASE_DEC); m3ap_proc_uout_dissector_table = register_dissector_table("m3ap.proc.uout", "M3AP-ELEMENTARY-PROCEDURE UnsuccessfulOutcome", FT_UINT32, BASE_DEC); - - } @@ -2502,13 +2500,13 @@ void proto_register_m3ap(void) { void proto_reg_handoff_m3ap(void) { - static gboolean inited = FALSE; - static guint SctpPort; + static gboolean inited = FALSE; + static guint SctpPort; - if( !inited ) { - m3ap_handle = create_dissector_handle(dissect_m3ap, proto_m3ap); - dissector_add_uint("sctp.ppi", PROTO_3GPP_M3AP_PROTOCOL_ID, m3ap_handle); - inited = TRUE; + if( !inited ) { + m3ap_handle = create_dissector_handle(dissect_m3ap, proto_m3ap); + dissector_add_uint("sctp.ppi", PROTO_3GPP_M3AP_PROTOCOL_ID, m3ap_handle); + inited = TRUE; /*--- Included file: packet-m3ap-dis-tab.c ---*/ #line 1 "../../asn1/m3ap/packet-m3ap-dis-tab.c" @@ -2554,18 +2552,17 @@ proto_reg_handoff_m3ap(void) /*--- End of included file: packet-m3ap-dis-tab.c ---*/ -#line 195 "../../asn1/m3ap/packet-m3ap-template.c" - dissector_add_uint("m3ap.extension", 17, new_create_dissector_handle(dissect_AllocationAndRetentionPriority_PDU, proto_m3ap)); - } - else { - if (SctpPort != 0) { - dissector_delete_uint("sctp.port", SctpPort, m3ap_handle); - } - } - - SctpPort = global_m3ap_port; - if (SctpPort != 0) { - dissector_add_uint("sctp.port", SctpPort, m3ap_handle); - } +#line 193 "../../asn1/m3ap/packet-m3ap-template.c" + dissector_add_uint("m3ap.extension", 17, new_create_dissector_handle(dissect_AllocationAndRetentionPriority_PDU, proto_m3ap)); + } + else { + if (SctpPort != 0) { + dissector_delete_uint("sctp.port", SctpPort, m3ap_handle); + } + } + SctpPort = global_m3ap_port; + if (SctpPort != 0) { + dissector_add_uint("sctp.port", SctpPort, m3ap_handle); + } } |