Commit Graph

78 Commits

Author SHA1 Message Date
Luis Ontanon 9709011a9b Implement a proposal from Elefterios Gabriel for SCCP:
Add a table of DPCs and SSNs that allow to override the protocol that would be choosen
so that the same SSN can use two different protocols in two different DPCs.

I did not believe it someone could have done it, then I saw the captures...


svn path=/trunk/; revision=21321
2007-04-03 19:08:00 +00:00
Ronnie Sahlberg 8920a7e7f2 change the signature that asn2wrs generates for functions to marm all parameters as _U_
to reduce the number of compiler warnings.

update some template and cnf files to use _U_ as well 


svn path=/trunk/; revision=21088
2007-03-21 10:22:22 +00:00
Ronnie Sahlberg dd7323f981 dont use _U_ when typedeffing a function pointer.
gcc 2.96 does not like _U_ here.



svn path=/trunk/; revision=20882
2007-02-20 20:21:49 +00:00
Anders Broman 564fd0fa57 From Florent Drouin:
This patch provide a new function to decode messages when several ASN1 encoding can be used.
This is the case, for example, when a same message has different encoding according to the MAP version, or in case of ASN1 encoder optimization.
 At the same time, I did remove the configuration variable "old_gsm_map_version", which is taken into account in the patch.
And likewise, for all the messages defined with the ASN1 sequence "[3] SEQUENCE", this function is called for the decoding.

svn path=/trunk/; revision=20878
2007-02-20 19:37:06 +00:00
Anders Broman 7164abe385 Decode some RANAP elements.
svn path=/trunk/; revision=20854
2007-02-19 06:09:33 +00:00
Anders Broman 9288918d6b From Florent Drouin:
A patch to update the gsm map definition up to 3GPP TS 29.002 V7.5.0 (2006-09) Release 7 There is a little impact on the GTP dissector, because I had to change the name of the Local ErrorCode in the gsm map asn1 definition due to a conflict with the Camel dissector.

svn path=/trunk/; revision=20823
2007-02-16 21:02:19 +00:00
Anders Broman d61e373bb4 As ponted out by Stig Bjørlykke change a whole bunch of dissector_handle_t to static.
svn path=/trunk/; revision=20062
2006-12-07 20:34:08 +00:00
Anders Broman ad9a9a6a9d From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics.

Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences".

You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX)

To enable the use of the Tcap context, you have 2 new parameters in the preferences,
- SRT, enable search for a Tcap context for any TCAP messages
- persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats.

There is 2 new timers  in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout.

svn path=/trunk/; revision=19341
2006-09-27 20:06:06 +00:00
Anders Broman 93ea6fac36 From Graham Addis:
In dissect_geographical_description the longitude is multiplied by 260 
 and should be by 360(degrees).

 Also it would be good to display to 5 decimal places.

svn path=/trunk/; revision=19260
2006-09-19 20:25:57 +00:00
Anders Broman 3094096ae4 Decode RANAP in LongSignalInfo and RadioResourceInformation.
svn path=/trunk/; revision=18718
2006-07-11 19:46:52 +00:00
Tomas Kukosa 56d7db0c08 remove functions register_ber_oid_name() and get_ber_oid_name() from packet-ber.c, they were only OID but not BER related
use add_oid_str_name() and get_oid_str_name() instead of them

svn path=/trunk/; revision=18595
2006-06-28 14:19:08 +00:00
Anders Broman 770777bd17 dissect_geographical_description updates.
svn path=/trunk/; revision=18318
2006-06-02 16:58:22 +00:00
Anders Broman 2143fccee3 Correct dissect_geographical_description.
svn path=/trunk/; revision=18307
2006-06-02 05:02:54 +00:00
Tomas Kukosa 55600fb60a Ethereal -> Wireshark
asn2eth -> asn2wrs

svn path=/trunk/; revision=18214
2006-05-23 15:17:14 +00:00
Ronnie Sahlberg 89f022b12b name change
svn path=/trunk/; revision=18197
2006-05-21 05:12:17 +00:00
Anders Broman 86d8177cc1 Decode Ext-GeographicalInformation.
svn path=/trunk/; revision=18182
2006-05-17 20:09:48 +00:00
Anders Broman 0a00782704 Add dissection of country code if number is in international format and Number plan is E164.
svn path=/trunk/; revision=18085
2006-05-03 18:57:32 +00:00
Anders Broman 2670be5859 Fix Bug 916 PurgeMS decoding error in GSM MAP.
Get rid of som unused ASN1 code and some asn2eth warnings. 

