2 * Routines for LPP Extensions (LLPe) packet dissection
3 * Copyright 2012-2014, Pascal Quantin <pascal.quantin@gmail.com>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
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.
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.
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.
23 * Ref Open Mobile Alliance OMA-TS-LPPe V1_1-20140108-C
28 #include <epan/packet.h>
29 #include <epan/asn1.h>
31 #include "packet-per.h"
32 #include "packet-lpp.h"
34 #define PNAME "LTE Positioning Protocol Extensions (LLPe)"
39 /* disable: "warning C4146: unary minus operator applied to unsigned type, result still unsigned" */
40 #pragma warning(disable:4146)
43 void proto_register_lppe(void);
44 void proto_reg_handoff_lppe(void);
46 /* Initialize the protocol and registered fields */
47 static int proto_lppe = -1;
49 #include "packet-lppe-hf.c"
51 /* Initialize the subtree pointers */
52 static gint ett_lppe = -1;
53 #include "packet-lppe-ett.c"
55 /* Include constants */
56 #include "packet-lppe-val.h"
59 #include "packet-lppe-fn.c"
62 /*--- proto_register_lpp -------------------------------------------*/
63 void proto_register_lppe(void) {
66 static hf_register_info hf[] = {
68 #include "packet-lppe-hfarr.c"
71 /* List of subtrees */
72 static gint *ett[] = {
74 #include "packet-lppe-ettarr.c"
78 /* Register protocol */
79 proto_lppe = proto_register_protocol(PNAME, PSNAME, PFNAME);
80 register_dissector("lppe", dissect_OMA_LPPe_MessageExtension_PDU, proto_lppe);
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));
90 /*--- proto_reg_handoff_lpp ---------------------------------------*/
92 proto_reg_handoff_lppe(void)