Witness: enum witness_notifyResponse_type
[wireshark-wip.git] / asn1 / lpp / packet-lpp-template.c
blobb25339a6be625112c381f01193709c7505a56472
1 /* packet-lpp.c
2 * Routines for 3GPP LTE Positioning Protocol (LLP) packet dissection
3 * Copyright 2011-2013 Pascal Quantin <pascal.quantin@gmail.com>
5 * $Id$
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
26 * http://www.3gpp.org
29 #include "config.h"
31 #include <glib.h>
32 #include <epan/packet.h>
33 #include <epan/asn1.h>
35 #include "packet-per.h"
37 #define PNAME "LTE Positioning Protocol (LLP)"
38 #define PSNAME "LPP"
39 #define PFNAME "lpp"
41 #ifdef _MSC_VER
42 /* disable: "warning C4146: unary minus operator applied to unsigned type, result still unsigned" */
43 #pragma warning(disable:4146)
44 #endif
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)"},
64 { 0, NULL}
67 #include "packet-lpp-fn.c"
70 /*--- proto_register_lpp -------------------------------------------*/
71 void proto_register_lpp(void) {
73 /* List of fields */
74 static hf_register_info hf[] = {
76 #include "packet-lpp-hfarr.c"
79 /* List of subtrees */
80 static gint *ett[] = {
81 &ett_lpp,
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 ---------------------------------------*/
99 void
100 proto_reg_handoff_lpp(void)
102 lppe_handle = find_dissector("lppe");