svn path=/trunk/; revision=18084
2006-05-03 18:49:37 +00:00
Anders Broman 5bf31ac5bd Fix bugs:
883 checkIMEIres dissection Error in GSM MAP - branch needed for v1,v2 on Response as well
884 The "absentSubscriberParam" can not be dissected in gsm-map - missing IMPLICIT.

svn path=/trunk/; revision=17926
2006-04-20 15:23:17 +00:00
Anders Broman 84fb70ef42 call OID subdissector for private extensiions, fix makefiles.
svn path=/trunk/; revision=17772
2006-03-30 16:46:36 +00:00
Anders Broman 2bf7bd3a45 From Jacques, Olivier
Here is a patch for gsm_map dissector that adds USSD string decoding (mainly used in processUnstructuredSS-Request, UnstructuredSS-Request, UnstructuredSS-Notify). For now, it assumes that it will be GSM 7 bits.
It re-use packet-gsm_sms.c "gsm_sms_char_7bit_unpack" and "gsm_sms_char_ascii_decode" functions, as well as packet-smpp.c "smpp_handle_dcs" function.

svn path=/trunk/; revision=17739
2006-03-27 18:48:33 +00:00
Anders Broman 2f9f463ede Fix Bugs
820     gsm-map checkIMEI decoding error  
821     gsm-map sendIMSI decoding error  

svn path=/trunk/; revision=17703
2006-03-23 16:58:50 +00:00
Anders Broman f935a4f8f6 Fix http://bugs.ethereal.com/bugzilla/show_bug.cgi?id=820
svn path=/trunk/; revision=17695
2006-03-22 17:10:19 +00:00
Anders Broman 74dd581db8 Remove c++ style comment.
svn path=/trunk/; revision=17352
2006-02-19 10:17:07 +00:00
Anders Broman 06d6295287 From Florent.Drouin@alcatel.fr
Add the same workaround used in packet-ftam.c for the bad handling of the asn "IMPLICIT SEQUENCE", in the packet-gsm_map-template.c. This patch concerns Map V3 messages, not correctly decoded with the previous workaround "offset=offset+2".

Change a parameter for Provide Roaming Number decoding.

Add a decoding fonction for "Channel needed" parameter to avoid a decoding error for Paging messages
with a change to actually dissct channel needed.

svn path=/trunk/; revision=17350
2006-02-18 23:29:51 +00:00
Anders Broman 25a7d62b92 BSSGP - Translate MCC and make MCC MNC etc vissible filters
GSMMAP - Small bugfix

svn path=/trunk/; revision=17132
2006-01-31 05:46:36 +00:00
Anders Broman 1c5874e2e3 Dissect CellGlobalIdOrServiceAreaIdOrLAI and RAIdentity
svn path=/trunk/; revision=17075
2006-01-22 21:16:33 +00:00
Anders Broman ae3e48d228 Dissect:
- PDPcontext
 - GSN-Address
 - QoS

svn path=/trunk/; revision=17062
2006-01-20 19:39:38 +00:00
Anders Broman 9d6de675a4 ext_qos_subscribed was not correctly decoded in Camel and GSM MAP
Change to use proto_add_item in packet-gsm_a.c for some octets and export value strings.

svn path=/trunk/; revision=17055
2006-01-19 18:20:14 +00:00
Jörg Mayer f9a57f08d1 Bill Meier:
Spelling fixes.

svn path=/trunk/; revision=16956
2006-01-05 13:01:08 +00:00
Anders Broman a010425f35 Add dissection of Error parameters hopfully geting rid of some GCC warnings.
svn path=/trunk/; revision=16860
2005-12-19 19:34:52 +00:00
Luis Ontanon bc84ba5de6 Have tcap subdissectors registering using functions provided by tcap and tcap manage ssn registration.
In packet-sccp.c avoid not having a binding.


svn path=/trunk/; revision=16834
2005-12-17 16:55:45 +00:00
Guy Harris 0e17a773b9 A loop processing all the bytes in a tvbuff from a given offset to the
end of the data in the tvbuff should stop when the offset is >= the
total amount of data in the tvbuff, not when it's > the total amount in
the tvbuff following the starting offset.

In "unpack_digits()", return a null string, not a null pointer, if
there's nothing left in the tvbuff starting at the starting offset, so
that the caller doesn't have to check for a null pointer, and return an
ep_alloc()ed buffer, so the caller doesn't have to worry about freeing
the result.

