2 * Routines for 3GPP LTE Positioning Protocol (LLP) packet dissection
3 * Copyright 2011-2013 Pascal Quantin <pascal.quantin@gmail.com>
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 * Ref 3GPP TS 36.355 version 11.2.0 Release 11
32 #include <epan/packet.h>
33 #include <epan/asn1.h>
35 #include "packet-per.h"
37 #define PNAME "LTE Positioning Protocol (LLP)"
42 /* disable: "warning C4146: unary minus operator applied to unsigned type, result still unsigned" */
43 #pragma warning(disable:4146)
46 /* Initialize the protocol and registered fields */
47 static int proto_lpp
= -1;
49 #include "packet-lpp-hf.c"
51 static dissector_handle_t lppe_handle
= NULL
;
53 static guint32 lpp_epdu_id
= -1;
55 /* Initialize the subtree pointers */
56 static gint ett_lpp
= -1;
57 #include "packet-lpp-ett.c"
59 /* Include constants */
60 #include "packet-lpp-val.h"
62 static const value_string lpp_ePDU_ID_vals
[] = {
63 { 1, "OMA LPP extensions (LPPe)"},
67 #include "packet-lpp-fn.c"
70 /*--- proto_register_lpp -------------------------------------------*/
71 void proto_register_lpp(void) {
74 static hf_register_info hf
[] = {
76 #include "packet-lpp-hfarr.c"
79 /* List of subtrees */
80 static gint
*ett
[] = {
82 #include "packet-lpp-ettarr.c"
86 /* Register protocol */
87 proto_lpp
= proto_register_protocol(PNAME
, PSNAME
, PFNAME
);
88 new_register_dissector("lpp", dissect_LPP_Message_PDU
, proto_lpp
);
90 /* Register fields and subtrees */
91 proto_register_field_array(proto_lpp
, hf
, array_length(hf
));
92 proto_register_subtree_array(ett
, array_length(ett
));
98 /*--- proto_reg_handoff_lpp ---------------------------------------*/
100 proto_reg_handoff_lpp(void)
102 lppe_handle
= find_dissector("lppe");