UMTS Node B Application Part(NBAP) packet dissection(3GPP TS 25.433 version 6.6.0 Release 6)

All IE:s not dissected yet.

svn path=/trunk/; revision=16293
This commit is contained in:
Anders Broman 2005-10-24 21:16:44 +00:00
parent b949ed06b1
commit c38e1002dd
9 changed files with 64966 additions and 0 deletions

17
asn1/nbap/Makefile Normal file
View File

@ -0,0 +1,17 @@
# $Id$
DISSECTOR_FILES=packet-nbap.c packet-nbap.h
all: generate_dissector
generate_dissector: $(DISSECTOR_FILES)
$(DISSECTOR_FILES): ../../tools/asn2eth.py nbap.asn packet-nbap-template.c packet-nbap-template.h nbap.cnf
python ../../tools/asn2eth.py -X -e -p nbap -c nbap.cnf -s packet-nbap-template nbap.asn
clean:
rm -f parsetab.py $(DISSECTOR_FILES)
copy_files: generate_dissector
cp $(DISSECTOR_FILES) ../../epan/dissectors

42
asn1/nbap/Makefile.nmake Normal file
View File

@ -0,0 +1,42 @@
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#
# $Id$
include ../../config.nmake
UNIX2DOS=$(PERL) ../../tools/unix2dos.pl
PROTOCOL_NAME=nbap
DISSECTOR_FILES=packet-$(PROTOCOL_NAME).c packet-$(PROTOCOL_NAME).h
all: generate_dissector
generate_dissector: $(DISSECTOR_FILES)
$(DISSECTOR_FILES): ../../tools/asn2eth.py nbap.asn packet-nbap-template.c packet-nbap-template.h nbap.cnf
!IFDEF PYTHON
$(PYTHON) ../../tools/asn2eth.py -X -e -p $(PROTOCOL_NAME) -c nbap.cnf -s packet-nbap-template nbap.asn
!ELSE
@echo Error: You need Python to use asn2eth.py
@exit 1
!ENDIF
clean:
rm -f parsetab.py $(DISSECTOR_FILES)
# Fix EOL in generated dissectors. Cygwin's python generates files with
# mixed EOL styles, which can't be commited to the SVN repository.
# Stuff included from template and "cnf" files has "\r\n" on windows, while
# the generated stuff has "\n".
fix_eol: generate_dissector
move packet-$(PROTOCOL_NAME).c packet-$(PROTOCOL_NAME).c.tmp
move packet-$(PROTOCOL_NAME).h packet-$(PROTOCOL_NAME).h.tmp
$(UNIX2DOS) < packet-$(PROTOCOL_NAME).c.tmp > packet-$(PROTOCOL_NAME).c
$(UNIX2DOS) < packet-$(PROTOCOL_NAME).h.tmp > packet-$(PROTOCOL_NAME).h
del /f packet-$(PROTOCOL_NAME).c.tmp packet-$(PROTOCOL_NAME).h.tmp
copy_files: generate_dissector fix_eol
xcopy packet-$(PROTOCOL_NAME).c ..\..\epan\dissectors /d /y
xcopy packet-$(PROTOCOL_NAME).h ..\..\epan\dissectors /d /y

16953
asn1/nbap/nbap.asn Normal file

File diff suppressed because it is too large Load Diff

90
asn1/nbap/nbap.cnf Normal file
View File