If we see a filler digit, don't advance the offset in the string buffer;
we want to put the terminating '\0' right after the character we just
put into the string.

Fuzzed against some GSM captures.

svn path=/trunk/; revision=16002
2005-09-25 09:32:01 +00:00
Guy Harris ced076f8d4 OIDs are put into the protocol tree as strings containing a textual
representation of the OID, so the fields for them should be of type
FT_STRING.  This should fix bug 470.

svn path=/trunk/; revision=15945
2005-09-21 23:07:07 +00:00
Anders Broman 1bb6396a93 Fix bug #404 Decoding of MSISDN on GSM is incomplete.
svn path=/trunk/; revision=15906
2005-09-20 20:04:01 +00:00
Anders Broman 3b949ac5a4 From ouli:
- Add version 2 CancelLocation decoding

svn path=/trunk/; revision=15665
2005-09-02 05:46:10 +00:00
Anders Broman 1f0b3d1d38 Fix decoding of sendIdentificationArg/Res and ProvideSubscriberLocation
svn path=/trunk/; revision=15510
2005-08-22 16:19:31 +00:00
Anders Broman 206c6edb22 from Tomas Kukosa, remove a redundant g_strdup()
svn path=/trunk/; revision=15387
2005-08-17 09:43:16 +00:00
Anders Broman 7789e73a99 Use the new fn_par functions, fix of a bug and export functions used by gsm_ss.
svn path=/trunk/; revision=15203
2005-08-03 20:51:54 +00:00
Ronnie Sahlberg 0ca30abe65 change the symbol dissect_ber_CHOICE back into dissect_ber_choice
svn path=/trunk/; revision=14980
2005-07-21 21:12:09 +00:00
Anders Broman d65ca4e2bd Fix an unpack_digits off by one error.
svn path=/trunk/; revision=14953
2005-07-19 19:47:17 +00:00
Anders Broman 842d2f25df Dissect some more fields
svn path=/trunk/; revision=14896
2005-07-11 19:24:30 +00:00
Anders Broman e46f6e0acc Add some missing IMPLICIT tags, and use FN_PARS directive.
svn path=/trunk/; revision=14877
2005-07-08 19:59:56 +00:00
Anders Broman de00180fe9 Add dissection of BSS-MAP elements and a fix to dissect Tele and Bearer service again.
svn path=/trunk/; revision=14849
2005-07-04 19:09:38 +00:00
Anders Broman e824655d63 Fix to SendAuthenticationInfoRes.
svn path=/trunk/; revision=14807
2005-06-28 21:14:09 +00:00
Guy Harris ab797734dd Get rid of the private "my_match_strval()" routine in many dissectors;
add a "match_strval_idx()" routine that does the same thing, and have
"match_strval()" call it.

Make those routines, and "val_to_str()", return a "const" pointer. 
Update dissectors as necessary to squelch compiler warnings produced by
that.

Use "val_to_str()" rather than using "match_strval()" and then, if the
result is null, substituting a specific string.  Clean up some other
"match_strval()"/"val_to_str()" usages.

Add a null pointer check in the NDPS dissector's "attribute_value()"
routine, as it's not clear that "global_attribute_name" won't be null at
that point.

Make some global variables in the AFS4INT dissector local.

Make some routines not used outside the module they're in static.

Make some tables "static const".

Clean up white space.

Fix Gerald's address in some files.

svn path=/trunk/; revision=14786
2005-06-26 19:56:52 +00:00
Anders Broman 234594dfc0 Add a signal
svn path=/trunk/; revision=14775
2005-06-26 11:01:04 +00:00
Ronnie Sahlberg 3a51ba4293 make dissect_ber_choice take a guint* that will return the
index of the branch taken or -1  to make prettifications easier to implement.


change the signature of dissect_ber_choice and rename it to dissect_ber_CHOICE to catch all
occurences of the use of this function

update asn2eth to use the new name/signature

update all occurences of this function to the new name and new signature.



svn path=/trunk/; revision=14758
2005-06-26 05:48:50 +00:00
Anders Broman 788d843a9d Major rewrite to update to version TS 129 002 V6.9.0
svn path=/trunk/; revision=14748
2005-06-25 17:25:44 +00:00
Anders Broman fa82445742 Update some OID:s and add some ASN1 code from ETSI TS 129 002 V5.7.0.
Will regenerate later.

svn path=/trunk/; revision=14704
2005-06-19 21:11:52 +00:00