aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mq-pcf.c
AgeCommit message (Collapse)AuthorFilesLines
2019-07-26HTTPS (almost) everywhere.Guy Harris1-1/+1
Change all wireshark.org URLs to use https. Fix some broken links while we're at it. Change-Id: I161bf8eeca43b8027605acea666032da86f5ea1c Reviewed-on: https://code.wireshark.org/review/34089 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-02-14packet-mq: Code reformatRobert Grange1-153/+153
Only reformated code (VS2017 with Ctrl K + Ctrl D) No code logic change Change-Id: If574c50cf0efb75984beb45df958be991ea63819 Reviewed-on: https://code.wireshark.org/review/25771 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-12dissectors: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a Reviewed-on: https://code.wireshark.org/review/25756 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-02packet-mq: Add support for IMS+TM StructDario Lombardo1-15/+17
Added support for IMS, TM, TMC2 Struct Improve display some Flags in ID Struct Fix display for FCNO Struct Fix error in get_mq_pdu_len Code reformat (VS2017) Moved DEFINE to header file More struct display fixed Fix for IMS Msg len display Change-Id: I80bfd25a5079598fc44124dc2c7b850640a38b00 Reviewed-on: https://code.wireshark.org/review/25295 Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-01-02packet-mq: Improve display of ID Struct + Segmented MsgsRobert Grange1-0/+14
Improve display of ID Struct for FAP Lvl 13 Improve display for Segmented MQ Mesages Add also the ReasonCode of the ASYNCH_MESSAGE in column and tre node Added various new CONST for display Change-Id: I458296e466d0744627e0b4f645d634b0c6d930de Reviewed-on: https://code.wireshark.org/review/25009 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-01-30Have format_text_chr use wmem allocated memory.Michael Mann1-7/+7
Change-Id: Idcea59f6fc84238f04d9ffc11a0088ef97beec0c Reviewed-on: https://code.wireshark.org/review/19844 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-01-08Fix a lot of typos and misspellingsmoshekaplan1-3/+3
Change-Id: I8512cfa1d424f82a873a0e0e1d22c7b075fdd7f3 Reviewed-on: https://code.wireshark.org/review/13069 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-08-23packet-mq: Add new Const/Def for WMQ800 FP3Robert Grange1-1/+1
Add new Const/Def for WMQ800 FP3 Improve Detection of EBCDIC String in MQCONN_REPLY Add Value in comments Change-Id: I695a3afa64fee7f22918f68540901c97dfd38464 Reviewed-on: https://code.wireshark.org/review/10012 Reviewed-by: Robert Grange <robionekenobi@bluewin.ch> Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-07-17Remove all preferences related to enabling/disabling heuristic dissectors.Michael Mann1-1/+1
The preferences are still supported for backwards compatibility, but the heuristic_protos file has final say on the "preference" to enable/disable a heuristic dissector. Also add parameter to heur_dissector_add() for the "default" enable/disable of a heuristic dissector. With this parameter, a few more (presumably weak) heuristic dissectors have been "registered" but of course default to being disabled. Change-Id: I51bebb2146ef3fbb8418d4f5c7f2cb2b58003a22 Reviewed-on: https://code.wireshark.org/review/9610 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Roland Knall <rknall@gmail.com> Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-07-12Add "user presentable" and "unique string ids" to heuristic table entries.Michael Mann1-1/+1
This allows better presentation of heuristic dissectors to the end user. Change-Id: I2ff3985ab914e83c2989880cc0c7b9904045b3f6 Reviewed-on: https://code.wireshark.org/review/9602 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-01-11packet-mq: Avoid using sort in dissectorRobert Grange1-1/+1
Avoid using sort for string_value_ext. The string value are now sorted at definition Change-Id: I08452b0423289d04e55ed7e3573e74bfcc329865 Reviewed-on: https://code.wireshark.org/review/6488 Reviewed-by: Robert Grange <robionekenobi@bluewin.ch> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-01-08packet-mq: Add New Def, Reformat Lines, re-order val_str defRobert Grange1-32/+34
Add missing definition, add new definition, Reformat some lines Re-order the value_string used with ext_value_string definition so they are in asc ASCII order as the ext_value_string is now sorted before first use renamed own tvb_get... funct to new tvb_get_guintxx funct and deleted own tvb_get... funct use ptvcursor_ funct instead of own macro to increment offset removed <epan/tvbuff.h> in *.c files correct [-Wunused-const-variable] Change-Id: Iaee26289e098cde0e5787ca1c98de64b6b733fa2 Reviewed-on: https://code.wireshark.org/review/6079 Reviewed-by: Robert Grange <robionekenobi@bluewin.ch> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-12-23Deleting unnecessary #includes from dissectors.Martin Mathieson1-1/+0
Fourth batch (packet-mac-lte.c -> packet-rtp.c). Will look at cleaning up and committing script afterwards. Change-Id: Id921f07f4b274f0cfb77ce81abe4a285fdb8b644 Reviewed-on: https://code.wireshark.org/review/6023 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-4/+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-15paquet-mq: Eliminiate proto_tree_add_textRobert Grange1-30/+27
Eliminate proto_tree_add_text for Expert Info Improve PCF Parameters numeric value display Change-Id: Ibc259ba05d0591d434e7638d91d6943101d45305 Reviewed-on: https://code.wireshark.org/review/5080 Reviewed-by: Robert Grange <robionekenobi@bluewin.ch> 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-11-01packet-mq: Use value_string_ext for big value string. more struct dissectedRobert Grange1-12/+12
Use of value_string_ext for big value_strign array, sort them, to force use the btree search parse more integer value with value_string Bug: 9367 Change-Id: I49625cf2d46e0974cddde2c7b1767cb7d06ec47d Reviewed-on: https://code.wireshark.org/review/5037 Petri-Dish: Bill Meier <wmeier@newsguy.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-08-06mq improvements:robionekenobi1-3/+3
- handle RFH structure - use tvb_reported_length..., - Add Conversation/Request in row display Change-Id: I84c5cf3e9479d91b363eb093e71bb6bdf07e8194 Reviewed-on: https://code.wireshark.org/review/3354 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-07-04convert to proto_tree_add_subtree[_format]Michael Mann1-31/+21
Change-Id: I621f2e2cad9403449cb78f45302388f0c874d3bc Reviewed-on: https://code.wireshark.org/review/2852 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-3/+3
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-18Fixup: tvb_* -> tvb_capturedDario Lombardo1-3/+3
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-05-07Fix a typo.AndersBroman1-1/+1
Change-Id: I17171157350f985506ef8498c88814e319396bd6 Reviewed-on: https://code.wireshark.org/review/1545 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-05-07Make it pass the new check in checkapiAndersBroman1-8/+8
"Error out if someone passes the address of a pointer to a *_string to VALS() or RVALS()." Change-Id: I1b5b9bbf512f8fdfaab5febea28db2c51d49c48c Reviewed-on: https://code.wireshark.org/review/1544 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-05-06Don't pass the address of a pointer to a *_string to VALS() or RVALS().Jeff Morriss1-8/+8
This is a followup to Ifc8d6895cc33ad1f00386a3e59926322bd501125; the MQ sample captures I have don't seg-fault on this but the code was stillw wrong. Change-Id: Ic689c06836b823a15217281d67b33580fd8e9823 Reviewed-on: https://code.wireshark.org/review/1539 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>
2014-01-14Constification.Guy Harris1-6/+6
svn path=/trunk/; revision=54762
2013-12-29From robionekenobi: packet-mq enhancementBill Meier1-51/+56
Add new Structure dissection Fix some small issues Reformat some part of code use spaces instead of tabs for indentation https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9603 From me: Remove some trailing whitespace; Change a few tabs to spaces; Change editor-modelines tab-width, etc to 8 (altho not really relevant since tabs not being used). svn path=/trunk/; revision=54489
2013-12-18Per user request, revert reformatting of hf[] entries done in SVN #54005.Bill Meier1-128/+29
See wireshark-dev message thread begining at: https://wireshark.org/lists/wireshark-dev/201312/msg00156.html svn path=/trunk/; revision=54226
2013-12-18Fix [-Wmissing-prototypes]Anders Broman1-3/+3
svn path=/trunk/; revision=54209
2013-12-14Fix [-Wmissing-prototypes]Jakub Zawadzki1-0/+3
svn path=/trunk/; revision=54095
2013-12-13If data is NULL, return FALSE.Chris Maynard1-1/+1
svn path=/trunk/; revision=54055
2013-12-13Do one or more of the following:Bill Meier1-596/+695
- Convert "4 space tabs" to spaces; - Remove some unneeded initializers; - 'offset++' --> 'offset += 1' for consistency; - Reformat hf[] entries; - Rework/add whitespace; - Adjust editor modelines (set tab-width to 8). svn path=/trunk/; revision=54005
2013-11-12From robionekenobiMartin Kaiser1-2/+6
add expert info for invalid item length in mq pcf https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9411 svn path=/trunk/; revision=53285
2013-11-12Fix Dead Store (Dead assignement/Dead increment) warning found by ClangAlexis La Goutte1-1/+0
svn path=/trunk/; revision=53265
2013-11-11fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9411Martin Kaiser1-0/+5
make sure we're not stuck in the while loop svn path=/trunk/; revision=53248
2013-11-11Do some whitespace & formatting style changes;Bill Meier1-94/+94
Remove some unneeded initializers; Also: packet-mq.c: Add an XXX coment. svn path=/trunk/; revision=53244
2013-11-04From robionekenobi: Enhancement of the packet-mq dissector (WMQ 7.1-7.5)Bill Meier1-45/+88
Add more detail for SPI Open LPOO Structure Add more int_to_vals for INQ_Q_MGR reply Add more display detail for encoding value Some fix and display correction Note: The patch used was the *original* patch submitted (plus some fixes by me). That is: (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=11962) plus my fixes See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9367 and comments for details. From me: - Fix bug which resulted in a macro expansion fail on GCC - Fix a -Wshadow error in packet-mq-pcf.c svn path=/trunk/; revision=53078
2013-11-01Revert SVN #53027: It gives compile warning on GCC (at least).Bill Meier1-87/+45
(No time right now to figure the problem out). CC libdissectors_la-packet-mq-base.lo In file included from packet-mq-base.c:32:0: packet-mq.h:42:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ext' #define DEF_VALSEXT(A) value_string_ext GET_VALSV(A)_ext = VALUE_STRING_EXT_INIT(GET_VALSV(A)) ^ packet-mq-base.c:1301:1: note: in expansion of macro 'DEF_VALSEXT' DEF_VALSEXT(selector); ^ packet-mq.h:42:54: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_ext' #define DEF_VALSEXT(A) value_string_ext GET_VALSV(A)_ext = VALUE_STRING_EXT_INIT(GET_VALSV(A)) ^ packet-mq-base.c:1495:1: note: in expansion of macro 'DEF_VALSEXT' DEF_VALSEXT(mqcmd); ^ svn path=/trunk/; revision=53033
2013-11-01From robionekenobi: Enhancement of the packet-mq dissector (WMQ 7.1-7.5)Bill Meier1-45/+87
Add more detail for SPI Open LPOO Structure Add more int_to_vals for INQ_Q_MGR reply Add more display detail for encoding value Some fix and display correction See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9367 svn path=/trunk/; revision=53027
2013-10-20Enhancement of the packet-mq dissector (WMQ 7.1-7.5). Bug 9267 ↵Michael Mann1-140/+296
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9267) From robionekenobi From me: Pass data through dissectors instead of using pinfo->private_data svn path=/trunk/; revision=52707
2013-10-13whitespace fixes; mostly: remove trailing blanksBill Meier1-1/+1
svn path=/trunk/; revision=52591
2013-09-23Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-4/+4
svn path=/trunk/; revision=52183
2013-09-22emem -> wmem conversion:Pascal Quantin1-3/+3
- ep_tvb_get_bits() -> wmem_packet_tvb_get_bits() - tvb_g_memdup()/ep_tvb_memdup() -> tvb_memdup() - tvb_fake_unicode()/tvb_get_ephemeral_faked_unicode() -> tvb_get_faked_unicode() - tvb_get_g_string()/tvb_get_ephemeral_string()/tvb_get_seasonal_string() -> tvb_get_string() - tvb_get_g_unicode_string()/tvb_get_ephemeral_unicode_string() -> tvb_get_unicode_string() - tvb_get_ephemeral_string_enc() -> tvb_get_string_enc() - update docs accordingly svn path=/trunk/; revision=52172
2013-09-15From RobiOneKenobi via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9072Evan Huus1-195/+411
Substantial enhancements to MQ protocol: all Structure, MSG_REQUEST/ASYNC_RESP, MQ Multi Segment are decoded until version 7.1/7.5 svn path=/trunk/; revision=52085
2013-09-02Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-1/+1
svn path=/trunk/; revision=51672
2013-06-14Removed check_col() and the occasional tree.Michael Mann1-4/+1
svn path=/trunk/; revision=49938
2013-03-19From beroset:Anders Broman1-2/+2
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48425
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-09-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-1/+1
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-1/+1
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503