Add a MapDialouge dissector ( can be tested with the file gsm-ss-01.snoop )
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 27 Oct 2004 20:17:38 +0000 (20:17 +0000)
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 27 Oct 2004 20:17:38 +0000 (20:17 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12416 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/Makefile.common
epan/dissectors/packet-MAP_DialoguePDU.c [new file with mode: 0644]
epan/dissectors/packet-MAP_DialoguePDU.h [new file with mode: 0644]

index e6a14371404cbfc66b1c046f86ac9cc23427f20a..7067946ad8771476d1fcf8e347470523290c7454 100644 (file)
@@ -323,6 +323,7 @@ DISSECTOR_SRC =     \
        packet-loop.c   \
        packet-lpd.c    \
        packet-lwapp.c  \
+       packet-MAP_DialoguePDU.c        \
        packet-m2pa.c   \
        packet-m2tp.c   \
        packet-m2ua.c   \
@@ -644,6 +645,7 @@ DISSECTOR_INCLUDES =        \
        packet-ldap.h   \
        packet-ldp.h    \
        packet-llc.h    \
+       packet-MAP_DialoguePDU.h        \
        packet-mip6.h   \
        packet-mount.h  \
        packet-mq.h     \
diff --git a/epan/dissectors/packet-MAP_DialoguePDU.c b/epan/dissectors/packet-MAP_DialoguePDU.c
new file mode 100644 (file)
index 0000000..e3b037c
--- /dev/null
@@ -0,0 +1,606 @@
+/* Do not modify this file.                                                   */\r
+/* It is created automatically by the ASN.1 to Ethereal dissector compiler    */\r
+/* .\packet-MAP_DialoguePDU.c                                                 */\r
+/* ../../tools/asn2eth.py -X -b -e -p MAP_DialoguePDU -c MAP_DialoguePDU.cnf -s packet-MAP-DialoguePDU-template MAP_DialoguePDU.asn */\r
+\r
+/* Input file: packet-MAP-DialoguePDU-template.c */\r
+\r
+/* packet-MAP_DialoguePDU_asn1.c\r
+ * Routines for MAP_DialoguePDU packet dissection\r
+ *\r
+ * $Id: packet-MAP_DialoguePDU_asn1-template.c 12203 2004-10-05 09:18:55Z guy $\r
+ *\r
+ * Ethereal - Network traffic analyzer\r
+ * By Gerald Combs <gerald@ethereal.com>\r
+ * Copyright 1998 Gerald Combs\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
+ */\r
+\r
+#ifdef HAVE_CONFIG_H\r
+# include "config.h"\r
+#endif\r
+\r
+#include <glib.h>\r
+#include <epan/packet.h>\r
+#include <epan/conversation.h>\r
+\r
+#include <stdio.h>\r
+#include <string.h>\r
+\r
+#include "packet-ber.h"\r
+\r
+#define PNAME  "MAP_DialoguePDU"\r
+#define PSNAME "MAP_DialoguePDU"\r
+#define PFNAME "MAP_DialoguePDU"\r
+\r
+/* Initialize the protocol and registered fields */\r
+int proto_MAP_DialoguePDU = -1;\r
+\r
+/*--- Included file: packet-MAP_DialoguePDU-hf.c ---*/\r
+\r
+static int hf_MAP_DialoguePDU_map_open = -1;      /* T_map_open */\r
+static int hf_MAP_DialoguePDU_destinationReference = -1;  /* DestinationReference */\r
+static int hf_MAP_DialoguePDU_originationReference = -1;  /* OriginationReference */\r
+static int hf_MAP_DialoguePDU_map_accept = -1;    /* T_map_accept */\r
+static int hf_MAP_DialoguePDU_map_close = -1;     /* T_map_close */\r
+static int hf_MAP_DialoguePDU_map_refuse = -1;    /* T_map_refuse */\r
+static int hf_MAP_DialoguePDU_reason = -1;        /* Reason */\r
+static int hf_MAP_DialoguePDU_map_userAbort = -1;  /* T_map_userAbort */\r
+static int hf_MAP_DialoguePDU_map_UserAbortChoice = -1;  /* MAP_UserAbortChoice */\r
+static int hf_MAP_DialoguePDU_map_providerAbort = -1;  /* T_map_providerAbort */\r
+static int hf_MAP_DialoguePDU_map_ProviderAbortReason = -1;  /* MAP_ProviderAbortReason */\r
+static int hf_MAP_DialoguePDU_userSpecificReason = -1;  /* NULL */\r
+static int hf_MAP_DialoguePDU_userResourceLimitation = -1;  /* NULL */\r
+static int hf_MAP_DialoguePDU_resourceUnavailable = -1;  /* ResourceUnavailable */\r
+static int hf_MAP_DialoguePDU_applicationProcedureCancellation = -1;  /* ApplicationProcedureCancellation */\r
+\r
+/*--- End of included file: packet-MAP_DialoguePDU-hf.c ---*/\r
+\r
+\r
+/* Initialize the subtree pointers */\r
+\r
+/*--- Included file: packet-MAP_DialoguePDU-ett.c ---*/\r
+\r
+static gint ett_MAP_DialoguePDU_MAP_DialoguePDU = -1;\r
+static gint ett_MAP_DialoguePDU_T_map_open = -1;\r
+static gint ett_MAP_DialoguePDU_T_map_accept = -1;\r
+static gint ett_MAP_DialoguePDU_T_map_close = -1;\r
+static gint ett_MAP_DialoguePDU_T_map_refuse = -1;\r
+static gint ett_MAP_DialoguePDU_T_map_userAbort = -1;\r
+static gint ett_MAP_DialoguePDU_T_map_providerAbort = -1;\r
+static gint ett_MAP_DialoguePDU_MAP_OpenInfo = -1;\r
+static gint ett_MAP_DialoguePDU_MAP_AcceptInfo = -1;\r
+static gint ett_MAP_DialoguePDU_MAP_CloseInfo = -1;\r
+static gint ett_MAP_DialoguePDU_MAP_RefuseInfo = -1;\r
+static gint ett_MAP_DialoguePDU_MAP_UserAbortInfo = -1;\r
+static gint ett_MAP_DialoguePDU_MAP_UserAbortChoice = -1;\r
+static gint ett_MAP_DialoguePDU_MAP_ProviderAbortInfo = -1;\r
+\r
+/*--- End of included file: packet-MAP_DialoguePDU-ett.c ---*/\r
+\r
+\r
+\r
+/*--- Included file: packet-MAP_DialoguePDU-fn.c ---*/\r
+\r
+/*--- Fields for imported types ---*/\r
+\r
+\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_DestinationReference(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index,\r
+                                    NULL);\r
+\r
+  return offset;\r
+}\r
+static int dissect_destinationReference_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_DestinationReference(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_destinationReference);\r
+}\r
+\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_OriginationReference(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_index,\r
+                                    NULL);\r
+\r
+  return offset;\r
+}\r
+static int dissect_originationReference_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_OriginationReference(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_originationReference);\r
+}\r
+\r
+static const ber_sequence T_map_open_sequence[] = {\r
+  { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_destinationReference_impl },\r
+  { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_originationReference_impl },\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_T_map_open(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                T_map_open_sequence, hf_index, ett_MAP_DialoguePDU_T_map_open);\r
+\r
+  return offset;\r
+}\r
+static int dissect_map_open_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_T_map_open(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_map_open);\r
+}\r
+\r
+static const ber_sequence T_map_accept_sequence[] = {\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_T_map_accept(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                T_map_accept_sequence, hf_index, ett_MAP_DialoguePDU_T_map_accept);\r
+\r
+  return offset;\r
+}\r
+static int dissect_map_accept_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_T_map_accept(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_map_accept);\r
+}\r
+\r
+static const ber_sequence T_map_close_sequence[] = {\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_T_map_close(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                T_map_close_sequence, hf_index, ett_MAP_DialoguePDU_T_map_close);\r
+\r
+  return offset;\r
+}\r
+static int dissect_map_close_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_T_map_close(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_map_close);\r
+}\r
+\r
+\r
+static const value_string Reason_vals[] = {\r
+  {   0, "noReasonGiven" },\r
+  {   1, "invalidDestinationReference" },\r
+  {   2, "invalidOriginatingReference" },\r
+  { 0, NULL }\r
+};\r
+\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_Reason(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_integer(pinfo, tree, tvb, offset, hf_index, NULL);\r
+\r
+  return offset;\r
+}\r
+static int dissect_reason(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_Reason(FALSE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_reason);\r
+}\r
+\r
+static const ber_sequence T_map_refuse_sequence[] = {\r
+  { BER_CLASS_UNI, BER_UNI_TAG_ENUMERATED, BER_FLAGS_NOOWNTAG, dissect_reason },\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_T_map_refuse(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                T_map_refuse_sequence, hf_index, ett_MAP_DialoguePDU_T_map_refuse);\r
+\r
+  return offset;\r
+}\r
+static int dissect_map_refuse_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_T_map_refuse(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_map_refuse);\r
+}\r
+\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_NULL(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  { proto_item *ti_tmp;\r
+  ti_tmp = proto_tree_add_item(tree, hf_index, tvb, offset>>8, 0, FALSE);\r
+  proto_item_append_text(ti_tmp, ": NULL");\r
+  }\r
+\r
+  return offset;\r
+}\r
+static int dissect_userSpecificReason_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_NULL(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_userSpecificReason);\r
+}\r
+static int dissect_userResourceLimitation_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_NULL(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_userResourceLimitation);\r
+}\r
+\r
+\r
+static const value_string ResourceUnavailable_vals[] = {\r
+  {   0, "shortTermResourceLimitation" },\r
+  {   1, "longTermResourceLimitation" },\r
+  { 0, NULL }\r
+};\r
+\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_ResourceUnavailable(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_integer(pinfo, tree, tvb, offset, hf_index, NULL);\r
+\r
+  return offset;\r
+}\r
+static int dissect_resourceUnavailable_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_ResourceUnavailable(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_resourceUnavailable);\r
+}\r
+\r
+\r
+static const value_string ApplicationProcedureCancellation_vals[] = {\r
+  {   0, "handoverCancellation" },\r
+  {   1, "radioChannelRelease" },\r
+  {   2, "networkPathRelease" },\r
+  {   3, "callRelease" },\r
+  {   4, "associatedProcedureFailure" },\r
+  {   5, "tandemDialogueRelease" },\r
+  {   6, "remoteOperationsFailure" },\r
+  { 0, NULL }\r
+};\r
+\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_ApplicationProcedureCancellation(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_integer(pinfo, tree, tvb, offset, hf_index, NULL);\r
+\r
+  return offset;\r
+}\r
+static int dissect_applicationProcedureCancellation_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_ApplicationProcedureCancellation(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_applicationProcedureCancellation);\r
+}\r
+\r
+\r
+static const value_string MAP_UserAbortChoice_vals[] = {\r
+  {   0, "userSpecificReason" },\r
+  {   1, "userResourceLimitation" },\r
+  {   2, "resourceUnavailable" },\r
+  {   3, "applicationProcedureCancellation" },\r
+  { 0, NULL }\r
+};\r
+\r
+static const ber_choice MAP_UserAbortChoice_choice[] = {\r
+  {   0, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_userSpecificReason_impl },\r
+  {   1, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_userResourceLimitation_impl },\r
+  {   2, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_resourceUnavailable_impl },\r
+  {   3, BER_CLASS_CON, 3, BER_FLAGS_IMPLTAG, dissect_applicationProcedureCancellation_impl },\r
+  { 0, 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_MAP_UserAbortChoice(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_choice(pinfo, tree, tvb, offset,\r
+                              MAP_UserAbortChoice_choice, hf_index, ett_MAP_DialoguePDU_MAP_UserAbortChoice);\r
+\r
+  return offset;\r
+}\r
+static int dissect_map_UserAbortChoice(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_MAP_UserAbortChoice(FALSE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_map_UserAbortChoice);\r
+}\r
+\r
+static const ber_sequence T_map_userAbort_sequence[] = {\r
+  { BER_CLASS_CON, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_map_UserAbortChoice },\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_T_map_userAbort(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                T_map_userAbort_sequence, hf_index, ett_MAP_DialoguePDU_T_map_userAbort);\r
+\r
+  return offset;\r
+}\r
+static int dissect_map_userAbort_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_T_map_userAbort(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_map_userAbort);\r
+}\r
+\r
+\r
+static const value_string MAP_ProviderAbortReason_vals[] = {\r
+  {   0, "abnormalDialogue" },\r
+  {   1, "invalidPDU" },\r
+  { 0, NULL }\r
+};\r
+\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_MAP_ProviderAbortReason(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_integer(pinfo, tree, tvb, offset, hf_index, NULL);\r
+\r
+  return offset;\r
+}\r
+static int dissect_map_ProviderAbortReason(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_MAP_ProviderAbortReason(FALSE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_map_ProviderAbortReason);\r
+}\r
+\r
+static const ber_sequence T_map_providerAbort_sequence[] = {\r
+  { BER_CLASS_UNI, BER_UNI_TAG_ENUMERATED, BER_FLAGS_NOOWNTAG, dissect_map_ProviderAbortReason },\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_T_map_providerAbort(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                T_map_providerAbort_sequence, hf_index, ett_MAP_DialoguePDU_T_map_providerAbort);\r
+\r
+  return offset;\r
+}\r
+static int dissect_map_providerAbort_impl(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset) {\r
+  return dissect_MAP_DialoguePDU_T_map_providerAbort(TRUE, tvb, offset, pinfo, tree, hf_MAP_DialoguePDU_map_providerAbort);\r
+}\r
+\r
+\r
+static const value_string MAP_DialoguePDU_vals[] = {\r
+  {   0, "map-open" },\r
+  {   1, "map-accept" },\r
+  {   2, "map-close" },\r
+  {   3, "map-refuse" },\r
+  {   4, "map-userAbort" },\r
+  {   5, "map-providerAbort" },\r
+  { 0, NULL }\r
+};\r
+\r
+static const ber_choice MAP_DialoguePDU_choice[] = {\r
+  {   0, BER_CLASS_CON, 0, BER_FLAGS_IMPLTAG, dissect_map_open_impl },\r
+  {   1, BER_CLASS_CON, 1, BER_FLAGS_IMPLTAG, dissect_map_accept_impl },\r
+  {   2, BER_CLASS_CON, 2, BER_FLAGS_IMPLTAG, dissect_map_close_impl },\r
+  {   3, BER_CLASS_CON, 3, BER_FLAGS_IMPLTAG, dissect_map_refuse_impl },\r
+  {   4, BER_CLASS_CON, 4, BER_FLAGS_IMPLTAG, dissect_map_userAbort_impl },\r
+  {   5, BER_CLASS_CON, 5, BER_FLAGS_IMPLTAG, dissect_map_providerAbort_impl },\r
+  { 0, 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_MAP_DialoguePDU(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_choice(pinfo, tree, tvb, offset,\r
+                              MAP_DialoguePDU_choice, hf_index, ett_MAP_DialoguePDU_MAP_DialoguePDU);\r
+\r
+  return offset;\r
+}\r
+\r
+static const ber_sequence MAP_OpenInfo_sequence[] = {\r
+  { BER_CLASS_CON, 0, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_destinationReference_impl },\r
+  { BER_CLASS_CON, 1, BER_FLAGS_OPTIONAL|BER_FLAGS_IMPLTAG, dissect_originationReference_impl },\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_MAP_OpenInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                MAP_OpenInfo_sequence, hf_index, ett_MAP_DialoguePDU_MAP_OpenInfo);\r
+\r
+  return offset;\r
+}\r
+\r
+static const ber_sequence MAP_AcceptInfo_sequence[] = {\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_MAP_AcceptInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                MAP_AcceptInfo_sequence, hf_index, ett_MAP_DialoguePDU_MAP_AcceptInfo);\r
+\r
+  return offset;\r
+}\r
+\r
+static const ber_sequence MAP_CloseInfo_sequence[] = {\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_MAP_CloseInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                MAP_CloseInfo_sequence, hf_index, ett_MAP_DialoguePDU_MAP_CloseInfo);\r
+\r
+  return offset;\r
+}\r
+\r
+static const ber_sequence MAP_RefuseInfo_sequence[] = {\r
+  { BER_CLASS_UNI, BER_UNI_TAG_ENUMERATED, BER_FLAGS_NOOWNTAG, dissect_reason },\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_MAP_RefuseInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                MAP_RefuseInfo_sequence, hf_index, ett_MAP_DialoguePDU_MAP_RefuseInfo);\r
+\r
+  return offset;\r
+}\r
+\r
+static const ber_sequence MAP_UserAbortInfo_sequence[] = {\r
+  { BER_CLASS_CON, -1/*choice*/, BER_FLAGS_NOOWNTAG|BER_FLAGS_NOTCHKTAG, dissect_map_UserAbortChoice },\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_MAP_UserAbortInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                MAP_UserAbortInfo_sequence, hf_index, ett_MAP_DialoguePDU_MAP_UserAbortInfo);\r
+\r
+  return offset;\r
+}\r
+\r
+\r
+static const value_string ResourceUnavailableReason_vals[] = {\r
+  {   0, "shortTermResourceLimitation" },\r
+  {   1, "longTermResourceLimitation" },\r
+  { 0, NULL }\r
+};\r
+\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_ResourceUnavailableReason(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_integer(pinfo, tree, tvb, offset, hf_index, NULL);\r
+\r
+  return offset;\r
+}\r
+\r
+\r
+static const value_string ProcedureCancellationReason_vals[] = {\r
+  {   0, "handoverCancellation" },\r
+  {   1, "radioChannelRelease" },\r
+  {   2, "networkPathRelease" },\r
+  {   3, "callRelease" },\r
+  {   4, "associatedProcedureFailure" },\r
+  {   5, "tandemDialogueRelease" },\r
+  {   6, "remoteOperationsFailure" },\r
+  { 0, NULL }\r
+};\r
+\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_ProcedureCancellationReason(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_integer(pinfo, tree, tvb, offset, hf_index, NULL);\r
+\r
+  return offset;\r
+}\r
+\r
+static const ber_sequence MAP_ProviderAbortInfo_sequence[] = {\r
+  { BER_CLASS_UNI, BER_UNI_TAG_ENUMERATED, BER_FLAGS_NOOWNTAG, dissect_map_ProviderAbortReason },\r
+  { 0, 0, 0, NULL }\r
+};\r
+\r
+static int\r
+dissect_MAP_DialoguePDU_MAP_ProviderAbortInfo(gboolean implicit_tag _U_, tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {\r
+  offset = dissect_ber_sequence(implicit_tag, pinfo, tree, tvb, offset,\r
+                                MAP_ProviderAbortInfo_sequence, hf_index, ett_MAP_DialoguePDU_MAP_ProviderAbortInfo);\r
+\r
+  return offset;\r
+}\r
+\r
+\r
+/*--- End of included file: packet-MAP_DialoguePDU-fn.c ---*/\r
+\r
+\r
+dissect_MAP_Dialogue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)\r
+{\r
+           dissect_MAP_DialoguePDU_MAP_DialoguePDU(FALSE, tvb, 0, pinfo, parent_tree, -1);\r
+}\r
+\r
+/*--- proto_register_MAP_DialoguePDU -------------------------------------------*/\r
+void proto_register_MAP_DialoguePDU(void) {\r
+\r
+  /* List of fields */\r
+  static hf_register_info hf[] = {\r
+\r
+/*--- Included file: packet-MAP_DialoguePDU-hfarr.c ---*/\r
+\r
+    { &hf_MAP_DialoguePDU_map_open,\r
+      { "map-open", "MAP_DialoguePDU.map_open",\r
+        FT_NONE, BASE_NONE, NULL, 0,\r
+        "MAP-DialoguePDU/map-open", HFILL }},\r
+    { &hf_MAP_DialoguePDU_destinationReference,\r
+      { "destinationReference", "MAP_DialoguePDU.destinationReference",\r
+        FT_BYTES, BASE_HEX, NULL, 0,\r
+        "", HFILL }},\r
+    { &hf_MAP_DialoguePDU_originationReference,\r
+      { "originationReference", "MAP_DialoguePDU.originationReference",\r
+        FT_BYTES, BASE_HEX, NULL, 0,\r
+        "", HFILL }},\r
+    { &hf_MAP_DialoguePDU_map_accept,\r
+      { "map-accept", "MAP_DialoguePDU.map_accept",\r
+        FT_NONE, BASE_NONE, NULL, 0,\r
+        "MAP-DialoguePDU/map-accept", HFILL }},\r
+    { &hf_MAP_DialoguePDU_map_close,\r
+      { "map-close", "MAP_DialoguePDU.map_close",\r
+        FT_NONE, BASE_NONE, NULL, 0,\r
+        "MAP-DialoguePDU/map-close", HFILL }},\r
+    { &hf_MAP_DialoguePDU_map_refuse,\r
+      { "map-refuse", "MAP_DialoguePDU.map_refuse",\r
+        FT_NONE, BASE_NONE, NULL, 0,\r
+        "MAP-DialoguePDU/map-refuse", HFILL }},\r
+    { &hf_MAP_DialoguePDU_reason,\r
+      { "reason", "MAP_DialoguePDU.reason",\r
+        FT_UINT32, BASE_DEC, VALS(Reason_vals), 0,\r
+        "", HFILL }},\r
+    { &hf_MAP_DialoguePDU_map_userAbort,\r
+      { "map-userAbort", "MAP_DialoguePDU.map_userAbort",\r
+        FT_NONE, BASE_NONE, NULL, 0,\r
+        "MAP-DialoguePDU/map-userAbort", HFILL }},\r
+    { &hf_MAP_DialoguePDU_map_UserAbortChoice,\r
+      { "map-UserAbortChoice", "MAP_DialoguePDU.map_UserAbortChoice",\r
+        FT_UINT32, BASE_DEC, VALS(MAP_UserAbortChoice_vals), 0,\r
+        "", HFILL }},\r
+    { &hf_MAP_DialoguePDU_map_providerAbort,\r
+      { "map-providerAbort", "MAP_DialoguePDU.map_providerAbort",\r
+        FT_NONE, BASE_NONE, NULL, 0,\r
+        "MAP-DialoguePDU/map-providerAbort", HFILL }},\r
+    { &hf_MAP_DialoguePDU_map_ProviderAbortReason,\r
+      { "map-ProviderAbortReason", "MAP_DialoguePDU.map_ProviderAbortReason",\r
+        FT_UINT32, BASE_DEC, VALS(MAP_ProviderAbortReason_vals), 0,\r
+        "", HFILL }},\r
+    { &hf_MAP_DialoguePDU_userSpecificReason,\r
+      { "userSpecificReason", "MAP_DialoguePDU.userSpecificReason",\r
+        FT_NONE, BASE_NONE, NULL, 0,\r
+        "MAP-UserAbortChoice/userSpecificReason", HFILL }},\r
+    { &hf_MAP_DialoguePDU_userResourceLimitation,\r
+      { "userResourceLimitation", "MAP_DialoguePDU.userResourceLimitation",\r
+        FT_NONE, BASE_NONE, NULL, 0,\r
+        "MAP-UserAbortChoice/userResourceLimitation", HFILL }},\r
+    { &hf_MAP_DialoguePDU_resourceUnavailable,\r
+      { "resourceUnavailable", "MAP_DialoguePDU.resourceUnavailable",\r
+        FT_UINT32, BASE_DEC, VALS(ResourceUnavailable_vals), 0,\r
+        "MAP-UserAbortChoice/resourceUnavailable", HFILL }},\r
+    { &hf_MAP_DialoguePDU_applicationProcedureCancellation,\r
+      { "applicationProcedureCancellation", "MAP_DialoguePDU.applicationProcedureCancellation",\r
+        FT_UINT32, BASE_DEC, VALS(ApplicationProcedureCancellation_vals), 0,\r
+        "MAP-UserAbortChoice/applicationProcedureCancellation", HFILL }},\r
+\r
+/*--- End of included file: packet-MAP_DialoguePDU-hfarr.c ---*/\r
+\r
+  };\r
+\r
+  /* List of subtrees */\r
+  static gint *ett[] = {\r
+\r
+/*--- Included file: packet-MAP_DialoguePDU-ettarr.c ---*/\r
+\r
+    &ett_MAP_DialoguePDU_MAP_DialoguePDU,\r
+    &ett_MAP_DialoguePDU_T_map_open,\r
+    &ett_MAP_DialoguePDU_T_map_accept,\r
+    &ett_MAP_DialoguePDU_T_map_close,\r
+    &ett_MAP_DialoguePDU_T_map_refuse,\r
+    &ett_MAP_DialoguePDU_T_map_userAbort,\r
+    &ett_MAP_DialoguePDU_T_map_providerAbort,\r
+    &ett_MAP_DialoguePDU_MAP_OpenInfo,\r
+    &ett_MAP_DialoguePDU_MAP_AcceptInfo,\r
+    &ett_MAP_DialoguePDU_MAP_CloseInfo,\r
+    &ett_MAP_DialoguePDU_MAP_RefuseInfo,\r
+    &ett_MAP_DialoguePDU_MAP_UserAbortInfo,\r
+    &ett_MAP_DialoguePDU_MAP_UserAbortChoice,\r
+    &ett_MAP_DialoguePDU_MAP_ProviderAbortInfo,\r
+\r
+/*--- End of included file: packet-MAP_DialoguePDU-ettarr.c ---*/\r
+\r
+  };\r
+\r
+  /* Register protocol */\r
+  proto_MAP_DialoguePDU = proto_register_protocol(PNAME, PSNAME, PFNAME);\r
+  register_dissector("MAP_DialoguePDU", dissect_MAP_Dialogue, proto_MAP_DialoguePDU);\r
+  /* Register fields and subtrees */\r
+  proto_register_field_array(proto_MAP_DialoguePDU, hf, array_length(hf));\r
+  proto_register_subtree_array(ett, array_length(ett));\r
+\r
+}\r
+\r
+\r
+/*--- proto_reg_handoff_MAP_DialoguePDU ---------------------------------------*/\r
+void proto_reg_handoff_MAP_DialoguePDU(void) {\r
+       register_ber_oid_dissector("0.4.0.0.1.1.1.1", dissect_MAP_Dialogue, proto_MAP_DialoguePDU, \r
+         "itu-t(0) identified-organization(4) etsi(0) mobileDomain(0) gsm-Network(1) abstractSyntax(1) map-DialoguePDU(1) version1(1)");\r
+\r
+}\r
+\r
diff --git a/epan/dissectors/packet-MAP_DialoguePDU.h b/epan/dissectors/packet-MAP_DialoguePDU.h
new file mode 100644 (file)
index 0000000..35ab52c
--- /dev/null
@@ -0,0 +1,38 @@
+/* Do not modify this file.                                                   */\r
+/* It is created automatically by the ASN.1 to Ethereal dissector compiler    */\r
+/* .\packet-MAP_DialoguePDU.h                                                 */\r
+/* ../../tools/asn2eth.py -X -b -e -p MAP_DialoguePDU -c MAP_DialoguePDU.cnf -s packet-MAP-DialoguePDU-template MAP_DialoguePDU.asn */\r
+\r
+/* Input file: packet-MAP-DialoguePDU-template.h */\r
+\r
+/* packet-pkinit.h\r
+ * Routines for MAP_DialoguePDU packet dissection\r
+ *\r
+ * $Id: packet-pkinit-template.h 12203 2004-10-05 09:18:55Z guy $\r
+ *\r
+ * Ethereal - Network traffic analyzer\r
+ * By Gerald Combs <gerald@ethereal.com>\r
+ * Copyright 1998 Gerald Combs\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
+ */\r
+\r
+#ifndef PACKET_MAP_DIALOUGEPDU_H\r
+#define PACKET_GSM_MAP_H\r
+\r
+#include "packet-MAP_DialoguePDU-exp.h"*/\r
+\r
+#endif  /* PACKET_MAP_DIALOUGEPDU_H */\r
+\r