aboutsummaryrefslogtreecommitdiffstats
path: root/debian/libwireshark0.symbols
AgeCommit message (Collapse)AuthorFilesLines
2021-09-08epan: export epan_set_always_visible()Developer Alexander1-0/+1
Exports (DLL) epan_set_always_visible() to make it accessible for plugins. This enables post dissection taps to access all fields.
2021-09-08tvblist: explicitly scope memoryEvan Huus1-1/+1
Allocate the root node in the same pool as the list itself, and make that pool explicit so we can pass the pinfo scope instead of using the global packet pool.
2021-09-01tvbuff: convert helper methods to pinfo->poolEvan Huus1-2/+2
A few of them just needed scratch memory, so allocate and free it manually after doing any exception-raising checks. A few others were returning memory, and needed conversion to accept a wmem scope argument.
2021-08-27Thrift: Complete handling of Binary & Compact protocolsTriton Circonflexe1-3/+10
- Make sure reassembly requests & errors are properly propagated from any point in the PDU, no matter how many sub-structure levels. - Handle the sub-dissection methods as well: - Ensure the sub-dissection methods handle errors from previous calls. - Reduce the error handling needed in sub-dissector implementations. - Add missing sub-dissection methods for list, set, and map. - Add the handling of sub-structure. - Handle Compact protocol in addition to the existing binary protocol. - Include and improve MR !3171 - Handle reassembly the same way as for binary protocol. - Handle sub-dissection with the same functions. => Sub-dissectors only depend on .thrift files. Additional changes: - Use of constants instead of hard-coded values. - Removed U64 support (never supported by thrift code generator, only referenced in the C++ thrift library header but not supported in reality. - Removed references to UTF-8 and UTF-16 string for the same reason. - Replaced references to UTF-7 string with just string (same reason). - Replaced references to byte with i8 as the documentation explicitly states that byte is a compatibility name. Documentation reference: - https://thrift.apache.org/developers - https://thrift.apache.org/docs/idl.html - https://github.com/apache/thrift/blob/master/doc/specs/thrift-compact-protocol.md - https://erikvanoosten.github.io/thrift-missing-specification/ - https://diwakergupta.github.io/thrift-missing-guide/ Closes #16244 Additional changes: - Add authors and improve consistency - Fix typo and clarify documentation
2021-07-29Move bytes_to_str() to wsutilJoão Valverde1-3/+0
This utility function is useful outside of epan. Move it to wsutil and export the interface. The move isn't completely clean as it requires duplicating two small inline functions but that was necessary to avoiding moving too much at once.
2021-07-26Remove duplicate format_size() functionJoão Valverde1-1/+0
We have two format_size()s, with and without wmem scoped memory. Move the wmem version to wsutil and add a convenience macro to use g_malloc()ed memory.
2021-07-26Move wmem to wsutilJoão Valverde1-103/+5
This allows wmem to be used from other libraries, namely wsutil. It is often the case that a funtion exists in wsutil and cannot be used with a wmem scope, requiring some code duplication or extra memory allocations, or vice-versa, code in epan cannot be moved to wsutil because it has a wmem dependency. To this end wmem is moved to wsutil. Scope management remains part of epan because those scope semantics are specific to dissection.
2021-07-13prefs_register_protocol_obsolete protocols with only obsolete prefsChuck Craft1-0/+1
Related to #17465 and !3526
2021-07-08Consistently refer to blocks that have been modified as "modified".Guy Harris1-1/+1
"User" sounds as if the blocks belong to the user; at most, the current user might have modified them directly, but they might also have, for example, run a Lua script that, unknown to them, modified comments. Also, a file might have "user comments" added by a previous user, who them wrote the file and and provided it to the current user. "Modified" seems a bit clearer than "changed".
2021-07-07Use wtap_blocks for packet commentsDavid Perry1-1/+1
Mostly functioning proof of concept for #14329. This work is intended to allow Wireshark to support multiple packet comments per packet. Uses and expands upon the `wtap_block` API in `wiretap/wtap_opttypes.h`. It attaches a `wtap_block` structure to `wtap_rec` in place of its current `opt_comment` and `packet_verdict` members to hold OPT_COMMENT and OPT_PKT_VERDICT option values.
2021-07-07QUIC: improve "Follow QUIC Stream" supportNardi Ivan1-0/+2
This functionality has been added in d2a660d8, where its limitations are described. Improvements: * the Substream index menu now properly filters for available stream numbers; * Follow Stream selects the first stream in the current packet Known issue (which is still there): if a packet contains multiple QUIC streams, then we will show data also from streams other than the selected one (see #16093) Note that there is no way to follow a QUIC connection. Close #17453
2021-07-07wmem: add a GCompareFunc implementation to compare unsigned integer 64 bits longNardi Ivan1-0/+1
2021-06-15tvbuff: add tvb_ensure_reported_length_remaining().Guy Harris1-0/+1
It is to tvb_reported_length_remaining() as tvb_ensure_captured_length_remaining() is to tvb_captured_length_remaining() - it throws an exception if the offset is out of range. (Note that an offset that's just past the end of the {reported, captured} data is *not* out of range, it just means that there is no data remaining. Anything *past* that is out of range and thus invalid.)
2021-06-13Remove lingering circuit API from stream.hJohn Thacker1-2/+2
The circuit API was removed and replaced with the conversation "_by_id" API that uses a single uint32 value by commit 800b26edbe34e135cc9be1d4395db2c13ae1213f Remove the lingering references to circuits from the stream API, since it's just used with conversations now.
2021-05-08http: Add dissection of HTTP2-SettingsAnders Broman1-0/+1
Closes #17370
2021-04-02maxmind: add optional synchronous lookupsDavid Perry1-0/+1
When tshark enables synchronous resolution of IP addresses to names, forces calls to maxmind_db_lookup_ipv4()/_ipv6() to block-wait for the maxmind response. Proposed fix for #14691.
2021-02-26Added decoding of ProtocolID and PPID into Component Status Protocol dissector.Thomas Dreibholz1-0/+1
This merge request adds: * Decoding of ProtocolID and PPID in Component Status Protocol dissector. * Moved SCTP PPID list from SCTP dissector into separate file sctpppids.c, due to reuse in Component Status Protocol dissector. * Export of sctpppid_val_ext containing the PPID list.
2021-02-22Added "Follow DCCP stream" feature.Thomas Dreibholz1-0/+1
This pull request includes: * The "Follow DCCP stream" feature. * Updated docbook documentation for the "Follow DCCP stream" feature. * Test for the feature. * Corresponding packet trace for the test.
2021-02-22ZVT: Addedd dissection of amount, terminal ID, date and time. Registration fix.Grzegorz Niemirowski1-0/+1
2021-02-20BER: get rid of WTAP_FILE_TYPE_SUBTYPE_BER.Guy Harris1-2/+0
Save a copy of the pathname used to open a file in the wtap structure. This allows the BER file reader to put a pointer to it in the pseudo-header; it also would allow file readers to attempt to read "associated" files that have the same name as the file, but with a different extension. Instead of having cf_open() special-case BER files, and calling a routine in the BER dissector to specify the file name to the dissector, have separate dissectors for "dissect packet payload as BER" and "dissect a file as BER", and have the latter get the pathname of the file from the pseudo-header and determine the ASN.1 syntax from that. (Side-effect - this means that you can now dissect a BER file, and have the syntax be determined by the file extension, in TShark as well; the above cf_open() special-casing was *not* done in TShark, so it didn't work before. Now the application code doesn't need to do any of that, so it works in TShark as well as Wireshark.)
2021-02-06Avoid exposing HAVE_PLUGINS in the public APIJoão Valverde1-0/+1
Instead *_register_plugin() is turned into a noop (with a warning). The test suit is failing with ENABLE_PLUGINS=Off (it was already failing before and this patch didn't affect that). Closes #17202.
2021-02-04RTP dissector: Removed unused functionsJirka Novak1-2/+0
Removed unused functions found by Martin Mathieson.
2021-01-30epan: have a routine to register all tap listeners.Guy Harris1-1/+1
Pull the code to register plugin taps, and the loop to register built-in taps, into a single register_all_tap_listeners() routine. This leaves it up to libwireshark, not to the programs using it, to know how to register them.
2021-01-28stat_tap_table_ui: create tables only once during initMartin Kaiser1-0/+1
If you load a capture file and open any statistics dialog, you'll see the list of collected items. Each time you press the Apply button (without entering a display filter) another list of items will be created as a top-level entry of the statistics tree. Only the first list will have the correct values, all subsequent lists will not be populated. Each statistic module defines a stat_tap_table_ui structure that contains a stat_tap_init_cb function. This init function is called by SimpleStatisticsDialog::fillTree before the tap listener is registered. This happens each time we collect the statistics. However, it seems that all init functions create a new stat_tap_table each time they are called, even if they already have an existing stat_tap_table of the same name. This patch adds a stat_tap_find_table function to find a table by name. As a first step, we update the ANSI A-I/F BSMAP Statistics to check if its table is already registered. If it is, the table will not be created again.
2021-01-05UAT: Adding support for uint64 (dec/hex), int64 (dec)Dr. Lars Völker1-0/+3
This patch adds 64bit support for uint and int to uats.
2020-12-17GTPv2: Update IE 8.12 IndicationAnders Broman1-0/+1
2020-12-08Lua: Add get_preference() and set_preference() utility functions.Stig Bjørlykke1-0/+1
Support uint, bool, enum, string, range, filename and directory preferences. Added apply_preferences() to write to file and apply changes.
2020-11-13Qt+epan: Print better-looking values in the packet diagram.Gerald Combs1-0/+1
Pull the value-formatting code in proto_custom_set into proto_item_fill_display_label. Use that in FieldInformation::toString instead of fvalue_to_string_repr. Fixes #16911.
2020-10-21Use iconv to support GB 18030 and EUC-KR, allow future encodingsJohn Thacker1-0/+2
Add support internally to using iconv (always present with glib) to convert strings from various encodings to UTF-8 (using REPLACEMENT CHARACTER as recommended), and use that to support GB 18030 and EUC-KR. Replace call directly to iconv in ANSI 637 for EUC-KR to new API. Update comments and documentation around character encodings. It is possible to replace the calls to iconv with an internal decoder later. Tested on Linux and on Windows (including with illegal characters). Closes #16630.
2020-10-15Replace ill-formed UTF-8 byte sequences with replacement characterJohn Thacker1-0/+2
Implement the Unicode Standard "best practices" for replacing ill-formed sequences with the Unicode REPLACEMENT CHARACTER. Add wmem_strbuf_append_len for appending strings with embedded null characters. Clarify why wmem_strbuf_grow() doesn't always ensure that there's enough room for a new string, and short-circuit some tests there. Related to #14948
2020-10-15debian: proto_tree_add_item_ret_ipv4() was introduced in 3.3.2Pascal Quantin1-1/+1
2020-10-11Add proto_tree_add_item_ret_ipv4().Guy Harris1-0/+1
Change some guint32's to ws_in4_addr while we're at it.
2020-09-28Add some more string encodings.Guy Harris1-3/+7
Add an encoding for "unpacked" 3GPP TS 23.038 7-bit strings, in which each code position is in a byte of its own, rather than with the code positions packed into 7 bits. Rename the packed encoding to explicitly indicate that it's packed. Add an encoding for ETSI TS 102 221 Annex A strings. Use the new encodings.
2020-09-15Version: 3.3.0 → 3.3.1.Gerald Combs1-1/+0
2020-08-22plugin_if: add plugin_if_get_frame_data() and plugin_if_get_capture_file()Tomas Kukosa1-0/+2
Change-Id: I7505d4185f18d13d6836c9c9bb8f400d12f2a524 Reviewed-on: https://code.wireshark.org/review/38217 Petri-Dish: Tomáš Kukosa <keksa@email.cz> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
2020-08-21tvb: add tvb_get_bits_arrayFilipe Laíns1-0/+2
Change-Id: I2fad824ca417dcd089fabfdf06f28529c7ee9e87 Signed-off-by: Filipe Laíns <lains@archlinux.org> Reviewed-on: https://code.wireshark.org/review/37949 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-08-20wmem_array: make wmem_array_grow publicFilipe Laíns1-0/+1
There cases where we may want to pre-allocate some memory before appending all the fields. Change-Id: Ic46e83733d4338dbda45b2ca3ff2d533c5b44026 Signed-off-by: Filipe Laíns <lains@archlinux.org> Reviewed-on: https://code.wireshark.org/review/38122 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-08-20Add format_text_string(), which gets the length with strlen().Guy Harris1-0/+1
format_text(alloc, string, strlen(string)) is a common idiom; provide format_text_string(), which does the strlen(string) for you. (Any string used in a %s to set the text of a protocol tree item, if it was directly extracted from the packet, should be run through a format_text routine, to ensure that it's valid UTF-8 and that control characters are handled correctly.) Update comments while we're at it. Change-Id: Ia8549efa1c96510ffce97178ed4ff7be4b02eb6e Reviewed-on: https://code.wireshark.org/review/38202 Petri-Dish: Guy Harris <gharris@sonic.net> Tested-by: Petri Dish Buildbot Reviewed-by: Guy Harris <gharris@sonic.net>
2020-08-17TFS: Add some commonly-defined string pairs to tfs.cMartin Mathieson1-0/+2
'check_tfs.py --common' can look for tfs values that appear multiple times. Current output prior to these dssector changes was: ('No Extension', 'Extension') appears 3 times in: ['epan/dissectors/packet-bssap.c', 'epan/dissectors/packet-camel.c', 'epan/dissectors/packet-gsm_map.c'] ('Optimised for signalling traffic', 'Not optimised for signalling traffic') appears 3 times in: ['epan/dissectors/packet-gsm_a_gm.c', 'epan/dissectors/packet-gsm_map.c', 'epan/dissectors/packet-gtp.c'] ('Data PDU', 'Control PDU') appears 3 times in: ['epan/dissectors/packet-pdcp-lte.c', 'epan/dissectors/packet-pdcp-nr.c', 'epan/dissectors/packet-rlc-nr.c'] ('Message sent to originating side', 'Message sent from originating side') appears 3 times in: ['epan/dissectors/packet-q2931.c', 'epan/dissectors/packet-q931.c', 'epan/dissectors/packet-q933.c'] ('User', 'Provider') appears 3 times in: ['epan/dissectors/packet-q2931.c', 'epan/dissectors/packet-q931.c', 'epan/dissectors/packet-q933.c'] The first and last ones were made common, the others seem a little too specialised. Checking some of the existing items in tfs.c (using QtCreator's 'Find Usages'), some of the common items are used a lot, but many of them are not referenced. Change-Id: Ia4006d2c4fa7cafbc3b004dc7a367a986dbeb0c4 Reviewed-on: https://code.wireshark.org/review/38177 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-08-11epan: Fixup proto_item_set_bits_offset_len.Gerald Combs1-0/+1
Export proto_item_set_bits_offset_len and fix In file included from ../epan/dfilter/dfilter.h:18: ../epan/proto.h:1113:11: warning: parameter 'bits_offset' is already documented [-Wdocumentation] * @param bits_offset The new length in bits. ^~~~~~~~~~~ ../epan/proto.h:1112:5: note: previous documentation * @param bits_offset The number of bits from the beginning of the field. ^ ~~~~~~~~~~~ Change-Id: Ib171ce38607b9656baea5eb7a3e6aee3b99ddbac Reviewed-on: https://code.wireshark.org/review/38115 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-22Add wmem_destroy_array()João Valverde1-0/+1
Change-Id: I00a0052a9c207692eddab7ac2d0f146201648f6c Reviewed-on: https://code.wireshark.org/review/13003 Reviewed-by: João Valverde <j@v6e.pt>
2020-06-29epan: Keep decode_as_list when changing profileStig Bjørlykke1-0/+1
The decode_as_list is built at startup and contains all protocols registered for "decode as". Do not clear this list on profile change, only on exit. Bug: 16635 Change-Id: I832a042327603ae0f01b10ab620fccc03d4fd3a3 Reviewed-on: https://code.wireshark.org/review/37579 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2020-06-25wslua: Add ability to query current temporary color filter textrbroker1-0/+1
The LUA API provides the "set_color_filter_slot" function, but without a corresponding "get_" function, it's very hard for two LUA dissectors to co-exist without one overwriting any color filters set by the other. It also looks like the documentation comment for "set_color_filter_slot" had an off-by-one error, which I've corrected as I was adding almost identical documentation for the new API. Change-Id: Ic54d23be555ec12e1830bbe6f84a1b04d04fd4f0 Reviewed-on: https://code.wireshark.org/review/37511 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-05-25dot11decrypt: Remove some unused codeMikael Kanstrup1-1/+0
Remove some unused defines, function parameters and functions. Change-Id: I1bbc3ff7e0a9d11e8521ddf24b35113d8e332f08 Reviewed-on: https://code.wireshark.org/review/37305 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-28New dissector: Dynamic Link Exchange ProtocolUli Heilmeier1-0/+1
Code based on https://github.com/mit-ll/dlep-wireshark-dissector authored by Jeffrey Wildman <jeffrey.wildman@ll.mit.edu> Updated types according to https://www.iana.org/assignments/dlep-parameters/dlep-parameters.xhtml Changed: * removed some tvb_get_*() calls * updated expert info handling * changed registering the dissector Sample capture: https://wiki.wireshark.org/SampleCaptures#Dynamic_Link_Exchange_Protocol_.28DLEP.29 Change-Id: I13e0c918f46af036c1be4acf34acab838aeaf342 Reviewed-on: https://code.wireshark.org/review/36901 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-27Add string encoding values for various BCD encodings, and use them.Guy Harris1-0/+1
Add some ENC_ values for various flavors of packed BCD, and use that instead of explicitly calling tvb_bcd_dig_to_wmem_packet_str() and adding the result. Change-Id: I07511d9d09c9231b610c121cd6ffb3b16fb017a9 Reviewed-on: https://code.wireshark.org/review/36952 Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-25Add a routine to get the representation of a protocol tree item and use it.Guy Harris1-0/+1
Add proto_item_get_display_repr(), which returns a string, allocated with a specified wmem scope, containing the display representation of the value of a proto_item. Use it in the LLDP dissector, to append that string to the parent protocol tree item; use packet scope, so it doesn't hang around forever (the previous code used the NULL scope, meaning explicit freeing was required, but it wasn't explicitly freeing the value, so it was leaking). Change-Id: I146380118833b1daef9dea8bd9463001e5b9325f Reviewed-on: https://code.wireshark.org/review/36931 Petri-Dish: Guy Harris <gharris@sonic.net> Reviewed-by: Guy Harris <gharris@sonic.net>
2020-04-25Introduce tfs_get_string helperJaap Keuter1-0/+1
true_false_strings have no helper function to properly retrieve the string representing the true or false value, much like unit_strings, even though this is not uncommon in dissectors. This change introduces the helper function and modifies the dissectors, so that they use this helper i.s.o. their own expressions. Change-Id: I477ed2d90a9a529fc5dcfef7e3ea42ec180d27ae Reviewed-on: https://code.wireshark.org/review/36920 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-23OsmoTRX: Use units from unit_strings.{c,h}Pau Espin Pedrol1-0/+1
Change-Id: I79dd406fe34b623678bd8a13b2ec75930f886fe8 Reviewed-on: https://code.wireshark.org/review/36904 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-04-15epan: Add p_[gs]et_proto_depth.Gerald Combs1-0/+2
Add convenience routines for getting and setting a per-protocol, per-packet depth value, which can be used to limit recursion, nesting, cycling, etc. Use them in the BACapp, DAAP, Mongo, VLAN, and WBXML dissectors. Change-Id: I172514828169253ae7fcf9162c9d7eeb3041ff9c Reviewed-on: https://code.wireshark.org/review/36846 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>