[Automatic update for 2016-03-13]
[metze/wireshark/wip.git] / epan / dissectors / asn1 / lppe / packet-lppe-template.c
1 /* packet-lppe.c
2  * Routines for LPP Extensions (LLPe) packet dissection
3  * Copyright 2012-2014, Pascal Quantin <pascal.quantin@gmail.com>
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  *
23  * Ref Open Mobile Alliance OMA-TS-LPPe V1_1-20140108-C
24  */
25
26 #include "config.h"
27
28 #include <epan/packet.h>
29 #include <epan/asn1.h>
30
31 #include "packet-per.h"
32 #include "packet-lpp.h"
33
34 #define PNAME  "LTE Positioning Protocol Extensions (LLPe)"
35 #define PSNAME "LPPe"
36 #define PFNAME "lppe"
37
38 #ifdef _MSC_VER
39 /* disable: "warning C4146: unary minus operator applied to unsigned type, result still unsigned" */
40 #pragma warning(disable:4146)
41 #endif
42
43 void proto_register_lppe(void);
44 void proto_reg_handoff_lppe(void);
45
46 /* Initialize the protocol and registered fields */
47 static int proto_lppe = -1;
48
49 #include "packet-lppe-hf.c"
50
51 /* Initialize the subtree pointers */
52 static gint ett_lppe = -1;
53 #include "packet-lppe-ett.c"
54
55 /* Include constants */
56 #include "packet-lppe-val.h"
57
58
59 #include "packet-lppe-fn.c"
60
61
62 /*--- proto_register_lpp -------------------------------------------*/
63 void proto_register_lppe(void) {
64
65   /* List of fields */
66   static hf_register_info hf[] = {
67
68 #include "packet-lppe-hfarr.c"
69   };
70
71   /* List of subtrees */
72   static gint *ett[] = {
73           &ett_lppe,
74 #include "packet-lppe-ettarr.c"
75   };
76
77
78   /* Register protocol */
79   proto_lppe = proto_register_protocol(PNAME, PSNAME, PFNAME);
80   register_dissector("lppe", dissect_OMA_LPPe_MessageExtension_PDU, proto_lppe);
81
82   /* Register fields and subtrees */
83   proto_register_field_array(proto_lppe, hf, array_length(hf));
84   proto_register_subtree_array(ett, array_length(ett));
85
86
87 }
88
89
90 /*--- proto_reg_handoff_lpp ---------------------------------------*/
91 void
92 proto_reg_handoff_lppe(void)
93 {
94
95 }
96
97