@ -0,0 +1,90 @@
# nbap.cnf
# nbap conformation file
# Copyright 2005 Anders Broman
# $Id:$
#.PDU
NBAP-PDU
#.NO_EMIT
#.TYPE_RENAME
#.FIELD_RENAME
CellSyncBurstTiming/initialPhase initialPhase_0_1048575
#.FN_PARS ProcedureCode
VAL_PTR = &ProcedureCode
#.FN_FTR ProcedureCode
if (check_col(pinfo->cinfo, COL_INFO))
col_add_fstr(pinfo->cinfo, COL_INFO, "%s ",
val_to_str(ProcedureCode, nbap_ProcedureCode_vals,
"unknown message"));
#.FN_PARS ProtocolIE-ID
VAL_PTR = &ProtocolIE_ID
#.FN_PARS ProcedureID/ddMode
VAL_PTR = &ddMode
#.FN_BODY Extension
/* FIX ME */
guint length;
offset = dissect_per_length_determinant(tvb, offset, pinfo, tree, hf_nbap_IE_length, &length);
offset = offset + length;
BYTE_ALIGN_OFFSET(offset)
#.FN_BODY InitiatingMessageValue
offset = dissect_nbap_InitiatingMessageValueValue(tvb, offset, pinfo, tree);
#.FN_BODY SuccessfulOutcomeValue
offset = dissect_nbap_SuccessfulOutcomeValueValue(tvb, offset, pinfo, tree);
#.FN_BODY OutcomeValue
/* FIX ME */
guint length;
offset = dissect_per_length_determinant(tvb, offset, pinfo, tree, hf_nbap_pdu_length, &length);
offset = offset + length;
BYTE_ALIGN_OFFSET(offset)
#.FN_BODY UnsuccessfulOutcomeValue
offset = dissect_nbap_UnsuccessfulOutcomeValueValue(tvb, offset, pinfo, tree);
#.FN_BODY ProtocolIEValue
offset = dissect_nbap_ProtocolIEValueValue(tvb, offset, pinfo, tree);
#.FN_BODY FirstValue
/* FIX ME */
guint length;
offset = dissect_per_length_determinant(tvb, offset, pinfo, tree, hf_nbap_IE_length, &length);
offset = offset + length;
BYTE_ALIGN_OFFSET(offset)
#.FN_BODY SecondValue
/* FIX ME */
guint length;
offset = dissect_per_length_determinant(tvb, offset, pinfo, tree, hf_nbap_IE_length, &length);
offset = offset + length;
BYTE_ALIGN_OFFSET(offset)
#.FN_BODY PrivateIEvalue
/* FIX ME */
guint length;
offset = dissect_per_length_determinant(tvb, offset, pinfo, tree, hf_nbap_IE_length, &length);
offset = offset + length;
BYTE_ALIGN_OFFSET(offset)

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,35 @@
/* packet-nbap.h
* Routines for UMTS Node B Application Part(NBAP) packet dissection
* Copyright 2005, Anders Broman <anders.broman@ericsson.com>
*
* $Id$
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* 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.
*/
#ifndef PACKET_NBAP_H
#define PACKET_NBAP_H
/*#include "packet-ros-exp.h" */
#endif /* PACKET_NBAP_H */

View File

@ -426,6 +426,7 @@ DISSECTOR_SRC = \
packet-mtp3mg.c \
packet-multipart.c \
packet-mysql.c \
packet-nbap.c \
packet-nbipx.c \
packet-nbns.c \
packet-ncp.c \
@ -783,6 +784,7 @@ DISSECTOR_INCLUDES = \
packet-mrdisc.h \
packet-msnip.h \
packet-mtp3.h \
packet-nbap.c \
packet-ncp-int.h \
packet-ncp-nmas.h \
packet-ncp-sss.h \

45286
epan/dissectors/packet-nbap.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,42 @@
/* Do not modify this file. */
/* It is created automatically by the ASN.1 to Ethereal dissector compiler */
/* .\packet-nbap.h */
/* ../../tools/asn2eth.py -X -e -p nbap -c nbap.cnf -s packet-nbap-template nbap.asn */
/* Input file: packet-nbap-template.h */
/* packet-nbap.h
* Routines for UMTS Node B Application Part(NBAP) packet dissection
* Copyright 2005, Anders Broman <anders.broman@ericsson.com>
*
* $Id: packet-nbap-template.h 12203 2004-10-05 09:18:55Z guy $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
* 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.
*/
#ifndef PACKET_NBAP_H
#define PACKET_NBAP_H
/*#include "packet-ros-exp.h" */
#endif /* PACKET_NBAP_H */