aboutsummaryrefslogtreecommitdiffstats
path: root/debian
AgeCommit message (Collapse)AuthorFilesLines
2022-02-13Packaging+GitLab CI: Move debian to the packaging directory.Gerald Combs75-6578/+0
We keep our various packaging assets in the "packaging" directory. Move the Debian assets there. dpkg-buildpackage doesn't seem appear to have a "debian directory path" option, but symlinking worked in my test container.
2022-02-06epan: Add BASE_SHOW_UTF_8_PRINTABLEJohn Thacker1-0/+1
Add BASE_SHOW_UTF_8_PRINTABLE and related function tvb_utf_8_isprint for supporting fields of bytes that are "maybe UTF-8" (default or SHOULD be UTF-8 but could be something else, with no encoding indicator), such as SSID fields in IEEE 802.11 (See #16208), certain OctetString fields in Diameter or PFCP, and other places where BASE_SHOW_ASCII_PRINTABLE is currently used. Fix #5307
2022-01-05ws_assert: refactor assertionsJoão Valverde1-1/+1
2022-01-03epan: Add p_set_proto_data.Gerald Combs1-0/+1
Add p_set_proto_data, which either updates our entry if we have a proto+key match or adds an entry if we don't. Use it with p_set_proto_depth. Document it and our other proto_data routines.
2021-12-30Prefs/Extcap: Added support for password which is never stored on the diskj.novak@netsystem.cz1-0/+3
2021-12-28epan: Extend abs_time_to_str() with a flags argumentJoão Valverde1-2/+2
2021-12-27wsutil/inet_addr: Refactor to use C99/POSIX typesJoão Valverde1-0/+1
Rewrite ws_inet_pton{4,6} and ws_inet_ntop{4,6} without GLib types. Check for strerrorname_np() and use that is available, to simplify error handling. Add some minimal tests.
2021-12-27Use a wrapper function to call strptime()João Valverde1-0/+1
Encapsulate the feature requirements for strptime() in a portability wrapper. Use _GNU_SOURCE to expose strptime. It should be enough on glibc without the side-effect of selecting a particular SUS version, which we don't need and might hide other definitions.
2021-12-22Debian: Fix header installationJoão Valverde3-12/+4
Fixes a bunch of package warnings, and teaches the Debian package to respect make install rules, and even more importantly to respect header visibility rules, as defined by the build system. This prevents private headers to be installed to the target system. Remove the broken by design system that requires developers to constantly fix headers by hand. Again the source of truth for which headers are system headers is the build system, and that's what any package must use, without requiring constant syncing of installation rules in CMake and Debian.
2021-12-21Add ws_version.h to wireshark.hJoão Valverde1-0/+1
2021-12-21wsutil: Split ws_regex_matches() into two functionsJoão Valverde1-0/+1
Split ws_regex_matches() into two functions with better semantics and remove the WS_REGEX_ZERO_TERMINATED symbol. ws_regex_matches() matches zero terminated strings. ws_regex_matches_length() matches a string length in code units.
2021-12-15wsutil: Add portability wrapper for clock_gettime(CLOCK_REALTIME)João Valverde1-0/+1
2021-12-14wslog: Avoid logging any output to stdoutJoão Valverde1-1/+1
For historical reasons our logging inherited from GLib the logging of some levels to stdout. Namely levels "info" and "debug" (to which we added "noisy"). However this practice is discouraged because it mixes debug output with application output for CLI tools and breaks many common usage scenarios, like using tshark in pipes. This change flips the logic on wslog to make logging to stderr the default behavior. Extcap subprocess have a hidden dependency on stdout so add that. Some GUI users may also have a dependency on stdout. Because GUI tools are unlikely to depend on stdout for programatic output add another exception for wireshark GUI, to preserve backward compatibility.
2021-12-11epan: Remove obsolete function proto_register_fields_manual()João Valverde1-1/+0
Related with #17774.
2021-12-10epan: Remove new proto tree APIJoão Valverde1-1/+0
Remove experimental new API. Fix Netlink dissector to compile with normal proto tree API. Closes #17774.
2021-12-06Fix Debian symbolsJoão Valverde1-0/+3
2021-12-06Make wmem_print_tree public.AndersBroman1-0/+1
2021-12-03Fix logging with extcapsJoão Valverde1-1/+2
Extcaps require a log file when invoked in child mode. It also has a specific flag to enable debugging, other that the wslog options. Fix the logging to: 1. Enable debug log level if --debug is used. 2. Do not emit messages to the stderr if debug is enabled. This brings extcap logging to the same feature level it had before wslog replaced GLib logging.
2021-11-30epan: Remove unused format_uri() functionJoão Valverde1-1/+0
Used with the GTK GUI, not used for a long time.
2021-11-29Move string_or_null() to wsutilJoão Valverde1-1/+0
2021-11-29epan/str_util: Remove unused functionsJoão Valverde1-3/+0
Remove ws_strdup_escape_char(). I don't think it is generic enough to keep, and it does not seem very efficient either. Remove string_replace(). This function was used in the GTK GUI.
2021-11-29Fix Debian symbolsJoão Valverde2-2/+1
2021-11-28Move two functions from epan to wsutil/str_utilJoão Valverde2-2/+2
Move epan_memmem() and epan_strcasestr() to wsutil/str_util. Rename to ws_memmem() and ws_strcasestr(). Add compile time check for a system implementation and use that if available. We invoke those functions using a wrapper to avoid exposing _GNU_SOURCE outside of the implementation.
2021-11-27wmem: Use better names in the APIJoão Valverde1-2/+2
2021-11-27epan: Add binary search to introspection APIJoão Valverde1-0/+2
2021-11-26epan: Add introspection API to export some constantsJoão Valverde1-0/+1
C is notoriously difficult to bind from other languages without additional metadata. The C ABI does not include enums and macros that are an essential component of the API. To make Wireshark instrospectable and more binding friendly include an introspection API to export enums and integer macros. To avoid the tedious need to manually keep the code up to date it uses the excellent pyclibrary python package to automatically parse C headers and extract this data. This is not a process that should be done automatically during the build. This could be used for example to replace most of the wslua make-init-lua.pl perl script, which tries to do the same thing using regular expressions. Besides the downside of using Perl using regular expressions is inferior to pyclibrary in 2 ways: 1) pyclibrary understands most of C99 grammar so it is much more powerful; 2) pyclibrary has a specific API to extract "values" (enums and constants) automagically. We just need to take care to use only integer values, for our purposes.
2021-11-25debian: libwiretap-dev headers require libwsutil-dev headersPaul Aurich1-1/+1
The headers in the libwiretap-dev package require headers from the libwsutil-dev package, so ensure they're installed.
2021-11-21wmem: Add a multimapJohn Thacker1-0/+9
A number of protocols have IDs that can be reused that are used as lookup keys. In most cases the frame number should be used as well to differentiate repeat appearances of an ID. For response/request matching, it is frequently useful to find the most recent frame number (greatest value less than or equal to the current one) that contained an ID. We can achieve that by using a multimap that stores values with a given ID in a tree keyed with the frame number. This works better than using a map or a tree alone: 1) A map isn't ordered, so doesn't allow for less than or equal comparison. 2) Using a tree requires an ordering on all the ID components, and then having to test all the components other than the frame number separately for equality after retrieval. Currently the multimap does not support inserting items without specifying the tree key (and having the multimap generate a key), because the total capacity of trees (including deleted nodes) is not tracked. If other use cases are needed, this could be added later along with more generic multimap support. Use a multimap in ANSI MAP, ANSI TCAP, and GSM SMS, all of which need to match lookup IDs that can be reused. Fix #7653.
2021-11-16dfilter: Add compilation result to log outputJoão Valverde1-1/+1
Add result output to console log, in addition to intermediate debug information. This allows tracing the result using the log only.
2021-11-14Move regex code to wsutilJoão Valverde1-0/+4
2021-11-12Add an include sub-directory to the treeJoão Valverde1-4/+1
Blind attempt to fix Debian package brokenness managing headers separately from install rules. Global public headers that don't fit any of the Wireshark libraries should be placed in include/. Eventually the C files in the root dir should be placed somewhere else as well (like src/) but this is not a priority. Fixes #17726.
2021-11-10epan: Remove fvalue_string_repr_len() from the public APIJoão Valverde1-1/+0
This function is unnecessary. Clients are receiving a wmem-allocated buffer and have no need to know the length apriori.
2021-11-09wsutil: Improve bytes_to_str_max() APIJoão Valverde1-2/+2
Have these functions accept a zero max length to mean "display the whole byte array". Change the max length parameter to receive a number of bytes to print, not the length of the output character string. Adjust the macros bytes_to_str() and bytes_to_string_punct() to produce the same output. Add more tests. Rename the functions to bytes_to_str_maxlen() and bytes_to_str_punct_maxlen() because this is an API break.
2021-11-08UAT: Allow missing fields.Gerald Combs1-0/+1
Add uat_set_default_values, which lets us provide default values for fields that might be missing from the end of a UAT line. Set a default value for the I/O Graph dialog's Y Axis Factor. Fixes the backward compatibility issue described in #17623
2021-11-08Fix Debian symbolsJoão Valverde1-6/+2
2021-11-04epan: Optimize heuristic name validity checkJoão Valverde1-0/+1
Do the name check in one pass only, instead of two passes, one for all letters and a second one to exclude upper case letters.
2021-10-25Revert "debian: Report upstream and package version instead of git revision"Balint Reczey1-3/+0
Probably it is still better to report the git version as the native package builds used to. This reverts commit ba4bec7d0987c7e79c8deca6ad3f3fe8a1af586a.
2021-10-21debian/rules: Run dh_dwz with debhelper (>= 12.6) onlyBalint Reczey1-0/+4
2021-10-21TCP, UDP, SCTP: Try user specified ports firstJohn Thacker1-0/+2
When the user has manually registered to a port a dissector other than the default subdissector (through Decode As, or the preferences registered via dissector_add_uint_[range_]with_preference), try those ports with a custom dissector first. There's a few dissectors (e.g., GTP) that have port preferences that haven't been migrated to use the DECODE_AS_ preferences for various reasons; this won't change anything when their preferences are changed from the default, though it can still work via Decode As. Fixes #6223 and #12168.
2021-10-19QUIC: fix compilation on RaspberryNardi Ivan1-1/+2
2021-10-17TCPCLv4: Update TCPCL dissector to include version 4 from dtn-wiresharkBrian Sipos1-0/+1
Some enhancements and visual fixes to version 3 dissector are also included.
2021-10-11wsutil: Provide static inline g_memdup2 in glib-compat.h to not export itBalint Reczey1-1/+0
Shared libraries should not export symbols exported by other libraries to avoid collisions. Fixes #17645.
2021-10-10debian: Report upstream and package version instead of git revisionBalint Reczey1-0/+3
2021-10-10debian/rules: Don't pass --parallel to dh, it is the default nowBalint Reczey1-1/+1
2021-10-10debian/rules: Turn on BUILD_corbaidl2wrs to ship idl2wrs man pageBalint Reczey1-1/+1
2021-10-10debian: Bump compat level to 12 keeping backports in mindBalint Reczey2-2/+2
2021-10-10debian/control: Drop Conflists: and Replaces: referring to very old versionsBalint Reczey1-27/+4
2021-10-10debian: Make wireshark depend on the same version of wireshark-qtBalint Reczey1-1/+1
2021-10-10debian/copyright: Fix typo and remove patterns for removed filesBalint Reczey1-6/+1
2021-10-10BPv7: Add Bundle Protocol version 7 and BPSec dissectors from dtn-wiresharkBrian Sipos1-0/+19