1 /* packet-MAP_DialoguePDU_asn1.c
2 * Routines for MAP_DialoguePDU packet dissection
6 * Ethereal - Network traffic analyzer
7 * By Gerald Combs <gerald@ethereal.com>
8 * Copyright 1998 Gerald Combs
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License
12 * as published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
30 #include <epan/packet.h>
31 #include <epan/conversation.h>
36 #include "packet-ber.h"
38 #define PNAME "MAP_DialoguePDU"
39 #define PSNAME "MAP_DialoguePDU"
40 #define PFNAME "MAP_DialoguePDU"
42 /* Initialize the protocol and registered fields */
43 int proto_MAP_DialoguePDU = -1;
44 #include "packet-MAP_DialoguePDU-hf.c"
46 /* Initialize the subtree pointers */
47 #include "packet-MAP_DialoguePDU-ett.c"
49 #include "packet-MAP_DialoguePDU-fn.c"
51 dissect_MAP_Dialogue(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
53 dissect_MAP_DialoguePDU_MAP_DialoguePDU(FALSE, tvb, 0, pinfo, parent_tree, -1);
56 /*--- proto_register_MAP_DialoguePDU -------------------------------------------*/
57 void proto_register_MAP_DialoguePDU(void) {
60 static hf_register_info hf[] = {
61 #include "packet-MAP_DialoguePDU-hfarr.c"
64 /* List of subtrees */
65 static gint *ett[] = {
66 #include "packet-MAP_DialoguePDU-ettarr.c"
69 /* Register protocol */
70 proto_MAP_DialoguePDU = proto_register_protocol(PNAME, PSNAME, PFNAME);
71 register_dissector("MAP_DialoguePDU", dissect_MAP_Dialogue, proto_MAP_DialoguePDU);
72 /* Register fields and subtrees */
73 proto_register_field_array(proto_MAP_DialoguePDU, hf, array_length(hf));
74 proto_register_subtree_array(ett, array_length(ett));
79 /*--- proto_reg_handoff_MAP_DialoguePDU ---------------------------------------*/
80 void proto_reg_handoff_MAP_DialoguePDU(void) {
81 register_ber_oid_dissector("0.4.0.0.1.1.1.1", dissect_MAP_Dialogue, proto_MAP_DialoguePDU,
82 "itu-t(0) identified-organization(4) etsi(0) mobileDomain(0) gsm-Network(1) abstractSyntax(1) map-DialoguePDU(1) version1(1)");