Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] creating a NBAP dissector with a different versionof the NBA

From: "Martin Peylo" <martinmeis@xxxxxxxxxxxxxx>
Date: Mon, 13 Nov 2006 17:49:59 +0100
Hi Anders,

thanks for the input. Sadly it'd need far too much effort to have all
of that implemented and regularly updated - especially due to my lack
of knowledge regarding ASN.1 and nbap. Since we're getting regularly
updated precompiled :-( libraries here anyway that transform the nbap
asn1 hex to value notation I'm "forced" to use those. It's not nice
but it fulfills our needs to see what was sent.

That rises another question I'm struggling with:
I have to link the library to libwireshark.so if I'm just adjusting
the existent epan/dissectors/packet-nbap.c. Somehow I "managed"
through my changes in Makefile.* to do that but it also gets
automatically (by ./configure && make) linked to "wireshark" what
leads to strange side-effects with (as I assume) threading - it's
hangs while starting up the GUI. If I link "wireshark" manually
without those library it works fine.

So, my question is: where exactly do I have to add "-I/myincludepath",
"-L/mylibpath" and "-lmylib" to make it configuring cleanly and not
linking the wireshark executable?

Thanks for any help
Martin



On 11/6/06, Anders Broman (AL/EAB) <anders.broman@xxxxxxxxxxxx> wrote:


-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Martin Peylo
Sent: den 6 november 2006 14:03
To: Wireshark-dev@xxxxxxxxxxxxx
Subject: [Wireshark-dev] creating a NBAP dissector with a different
versionof the NBAP ASN.1 definition - asn2wrs questions

>
>- what Version of the NBAP standard was used to create
asn/nbap/nbap.asn?

From the template file "3GPP TS 25.433 version 6.6.0 Release 6"

>- the not preprocessed nbap.asn is just what can be found in an
>TS25.433 document by ETSI? There are 6 parts and they are "just"
>concatenated?

Yes, or rather from 3gpp.org.

>- is it possible to express a more or less simple algorithm what to
comment out? If possible I'd like to write a perl
>script that automatically preprocesses the ASN file. If that succeeds
I'd like to have it added to asn/nbap/.

The file was edited by hand :-(
A possible solution could be to make a diff files between the
incompatible versions to find the incompatable
Asn1 parts then insert that asn1 code with a different name
Like:
Foo_v1::= foo_v1

Then insert a preference: Decode NBAP as V1,V2 etc
And do the necessary changes in the .cnf and ..-template.c to call the
different functions depending on the version.

Do you have an example of some differences and a trace file to
illustrate it with?

BR
Anders

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev
_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev