name change
[obnox/wireshark/wip.git] / asn1 / rrlp / packet-rrlp-template.c
1 /* packet-rrlp.c
2  * Routines for 3GPP Radio Resource LCS Protocol (RRLP) packet dissection
3  * Copyright 2006, Anders Broman <anders.broman@ericsson.com>
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  *
25  * Ref 3GPP TS 44.031 version 6.8.0 Release 6
26  * http://www.3gpp.org
27  */
28
29 #ifdef HAVE_CONFIG_H
30 # include "config.h"
31 #endif
32
33 #include <glib.h>
34 #include <epan/packet.h>
35 #include <epan/conversation.h>
36
37 #include <stdio.h>
38 #include <string.h>
39
40 #include "packet-rrlp.h"
41
42 #include "packet-ber.h"
43 #include "packet-per.h"
44 #include "packet-gsm_map.h"
45
46 #define PNAME  "Radio Resource LCS Protocol (RRLP)"
47 #define PSNAME "RRLP"
48 #define PFNAME "rrlp"
49
50 static dissector_handle_t rrlp_handle=NULL;
51
52
53 /* Initialize the protocol and registered fields */
54 static int proto_rrlp = -1;
55
56
57 #include "packet-rrlp-hf.c"
58
59 /* Initialize the subtree pointers */
60 static gint ett_rrlp = -1;
61 #include "packet-rrlp-ett.c"
62
63 /* Include constants */
64 #include "packet-rrlp-val.h"
65
66
67 #include "packet-rrlp-fn.c"
68
69
70 /*--- proto_register_rrlp -------------------------------------------*/
71 void proto_register_rrlp(void) {
72
73   /* List of fields */
74   static hf_register_info hf[] = {
75
76 #include "packet-rrlp-hfarr.c"
77   };
78
79   /* List of subtrees */
80   static gint *ett[] = {
81           &ett_rrlp,
82 #include "packet-rrlp-ettarr.c"
83   };
84
85
86   /* Register protocol */
87   proto_rrlp = proto_register_protocol(PNAME, PSNAME, PFNAME);
88   register_dissector("rrlp", dissect_PDU_PDU, proto_rrlp);
89
90   /* Register fields and subtrees */
91   proto_register_field_array(proto_rrlp, hf, array_length(hf));
92   proto_register_subtree_array(ett, array_length(ett));
93
94  
95 }
96
97
98 /*--- proto_reg_handoff_rrlp ---------------------------------------*/
99 void
100 proto_reg_handoff_rrlp(void)
101 {
102
103         rrlp_handle = create_dissector_handle(dissect_PDU_PDU, proto_rrlp);
104
105
106 }
107
108