aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.h
AgeCommit message (Collapse)AuthorFilesLines
2024-02-19prefs: Backwards and forwards compability for hiding columnsJohn Thacker1-0/+1
Continue to write the format-based hidden preference for now. Read both preferences; if the index-based preference is read, use it. If not, fall back to the format-based preference. Followup to 41930060b04146198966e1b775c4527b70cab6f2
2024-02-08Fix: formattingJan Wiesemann1-1/+1
2024-02-08Qt: added preference for hiding 'Welcom page' -> 'Open'Jan Wiesemann1-1/+2
This commit adds a additional preference to hide the 'Open' (recently opened files) section on the welcome page.
2023-11-30Add "Use monitor mode on all 802.11 devices if possible"John Thacker1-0/+1
Similar to the -I option, but as a pref (defaulting to false, which is current behavior) that sets the default for 802.11 devices to use monitor mode. (Note this depends on commit c25e0f9084d1108ea51952eb97531027c1291d38 being merged to work properly.) Also add the checkbox in capture options, only enabled if at least one device supports monitor mode, that enables and disables monitor mode on all devices that support it when toggled. Fix #11011
2023-11-26Qt: Add side-by-side layout preference option for Packet DialogJohn Thacker1-0/+6
Like the option to show the bytes, this isn't in a preference dialog (other than Advanced preferences) because it's easiest to change it from a Packet Dialog itself. Fix #18731
2023-11-26prefs: Add prefs_register_dissector_preference()Stig Bjørlykke1-0/+24
Use this preference to get color code validation and autocompletion for string preferences used for configuring a dissector name.
2023-11-12Qt: add command line options support in the TLS Keylog LauncherPeter Wu1-1/+1
Add support for command line parameters, rename the preference to match. Use the correct `SSLKEYLOGFILE` environment variable name in the text. Rename SSL to TLS, we are no longer in 1999. Clarify that applications other than browsers can be selected. Various dialog text improvements. Move the Launch button to the right to make it stand out more. Relates to #19471
2023-08-23Qt: Add Browser SSL keylog dialogJoão Valverde1-0/+1
Adds a new menu under Tools to launch a browser with the SSLKEYLOGFILE environment variable set. Adds a new GUI preference to store the browser path specific to the SSL Keylog dialog (which may be different from the user's preferred system browser).
2023-08-18Move autoscroll preference behavior to recentJohn Thacker1-1/+0
Make whether or not we are autoscrolling a "recent" item. Make the selection of automatically scrolling in the Capture Options tab actually have an effect (right now it does nothing.) Switching to a recent also means that the command line "-l" option actually turns on automatic scrolling if the recent value is off (currently it has no effect because it is always later overridden by the preference value). Document our behavior that autoscrolling, if turned on, temporarily turns off when manually scrolling upwards or Go'ing directly to a packet (so that a user can examine a chosen packet.) This temporary effect does not change the "recent" status, which changes only when the user directly turns the behavior on or off (through the capture window, the button or menu item, or the -l command line option.)
2023-06-09Add a preference for ignoring duplicate framesGilbert Ramirez1-0/+2
Sometimes you have a capture file that has many duplicate frames because of how the capture was made, and its convenient to ignore the duplicates so you can concentrate on the data and not all the TCP warnings. This adds a preference in the "Protocols" section to ignore duplicates. This currently only works while reading a capture file *not* during a live capture.
2023-05-08prefs: Remove type of GUI preferenceStig Bjørlykke1-6/+6
The type of GUI preference is unused. Remove prefs.gui and rename prefs.gui_qt_* to prefs.gui_*.
2023-04-10IO Graph: Hide LegendDeveloper Alexander1-0/+1
Allows the user to hide the legend of the IO Graph. This becomes handy as the legend may hide some graphs and it is unfortunately not very helpful in many cases.
2023-03-14capture: Set update interval in capture opts, default to 100msJohn Thacker1-0/+1
Reduce the default update interval for dumpcap to notify its parent of new packets (or to check if we've met file duration, etc.) from 500 ms to 100 ms, and put in the capture options. This makes the GUI appear to update more in real time rather than in visible batches of packets. This also reduces the amount of ring buffer space needed in cases where we're doing dissection, and dissection is able to keep up, but the files can be deleted before tshark gets to them because of the notification lag. (See #1650.)
2023-03-06colors: Improve handling of errorsJohn Thacker1-1/+0
Pop up a dialog about bad coloring rules when reading the file (e.g., when first starting Wireshark), rather than waiting until you try to edit them. Have that dialog have details of the problem with the filter instead of a generic message. The report_warning code will consolidate multiple warnings into one if more than one filter has an error, rather than have lots of pop-ups. Since the dialog (or console message, in the unlikely event that somehow the colorfilters are read in a CLI tool) is called from the color filters code, get rid of the separate non-specific pop-up in ColoringRulesDialog and the special preference for having a bogus filter. Now, if the user has a bogus filter in the current profile's colorfilter, they'll get a useful pop-up warning at startup, when that filter is disabled. For filters imported / copied from other profiles through the coloring rules dialog, they'll get the same useful pop-up. For trying to enable a disabled coloring rules with an error, or inserting a *new* coloring rule with invalid filter expression (despite the editor's Red background warning about an invalid expression), there's already both the hint at the bottom of the screen and the OK button becomes disabled. (Maybe the hint could be larger or bold or something when there's an error.) Fix #14906. Fix #15034
2023-02-09Preferences: Support configuring debounce timersMoshe Kaplan1-0/+1
2023-01-07Qt: Add a pref for column text caching, and have it affect sortingJohn Thacker1-0/+1
Introduce a preference for the number of rows whose column text can be cached, and allow sorting of the packet list only when the number of displayed rows can fit in the cache. This preference only has an effect for sorting based on columns that require dissection and caching the column text. This reduces the number of dissections from O(N log N) to N. Subsequent sorts are even faster. Columns based on frame data are unaffected, as they sort much faster as dissection is not required. Set the size of the QCache introduced in 8c6854fb653cf58df39 based on this preference. Send a temporary status message to the status bar if we try to sort but there are too many rows, explaining why sorting did not happen and that the layout preferences can be changed. Ping #18741
2022-11-01TCP: Overriding of the automatic SEQ AnalysisEugène Adell1-0/+24
2022-10-11Windows: Store "gui.console_open" in the Windows registryJoão Valverde1-10/+0
This removes the last dependency of the logging subsystem on the preferences module. The latter is started much later than the former and this is an issue. The Windows-only preference "gui.console_open" is stored in the registry as HKEY_LOCAL_USER\Software\Wireshark\ConsoleOpen. The semantics are exactly the same. The preference is read by the logging subsystem for initialization and then again by the preferences (read/write) so the user can configure it as before. The code to store the preference also in the preferences file was kept, for backward compatibility and because it is not incompatible with using the Registry concurrently. The elimination of the prefs dependency also allows moving the Windows console logic to wsutil and add the functionality to wslog directly, thereby eliminating the superfluous Wireshark/Logray custom log handler. To be able to read the ws_log_console_open global variable from libwireshark it becomes necessary to add a new export macro symbol called WSUTIL_EXPORT.
2022-08-04prefs: Remove prefs_register_decode_as_preferenceJohn Thacker1-21/+0
All Decode As auto preferences are registered as ranges now, so remove this internal function. Ping #14319.
2022-03-17Qt: Disable Sorting for the packet ListRoland Knall1-0/+1
Allows the sorting to be disabled to avoid painful recalculations if the sorting has been clicked on by accident. Fixes #16786
2022-02-07Qt: Allow byteview to be hiddenRoland Knall1-0/+1
Implements: #17887
2021-12-30Prefs/Extcap: Added support for password which is never stored on the diskj.novak@netsystem.cz1-0/+19
2021-11-26wsar: Document prefs.hMoshe Kaplan1-75/+408
Add @file to prefs.h so it's included by Doxygen. Then documented the associated functions.
2021-09-21IO Graph: Add checkbox to prevent automatic rescansDeveloper Alexander1-0/+1
Adds a checkbox 'Automatic Update' to the IO Graph to enable or disable rescans and recalculation of graph data temporarily. This is useful when you want to modify settings of multiple graphs without triggering a rescan with every change of a single setting. This becomes useful for large trace files in particular. Rescan or recalculation events are queued while 'Automatic Update' is not active. Checking 'Automatic Update' triggers the queued updates. The setting for 'Automatic Update' is stored in a preference. A german translation for 'Automatic Update' is included.
2021-07-13prefs_register_protocol_obsolete protocols with only obsolete prefsChuck Craft1-1/+1
Related to #17465 and !3526
2021-06-17Prefs: Remove packet_editor optionUli Heilmeier1-1/+0
Since QT UI we have had no more packet editor feature. Therefore we can also drop the preference to enable it.
2021-06-11Refactor our logging and extend the wslog APIJoão Valverde1-1/+0
Experience has shown that: 1. The current logging methods are not very reliable or practical. A logging bitmask makes little sense as the user-facing interface (who would want debug but not crtical messages for example?); it's computer-friendly and user-unfriendly. More importantly the console log level preference is initialized too late in the startup process to be used for the logging subsystem and that fact raises a number of annoying and hard-to-fix usability issues. 2. Coding around G_MESSAGES_DEBUG to comply with our log level mask and not clobber the user's settings or not create unexpected log misses is unworkable and generally follows the principle of most surprise. The fact that G_MESSAGES_DEBUG="all" can leak to other programs using GLib is also annoying. 3. The non-structured GLib logging API is very opinionated and lacks configurability beyond replacing the log handler. 4. Windows GUI has some special code to attach to a console, but it would be nice to abstract away the rest under a single interface. 5. Using this logger seems to be noticeably faster. Deprecate the console log level preference and extend our API to implement a log handler in wsutil/wslog.h to provide easy-to-use, flexible and dependable logging during all execution phases. Log levels have a hierarchy, from most verbose to least verbose (debug to error). When a given level is set everything above that is also enabled. The log level can be set with an environment variable or a command line option (parsed as soon as possible but still later than the environment). The default log level is "message". Dissector logging is not included because it is not clear what log domain they should use. An explosion to thousands of domains is not desirable and putting everything in a single domain is probably too coarse and noisy. For now I think it makes sense to let them do their own thing using g_log_default_handler() and continue using the G_MESSAGES_DEBUG mechanism with specific domains for each individual dissector. In the future a mechanism may be added to selectively enable these domains at runtime while trying to avoid the problems introduced by G_MESSAGES_DEBUG.
2021-04-26RTP Player: Settings for enabling use of disk as temporarly storeJirka Novak1-0/+2
New advanced settings are created: - rtp_player_use_disk1 - controls if decoded samples are stored in memory or on disk. - rtp_player_use_disk2 - controls if dictionary for decoded samples is stored in memory or on disk. - documentation updated
2021-04-21Qt: Add checkbox for enabling/disabling packet-list hover_styleJim Young1-0/+1
At times the presence of the packet-list hover_style colorization can make it difficult to determine the state of the packet directly under the mouse cursor. This forces the user to move the mouse cursor away from the packet-list row to reveal the next colorization state. The packet-list row colorization style precedence, from highest to lowest, is: hover_style, Selected, Ignored, Marked and then coloring rules. This patch adds a new 'Packet List settings:' checkbox option 'Enable mouse-over colorization'. By default the supporting preference `gui.packet_list_hover_style.enabled` will be enabled (TRUE). When this checkbox is disabled, the packet-list hover_style (mouse-over) colorization will not be used.
2021-04-04prefs: get rid of unused #define.Guy Harris1-1/+0
epan/prefs.h defines PREFERENCE_GROUPING, but nothing checks it, so there's no point in defining it; it may have been checked when it was added, but, if so, it's not checked any more, so remove it.
2021-03-16Move more headers outside extern "C".Guy Harris1-4/+4
If a header declares a function, or anything else requiring the extern "C" decoration, have it wrap the declaration itself; don't rely on the header itself being included inside extern "C".
2021-02-10Moving glib.h out of extern CMichal Ruprich1-2/+2
2021-01-01All RTP dialogs: Added option to specify count of decimal placesJirka Novak1-0/+6
Preferences are extended with advanced settings: gui.decimal_places1 - 2 gui.decimal_places2 - 4 gui.decimal_places3 - 6 rtp_analysis_dialog, rtp_player_dialog and rtp_stream_dialog uses new settings for formating numbers. Same information in all dialogs uses same settings. It solves request #15481. Note: Other UI dialogs can be adapted later.
2020-10-23QT/CLI: Move max tree items and depth to prefsJohn Thacker1-0/+2
Move the maximum number of tree items and maximum tree depth to preferences instead of hardcoded values. Refer to issue #12584 for an example VNC capture where real data exceeds the current limit.
2020-08-10Qt: Add a packet diagram view.Gerald Combs1-1/+2
Add a new top-level view that shows each packet as a series of diagrams similar to what you'd find in a networking textook or an RFC. Add proto_item_set_bits_offset_len so that we can display some diagram fields correctly. Bugs / to do: - Make this a separate dialog instead of a main window view? - Handle bitfields / flags Change-Id: Iba4897a5bf1dcd73929dde6210d5483cf07f54df Reviewed-on: https://code.wireshark.org/review/37497 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-01-09Qt: Fix PacketListHeader columnRoland Knall1-0/+1
Due to changes in #35206, if you have a lot of columns the display of all columns may be hindered depending on your screen resolution. With this change, displaying the column information can be disabled via a Preferences->Layout checkbox element. Additionaly, the column information will always be displayed as a tooltip element Bug: 16317 Change-Id: Ib8c0fc0a84deaca96631270b320f3a530ba87d89 Reviewed-on: https://code.wireshark.org/review/35706 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
2019-12-19Protobuf: add dissecting protobuf fields as wireshark fields preferences, etc.Huang Qiangxiong1-0/+8
Two enhancements and one fixed bug: 1. Add dissecting protobuf fields as wireshark (header) fields preferences. User can input the full names of protobuf fields or messages in Filter toolbar for searching. 2. Add 'protobuf_field' dissector table. Dissector based on protobuf can register itself to 'protobuf_field' keyed with the full names of fields of BYETS or STRING types. 3. A bug about search MESSAGE or ENUM type in context is fixed. 4. Another small enhancement is adding prefs_set_preference_effect_fields() which can mark a preference that affects fields change (triggering FieldsChanged event). See the linked bug for sample capture file and .proto files. Ping-Bug: 16209 Change-Id: Ibc3c45a6d596a8bb983b0d847dd6a22801af7e04 Reviewed-on: https://code.wireshark.org/review/35111 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-11-05QT/CLI: Remove limit for object export filesUli Heilmeier1-0/+1
Removes the limit to export more than 1000 files with the same name when exporting objects. For this a preference name gui.max_export_objects is used. Bug: 16010 Change-Id: Iefc138ac2617491aad3b6ad5827c9058aed112c7 Reviewed-on: https://code.wireshark.org/review/34339 Reviewed-by: Anders Broman <a.broman58@gmail.com> Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
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-10-22Add ability to disable autocomplete suggestions for filter controls.Michael Mann1-0/+1
Add a preference (enabled by default) that can enable/disable the ability for Wireshark to autocomplete display and capture filter controls. Bug: 14368 Change-Id: Ib2b688bb75c4465dab14a6a635a870d7e5c4fe80 Reviewed-on: https://code.wireshark.org/review/30320 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-09-29Add a mechanism to register aliases for preference modules.Guy Harris1-0/+5
That way, we don't need a chunk of code in epan/prefs.c that knows about various preference module mappings; individual dissectors can register aliases as appropriate. (The Nortel Discovery Protocol never *had* any preferences, even when it was the SynOptics Network Management Protocol, so there's no need for it to register an alias.) Change-Id: I4a718dac6bb06801cc06a6ee5a28d7ed81e67e5d Reviewed-on: https://code.wireshark.org/review/29914 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-09-29Get rid of some no-longer-supported GUI preferences.Guy Harris1-6/+0
Make them obsolete preferences; if they had any use, it was with the now-removed GTK+ UI. Change-Id: I2b514148c8066c5c79cb402493f47a21d3679819 Reviewed-on: https://code.wireshark.org/review/29912 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-09-29Get rid of the printing preferences.Guy Harris1-7/+0
They're no longer used by any of the printing code; mark them as obsolete. Change-Id: Iceaf14f48f1bd35757a9a158a5348f6202b90fc7 Reviewed-on: https://code.wireshark.org/review/29911 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2018-09-26prefs: add the option not to load interfaces on startup.Dario Lombardo1-0/+1
Change-Id: I2ade0647a8c32b76aebd60117b4317cd005aff91 Reviewed-on: https://code.wireshark.org/review/29854 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-09-10prefs,ui: properly migrate old filter expressionsPeter Wu1-0/+1
When legacy filter expressions preferences are present, be sure to (1) save the dfilter_buttons file when updating the preferences file and (2) save the preferences file after updating the dfilter_buttons file. Without doing (1), the old buttons will be lost. Without (2), restarting Wireshark will result in duplicate buttons. Only write the files if the user actually made other changes to avoid breaking profiles by just opening Wireshark. Bug: 15114 Bug: 15121 Change-Id: I5b9417c34146c4450526781a20308c9c98fb44a1 Reviewed-on: https://code.wireshark.org/review/29488 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-09-02prefs: Remove prefs.gui_use_pref_saveStig Bjørlykke1-1/+0
Remove prefs.gui_use_pref_save from prefs.h. Change-Id: I347cab214048a41afe2c626c0c12a0f46483c2e2 Reviewed-on: https://code.wireshark.org/review/29401 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2018-05-25Qt: Configure the selection color via the preferencesPaul Zander1-0/+15
The active selection color and inactive selection color can be configured via Edit / Preferences / Font and Colors There are 3 styles that can be used for the selection color: Default: legacy behavior Flat: Use background and foreground color with no gradient. Gradient: Use background and foreground color with a gradient. Bug: 14714 Change-Id: Ieca293bb9830d2c5702949d0459d1d6f679e41e4 Reviewed-on: https://code.wireshark.org/review/27701 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2018-05-21Do not use #if* in structMichał Łabędzki1-4/+0
Do not assume that somebody always includes "config.h" with "epan/prefs.h", because I do not include that one and I notice a lot of bugs, like: in one file sizeof(prefs) is 538 but in another is 544... and of course preferences do not work as expected - order of fields in the struct was changed. Try to avoid #if in struct. Remove dependency of config.h for prefs by removing #ifs, because all prefs should be registered also if not used. Change-Id: I02f71d2e64acf3e0f90c802b1610cc4620727051 Reviewed-on: https://code.wireshark.org/review/27654 Petri-Dish: Michal Labedzki <michal.labedzki@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-17Remove some GTK+-only code.Gerald Combs1-8/+2
Change-Id: Ic2498c7acd6a1a522be45094148402ee34a6b4d1 Reviewed-on: https://code.wireshark.org/review/26958 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>
2018-04-15More PortAudio removal.Gerald Combs1-2/+0
Change-Id: Ib56212e09d41fc76494d8186c77541302700104c Reviewed-on: https://code.wireshark.org/review/26952 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>