aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mbim.c
AgeCommit message (Collapse)AuthorFilesLines
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-1/+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-11-26Fix a number of dup hf[] filter-names probably resulting from cut/paste errs.Bill Meier1-1/+1
Change-Id: I9242300b2ace3155c1506b584a90f073100a305e Reviewed-on: https://code.wireshark.org/review/5512 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-07-04convert to proto_tree_add_subtree[_format]Michael Mann1-67/+34
Change-Id: I621f2e2cad9403449cb78f45302388f0c874d3bc Reviewed-on: https://code.wireshark.org/review/2852 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-24MBIM: add an option to force SMS PDU decoding format if ↵Pascal Quantin1-4/+26
MBIM_DEVICE_CAPS_INFO message was not captured Change-Id: Iff78a00b463a7a33e1705c76ea49618af532f3aa Reviewed-on: https://code.wireshark.org/review/2621 Tested-by: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-06-07tvb_new_subset -> tvb_new_subset_length when length parameters are equal.Michael Mann1-11/+11
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-06-03MBIM: do not access to hash map when it is not initialized yetPascal Quantin1-1/+1
Change-Id: I560941115316ead5a85b9e0b55be693217fddff2 Reviewed-on: https://code.wireshark.org/review/1940 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-05-01MBIM: dissect MBIM_SET_STK_PAC and MBIM_STK_PAC_INFO messagesPascal Quantin1-9/+663
Change-Id: Ib58dece7ce7278e292d88f68368c238695c32394 Reviewed-on: https://code.wireshark.org/review/1463 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-04-30MBIM: use hash map instead of red/black tree for UUID extension tablePascal Quantin1-16/+26
Change-Id: Iaab9ff66e94bfe38fc875ad312b8e795b80814f4 Reviewed-on: https://code.wireshark.org/review/1438 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-04-28MBIM: make the backward compatibility function staticPascal Quantin1-1/+1
Change-Id: I51bbdf9c0dbb80a8350ec7762e588ca3182dce63 Reviewed-on: https://code.wireshark.org/review/1408 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-04-27MBIM: fix compilation with GLib versions < 2.22.0Pascal Quantin1-0/+8
Change-Id: I27e794347dc0988f0f34798cb62f08a11a217176 Reviewed-on: https://code.wireshark.org/review/1400 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-04-27MBIM: use wmem hash map functions for request/response trackingPascal Quantin1-27/+12
Change-Id: Ie550b0ef2b57827f610c4c6a83ff14868e853125 Reviewed-on: https://code.wireshark.org/review/1399 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-04-23MBIM: fix dissection of GSM SMS messagesPascal Quantin1-12/+17
Change-Id: I07e753e50a42513daa704e56ee5c9b399a91fec9 Reviewed-on: https://code.wireshark.org/review/1305 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-04-13MBIM: fix dissection of ENVELOPE Sim Toolkit messagesPascal Quantin1-8/+8
Change-Id: I3e6567e8ebfe83f12a0e2cbb2998b2e43ad2277a Reviewed-on: https://code.wireshark.org/review/1092 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-04-13MBIM: add decoding of text based CDMA SMSPascal Quantin1-21/+92
Change-Id: Id2497597660bffeff2d98087d6511b91bfd93b1a Reviewed-on: https://code.wireshark.org/review/1091 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-03-27MBIM: fix identification of DSS streams and add a way to register an ↵Pascal Quantin1-9/+16
external dissector for DSS Change-Id: Ic7f5708b60ee5846d95725dbbd14d8958d43372e Reviewed-on: https://code.wireshark.org/review/843 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-03-25MBIM: fix dissection of control packets when capturing with usbmonPascal Quantin1-5/+13
Change-Id: Ie20fcb8d393a85d47ba78f6cb70de77fedda2587 Reviewed-on: https://code.wireshark.org/review/829 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-03-13MBIM: fix 3GPP SMS PDU record dissectionPascal Quantin1-3/+4
Change-Id: I232a12eb7f7ee49464bb45c6f284ca3a3825909c Reviewed-on: https://code.wireshark.org/review/644 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-03-10MBIM: add sanity checks to bulk packetsPascal Quantin1-11/+45
Change-Id: I425f4ecd03f5ae0ec27b77b1437366d66107342f Reviewed-on: https://code.wireshark.org/review/579 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-02-23Remove deprecated TVB APIsPascal Quantin1-13/+9
Change-Id: I87216c3bd2061c12ce486c752d4381ab722db95e Reviewed-on: https://code.wireshark.org/review/328 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2014-01-24Add ability to register new UUID and CIDsPascal Quantin1-18/+116
svn path=/trunk/; revision=54944
2014-01-09Set explicitly P2P direction for received SMSPascal Quantin1-0/+1
svn path=/trunk/; revision=54682
2014-01-01Add proto_tree_add_ts_23_038_7bits_item() / tvb_get_ts_23_038_7bits_string() ↵Pascal Quantin1-2/+2
functions and update dissectors to use it. Remove gsm_sms_char_7bit_unpack() / gsm_sms_chars_to_utf8() functions. Update documentation a bit. svn path=/trunk/; revision=54534
2013-12-24Add a ENC_3GPP_TS_23_038 encoding, for the standard SMS alphabet in aGuy Harris1-20/+6
bit-packed string, and use it in some places. svn path=/trunk/; revision=54428
2013-12-22Fix dissection of GSM SMS PDUPascal Quantin1-14/+65
svn path=/trunk/; revision=54368
2013-12-22Fix copy/paste errorPascal Quantin1-1/+1
svn path=/trunk/; revision=54366
2013-12-22proto_tree_add_text -> proto_tree_add_itemPascal Quantin1-21/+28
svn path=/trunk/; revision=54365
2013-12-22We support ENC_UCS_2, so use that in proto_tree_add_item() andGuy Harris1-24/+7
tvb_get_string_enc() rather than using iconv to convert it to UTF-8. svn path=/trunk/; revision=54350
2013-12-21Add missing includesJakub Zawadzki1-0/+1
svn path=/trunk/; revision=54332
2013-12-19Rename more to_str functions to have ep_ in the name if they return ephemeralEvan Huus1-2/+2
buffers. Remove two unused functions. svn path=/trunk/; revision=54250
2013-12-17Fix a typo and check that handle exists before calling call_dissector()Pascal Quantin1-11/+13
svn path=/trunk/; revision=54175
2013-12-14Fix [-Wmissing-prototypes]Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=54095
2013-12-14Remove not needed ';'Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=54088
2013-12-09Use an item for USSD textPascal Quantin1-4/+12
svn path=/trunk/; revision=53879
2013-12-03Add request / response tracking to MBIM_FUNCTION_ERROR_MSG messagesPascal Quantin1-1/+23
svn path=/trunk/; revision=53762
2013-12-03Add Qualcomm proprietary UUIDPascal Quantin1-11/+39
svn path=/trunk/; revision=53760
2013-11-29Improve request / response tracking in case you have several open / close ↵Pascal Quantin1-5/+29
commands in the capture svn path=/trunk/; revision=53644
2013-11-25Add command type to info columnPascal Quantin1-0/+1
svn path=/trunk/; revision=53575
2013-11-23Check the packet length when using the "Force decoding of unknown USB ↵Pascal Quantin1-3/+7
control data as MBIM" option to reduce false positives. Align text in info column. svn path=/trunk/; revision=53521
2013-11-21Indicate fragments in info columnPascal Quantin1-0/+3
svn path=/trunk/; revision=53472
2013-11-19Fix a typoPascal Quantin1-1/+1
svn path=/trunk/; revision=53433
2013-11-15Dissect USB Com Network Control Model requestsPascal Quantin1-4/+0
svn path=/trunk/; revision=53349
2013-11-14Fix dissection of MBIM Extended Functional Descriptor MTUPascal Quantin1-1/+1
svn path=/trunk/; revision=53312
2013-11-12Remove usb_conv_info_t from packet_info and pass the data directly into the ↵Michael Mann1-6/+5
subdissectors. Bug 9413 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9413) svn path=/trunk/; revision=53274
2013-11-07Fix dissection of MBIM data packets when using 32-bits NDPsPascal Quantin1-0/+9
svn path=/trunk/; revision=53142
2013-10-29From didier gautheron: remove redundant or use faster col_xxx functionsBill Meier1-2/+2
- 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-10-26Fix Dead Store (Dead assignement/Dead increment) warning found by ClangAlexis La Goutte1-18/+18
svn path=/trunk/; revision=52873
2013-10-23#if 0 numerous "unused const variables" (mostly value-string-arrays);Bill Meier1-0/+2
Also; fix a few "set but not used" warnings. svn path=/trunk/; revision=52780
2013-10-13Fix dissection of Home Provider CID and fix a typo errorPascal Quantin1-1/+2
svn path=/trunk/; revision=52579
2013-10-11Fix another fuzz failurePascal Quantin1-10/+16
svn path=/trunk/; revision=52537
2013-10-10Fix an infinite loop detected during fuzz testingPascal Quantin1-11/+41
svn path=/trunk/; revision=52510