/* packet-umts_rrc_pdu_def.c * Routines for Universal Mobile Telecommunications System (UMTS); * Radio Resource Control (RRC) protocol specification * (3GPP TS 25.331 version 6.7.0 Release 6) chapter 11.2 PDU definitions * Copyright 2006, Anders Broman * * $Id$ * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Ref: 3GPP TS 25.423 version 6.7.0 Release 6 */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include #include #include #include #include #include #include "packet-ber.h" #include "packet-per.h" #include "packet-umts_rrc_ies.h" #include "packet-umts_rrc_pdu_def.h" #define PNAME "Universal Mobile Telecommunications System (UMTS) Radio Resource Control (RRC) protocol PDU definitions" #define PSNAME "UMTS_RRC_PDU_DEF" #define PFNAME "umts_rrc_pdu_def" static dissector_handle_t umts_rrc_pdu_def_handle=NULL; /* Include constants */ #include "packet-umts_rrc_pdu_def-val.h" /* Initialize the protocol and registered fields */ static int proto_umts_rrc_pdu_def = -1; #include "packet-umts_rrc_pdu_def-hf.c" /* Initialize the subtree pointers */ static int ett_umts_rrc_pdu_def = -1; #include "packet-umts_rrc_pdu_def-ett.c" #include "packet-umts_rrc_pdu_def-fn.c" static void dissect_umts_rrc_pdu_def(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_) { /* * Dummy function, currently not used */ } /*--- proto_register_umts_rrc_pdu_def -------------------------------------------*/ void proto_register_umts_rrc_pdu_def(void) { /* List of fields */ static hf_register_info hf[] = { #include "packet-umts_rrc_pdu_def-hfarr.c" }; /* List of subtrees */ static gint *ett[] = { &ett_umts_rrc_pdu_def, #include "packet-umts_rrc_pdu_def-ettarr.c" }; /* Register protocol */ proto_umts_rrc_pdu_def = proto_register_protocol(PNAME, PSNAME, PFNAME); /* Register fields and subtrees */ proto_register_field_array(proto_umts_rrc_pdu_def, hf, array_length(hf)); proto_register_subtree_array(ett, array_length(ett)); register_dissector("umts_rrc_pdu_def", dissect_umts_rrc_pdu_def, proto_umts_rrc_pdu_def); } /*--- proto_reg_handoff_umts_rrc_pdu_def ---------------------------------------*/ void proto_reg_handoff_umts_rrc_pdu_def(void) { umts_rrc_pdu_def_handle = find_dissector("umts_rrc_pdu_def"); }