aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_sim.c
AgeCommit message (Collapse)AuthorFilesLines
2017-06-23USB CCID: use Decode As to select the payload protocolMartin Kaiser1-2/+4
Remove the special case for vid 0x072F, pid 0x2200. We should be able to set Decode As for this (vid, pid) to USB CCID and then use the new Decode As mechanism to select the next protocol. Register GSM SIM, ISO7816, PN532 and ACR122 as possible payloads for USB CCID. Change-Id: I8237cc9123655d3b289b0564ffb83a32434bebfc Reviewed-on: https://code.wireshark.org/review/22290 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-06-21GSM SIM: define a dissector for both request and responseMartin Kaiser1-0/+12
Define a dissector that can handle both requests and responses. Look at pino->p2p_dir to detect if we have a request or repsonse. (At the moment, there's a dissector for request+response in one packet and two other dissectors for request and response messages.) Use the new mechanism for USB CCID. Change-Id: I7eb9861802b4244f92770602179f39642eb28641 Reviewed-on: https://code.wireshark.org/review/22289 Reviewed-by: Peter Wu <peter@lekensteyn.nl> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-12-31Dissectors don't need a journey of self discovery.Michael Mann1-3/+2
They already know who they are when they register themselves. Saving the handle then to avoid finding it later. Not sure if this will increase unnecessary register_dissector functions (instead of using create_dissector_handle in proto_reg_handoff function) when other dissectors copy/paste, but it should make startup time a few microseconds better. Change-Id: I3839be791b32b84887ac51a6a65fb5733e9f1f43 Reviewed-on: https://code.wireshark.org/review/19481 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-12-10gsmtap: Introduce a new packet-gsmtap.h header fileHarald Welte1-1/+3
Move the GSMTAP protocol related #defines to packet-gsmtap.h, as there are other dissectors (like packet-gsm_sim.c and future dissectors) need access to some of those #defines. Change-Id: Ibb3517bd773be63b7e3cd30104a5351427e22ebf Reviewed-on: https://code.wireshark.org/review/19185 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-03-20Manually add protocol dependencies derived from find_dissector.Michael Mann1-1/+1
Started by grepping call_dissector_with_data, call_dissector_only and call_dissector and traced the handles passed into them to a find_dissector within the dissector. Then replaced find_dissector with find_dissector_add_dependency and added the protocol id from the dissector. "data" dissector was not considered to be a dependency. Change-Id: I15d0d77301306587ef8e7af5876e74231816890d Reviewed-on: https://code.wireshark.org/review/14509 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-12-09new_register_dissector -> register_dissector for dissector directory.Michael Mann1-4/+4
Change-Id: Ie39ef054a4a942687bd079f3a4d8c2cc55d5f22c Reviewed-on: https://code.wireshark.org/review/12485 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-11-14register_dissector -> new_register_dissectorMichael Mann1-14/+18
Picking off "easy" dissectors that only have one or two exit points at most. Change-Id: I25fe6a0aac93980333217d007702799d16946563 Reviewed-on: https://code.wireshark.org/review/11816 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-03-09ETSI CAT: upgrade dissector to v12.2.0Pascal Quantin1-1/+8
Change-Id: Ifd5f901aa3856e5469f213c4c63c53f3d8f1b4c8 Reviewed-on: https://code.wireshark.org/review/7611 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-01-21GSM SIM: for a FETCH command, a Le of 0 means 256 bytesPascal Quantin1-3/+2
Change-Id: Ia8969747c215a5ba7e9242b6266114b0e9e00859 Reviewed-on: https://code.wireshark.org/review/6712 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-01-16GSM SIM: enhance dissection of APDU Class bytePascal Quantin1-9/+73
Change-Id: I2089ff665a92ce16a0af100e2515463c92c6d057 Reviewed-on: https://code.wireshark.org/review/6567 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-01-07tvb_bytes_to_ep_str -> tvb_bytes_to_strMichael Mann1-1/+1
Change-Id: I79c613cbdd8dc939dd4c29ebc477fb6eefd5bfc4 Reviewed-on: https://code.wireshark.org/review/6371 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-12-23Deleting unneccessary #includes from dissectors.Martin Mathieson1-1/+0
Second batch (packet-eth.c -> packet-icmpv6.d). Will look at cleaning up and committing script afterwards. Change-Id: I14295758b81a59115d8c88899f166cc3d5d17594 Reviewed-on: https://code.wireshark.org/review/6013 Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-3/+0
Specifically: - Set packet.h to be the first wireshark #include after config.h and "system" #includes. packet.h added as an #include in some cases when missing. - Remove some #includes included (directly/indirectly) in packet.h. E.g., glib.h. (Done only for those files including packet.h). - As needed, move "system" #includes to be after config.h and before wireshark #includes. - Rework various #include file specifications for consistency. - Misc. Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95 Reviewed-on: https://code.wireshark.org/review/5923 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-12-13Use ENC_BIG_ENDIAN when fetching FT_U?INT8 fields ...Bill Meier1-3/+3
(for some dissectors which fetch all other integral fields using ENC_BIG_ENDIAN). Change-Id: Ic18e3172aad76af12b12d6732c88497be22aed56 Reviewed-on: https://code.wireshark.org/review/5748 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-08-15Remove unneeded #include <epan/prefs.h>; As needed: Add editor-modelines & ↵Bill Meier1-13/+17
adjust whitespaxcce. Change-Id: I6f79357e0f3906f6ccc5b68eb451b69b68636335 Reviewed-on: https://code.wireshark.org/review/3613 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-07-04ETSI CAT: upgrade dissector to Release 12Pascal Quantin1-1/+62
Change-Id: Id1988551ca94a862195eb1de1de399e428132b21 Reviewed-on: https://code.wireshark.org/review/2855 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-06-07tvb_new_subset -> tvb_new_subset_length when length parameters are equal.Michael Mann1-4/+4
tvb_new_subset -> tvb_new_subset_remaining it appears that's what the intention is. Change-Id: I2334bbf3f10475b3c22391392fc8b6864454de2d Reviewed-on: https://code.wireshark.org/review/1999 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-05-22GSM SIM: fix a typo and update obsolete API callsPascal Quantin1-5/+5
Change-Id: Iccd51dde155e9aaed23eb753c27ae29c8cee94cd Reviewed-on: https://code.wireshark.org/review/1725 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-19Rename a couple of to_str functions to have ep_ in the name. This makes itEvan Huus1-1/+1
obvious that the returned string is ephemeral, and opens up the original names in the API for versions that take a wmem pool (and thus can work in any scope). svn path=/trunk/; revision=54249
2013-12-15Fix [-Wmissing-prototypes]Jakub Zawadzki1-3/+3
svn path=/trunk/; revision=54135
2013-12-05Try to please OSX-10.5-x86 buildbotPascal Quantin1-1/+1
svn path=/trunk/; revision=53794
2013-12-05Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9503 :Pascal Quantin1-2/+2
Fix dissection of STK SEND SHORT MESSAGE proactive command svn path=/trunk/; revision=53793
2013-11-16Put "GSM SIM" in protocol columnPascal Quantin1-0/+3
svn path=/trunk/; revision=53367
2013-11-13Add more GSM SIM Toolkit info to info columnPascal Quantin1-0/+2
svn path=/trunk/; revision=53302
2013-10-29From didier gautheron: remove redundant or use faster col_xxx functionsBill Meier1-3/+3
- when the text parameter is constant col_add_str() and col_set_str() are equivalent but col_set_str() is faster. - same for replace col_append_fstr and col_append_str - remove col_clear() when it's redundant: + before a col_set/col_add if the dissector can't throw an exception. - replace col_append() after a col_clear() with faster col_add... or col_set https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9344 svn path=/trunk/; revision=52948
2013-09-29Add a MBIM (Mobile Broadband Interface Model) dissectorPascal Quantin1-0/+1
Still to be done: - fragmentation support - plug the MBIM dissector on USB dissector svn path=/trunk/; revision=52279
2013-06-11Add PDC and TETRAPascal Quantin1-0/+2
svn path=/trunk/; revision=49889
2013-06-11From Tyson Key via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8788 :Jeff Morriss1-0/+1
ETSI TS 102 221 V8.2.0 (2009-06) (http://www.etsi.org/deliver/etsi_ts/102200_102299/102221/08.02.00_60/ts_102221v080200p.pdf) says that file ID 0x7F31 is reserved for use by iDEN network operators (e.g. Nextel in the USA). The attached patch updates the GSM SIM dissector's table of recognised FIDs accordingly. svn path=/trunk/; revision=49888
2013-03-28Add dissection of Terminal Profile byte 32Pascal Quantin1-0/+64
svn path=/trunk/; revision=48611
2013-03-27Fix the incorrectly duplicated display filters for hf_tp_bip_tcp_local and ↵Chris Maynard1-2/+2
hf_tp_bip_udp_local. svn path=/trunk/; revision=48596
2012-10-24Add dissection of ENVELOPE 3GPP SMS-PP DownloadPascal Quantin1-0/+1
svn path=/trunk/; revision=45768
2012-10-18Add a few EUTRAN related elementary files and reorder some value_string arraysPascal Quantin1-26/+34
svn path=/trunk/; revision=45629
2012-10-16Add dissection of ENVELOPE event download and timer expirationPascal Quantin1-1/+8
svn path=/trunk/; revision=45600
2012-10-16Fix dissection of BER-TLV and COMPREHENSION-TLV length and COMPREHENSION-TLV tagPascal Quantin1-1/+17
svn path=/trunk/; revision=45595
2012-10-11Enhance dissection of Terminal ProfilePascal Quantin1-89/+1043
svn path=/trunk/; revision=45490
2012-10-09Add another check for command APDU dissectionPascal Quantin1-1/+3
svn path=/trunk/; revision=45435
2012-10-09Fix dissection of more instructions when having only the command APDUPascal Quantin1-10/+29
svn path=/trunk/; revision=45433
2012-10-09Fix dissection of Get Response when not in SIMtrace modePascal Quantin1-4/+16
svn path=/trunk/; revision=45425
2012-10-08Add "gsm_sim.command" and "gsm_sim.response" dissectors and call them in ↵Pascal Quantin1-27/+66
btsap dissector https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7715 svn path=/trunk/; revision=45411
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-08-01Follow-up of r44162: clean more filtersPascal Quantin1-1/+1
svn path=/trunk/; revision=44187
2012-07-31Updated GSM dissectors display filters per checkfiltername.plMichael Mann1-114/+114
Tried to provide consistency with GSM dissector (protocol) names, even if the filenames now don't match the dissector name. svn path=/trunk/; revision=44162
2012-06-28Update FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2012-03-21From Martin Kaiser via ↵Jeff Morriss1-0/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6977 : The attached (trivial) patch adds some missing breaks in switch-case blocks. This fixes coverity defects #445, #446, #1316 and #1380. svn path=/trunk/; revision=41727
2012-03-18From Harald Welte: patch adding the missing hf[] entries ...Bill Meier1-0/+12
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6355#c11 svn path=/trunk/; revision=41651
2012-02-08From Harald Welte:Anders Broman1-0/+4
GSMTAP dissector: introduce a dissector table. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6810 svn path=/trunk/; revision=40934
2012-02-08Small whitespace fix.Jörg Mayer1-3/+3
svn path=/trunk/; revision=40926
2012-02-07packet-gsm_sim.c was the wrong file to check in.Jörg Mayer1-5/+4
I meant ui/gtk/voip_calls_dlg.c. svn path=/trunk/; revision=40915
2012-02-07Fix "variable set but not used" warnings turned error. In at leastJörg Mayer1-4/+5
one case this looks like a logic bug and should be investigated. svn path=/trunk/; revision=40914