aboutsummaryrefslogtreecommitdiffstats
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2023-03-10specs conversion minor updateZoran Bošnjak1-0/+31
Update for structure change introduced in revision #007b214 of asterix-specs.
2023-03-02Tools: Fix the docinfo paths in make-version.pyGerald Combs1-2/+2
[skip ci]
2023-02-27enterprises: recognize "previously" as synonym for "formerly"Joris Peeraer1-1/+1
Enterprise-names containing "formerly" are handled differently, removing the former name and only keeping the current one. Some enterprise-names have changed their names using the synonym "previously", which is currently not parsed in the same way. This commit modifies the script to recognize both.
2023-02-24Fix more warnings from tools/check_typed_item_calls.pyMartin Mathieson1-5/+11
2023-02-12Try to check that all items in bitmask set have same widthMartin Mathieson1-6/+28
2023-02-09Fix some spelling errorsMartin Mathieson1-0/+9
2023-02-07wiretap, pcapng: Distinguish WTAP_ENCAP_UNKNOWN and _NONEJohn Thacker1-0/+2
WTAP_ENCAP_UNKNOWN is used for two different cases: 1. Encapsulation type values that are unsupported by libwiretap or bogus values (and thus "unknown" to libwiretap). 2. An initial state where the encapsulation type is "not yet" known for a file type like pcapng without a single encapsulation type in the header, before any packets or interfaces that set the encapsulation type have been read. (If the file has no packets, this may be the value after the file is entirely read in.) This can be the value when an output file is written out simultaneously with reading an input file, rather than reading the entire input file first, and, e.g., there is a custom block before any IDBs. The first case can never be handled when writing out a file, but the second case can possibly be handled, so long as (for pcapng) IDBs are available to write when they become necessary, or (for file types like pcap with a single link-layer type in the header) the writer waits until a link-layer type is seen to create the output header. (It is possible, of course, that writing would fail in the middle if an unsupported encapsulation type appears, or if the encapsulation becomes per-packet for file types that don't support that, but that is an unavoidable risk when writing without reading the entire input file(s).) Introduce WTAP_ENCAP_NONE for the second case, and use it for pcapng, where we guarantee that any necessary IDBs will be passed along. Continue to use WTAP_ENCAP_UNKNOWN for the first case. Allow pcapng files to open a file for writing with WTAP_ENCAP_NONE. There are some other file types that support per-packet link-types, and could also use WTAP_ENCAP_NONE, but they require more work to generate IDBs. (Note that all of them currently are impossible to write to pcapng when they have multiple encapsulations, even if the encapsulations are all supported by pcapng, because they don't properly generate IDBs.) Remove the workaround in ef43fd48b4f981392a0c61b5e9a804e8f9c85eb4 for tshark writing to pcapng when the source file is WTAP_ENCAP_UNKNOWN, since now such files will be WTAP_ENCAP_NONE and work properly (and also work in editcap, mergcap, etc.) Along with 8cddc32d35e36d9962495c3d4358842ea88aac41, fix #18449.
2023-02-06Do not require using wsgcrypt.hJoão Valverde1-13/+0
The reason to use wsgcrypt.h was to wrap it around DIAG_OFF() macros and that should no longer be necessary.
2023-02-06Remove wspcap.h and use config.h insteadJoão Valverde2-14/+1
Forcing the use of a dedicated header to replace pcap.h is unnecessary code and mental overhead in this case. We can use config.h instead for the same purpose of defining a macro symbol before including pcap.h.
2023-02-06generate-dissector.py: allow creating pluginDavid Perry1-21/+37
Tweak the script used for creating a new skeleton dissector, to allow it to create the dissector in `plugins/epan/PROTOSHORTNAME` instead of in `epan/dissectors`. Handles modifying the appropriate CMake file in the appropriate way, and generates the plugin's `CMakeLists.txt` if needed.
2023-02-06Ignore or fix more warnings (check_typed_item_calls)Martin Mathieson1-3/+26
2023-02-03Tools: Update macos-setup-brew.shGerald Combs1-13/+15
Intitialize some environment variables using `brew shellenv`. Speexdsp is required. Make some variable names match their respective command line flags.
2023-02-02GitLab CI: Add a macOS merge request build.Gerald Combs1-16/+120
Add an initial "macOS Build" job that uses GitLab's macOS beta. https://about.gitlab.com/blog/2021/08/23/build-cloud-for-macos-beta/ Add command line options to macos-setup-brew.sh and use it to install our packages. Skip running tests for now.
2023-02-02Fix some spelling errorsMartin Mathieson1-0/+4
2023-01-31More fussing with items and calls.Martin Mathieson1-2/+17
2023-01-30Fix or suppress more warnings from check_typed_item_callsMartin Mathieson1-2/+12
2023-01-29Update msys2-setup.shJoão Valverde1-0/+3
2023-01-29check_typed_item_calls: filter out some false positivesMartin Mathieson1-3/+49
2023-01-25Fix some spelling errors.Martin Mathieson1-0/+15
2023-01-24check_typed_item_calls.py: change re for calls to allow ws before paramsMartin Mathieson1-5/+5
2023-01-21Checked encoded values for proto_tree_add_item()Martin Mathieson1-6/+18
2023-01-20GUI: Ship authors as a Qt resource fileJoão Valverde1-0/+63
2023-01-20Fix some issues seen by tools/check_typed_item_calls.pyMartin Mathieson1-3/+6
2023-01-20Update authors file in placeJoão Valverde1-6/+16
Instead of having AUTHORS.src and copying that to a new AUTHORS file with git log information appended to that have a single AUHTORS file and update it in place with git log info.
2023-01-16Fix various issues seen with tools/check_typed_item_calls.pyMartin Mathieson1-1/+2
2023-01-16MSYS2: Add Lua 5.1 support and fix test suite failuresJoão Valverde1-10/+5
2023-01-14MSYS2: Add better support for other environmentsJoão Valverde1-37/+39
Add support for and generally recommend using UCRT64.
2023-01-12MSYS2: Update GitHub actionJoão Valverde1-20/+0
2023-01-11extract_asn1_from_spec.pl: add support for M2AP and M3AP specsPascal Quantin1-1/+1
2023-01-08macos-setup: go with the current autoconf and automake releases.Guy Harris1-5/+4
(Too bad we have to install these to get a decent Makefile for minizip.) [skip ci]
2023-01-03For 'fields' param in add_bitmask_, check item masksMartin Mathieson1-14/+42
2023-01-01Lemon: Update code and remove cruftJoão Valverde14-468/+136
Remove some unused historical files. Aggressively disable warnings to keep the lemon source pristine and avoid the maintenance burden for lemon itself. Lemon has its own lax policy for warnings that doesn't match our own and they won't accept external patches to remove the warnings, so just ignore them. Lemon is just executed to generate code for the Wireshark build and the minor code issues it has have no influence at runtime. For lemon generated code we selectively disable some linting warnings. Remove patches for lemon and lempar, they are no longer required with these changes to silence warnings.
2022-12-30check_tfs: find entries that define value_string identical to common tfsMartin Mathieson1-5/+142
2022-12-29Enable checks for proto_tree_add_bits APIsMartin Mathieson1-4/+3
2022-12-27WIP: Check types for _add_bits_ functions, and ensure no maskMartin Mathieson1-15/+52
2022-12-22Tools: Move speexdsp to the Alpine and RPM basic lists.Gerald Combs2-38/+40
2022-12-20tools/bsd_setup.sh: speexdsp is a required packageMartin Mathieson1-2/+2
2022-12-19Tools: Check the last modified date in make-tls-ct-logids.pyGerald Combs1-34/+53
In "update" mode, exclude the last modified time when comparing against the current code block.
2022-12-19debian-setup.sh - install libspeexdsp-dev as default as is now requiredMartin Mathieson1-2/+2
2022-12-17Fix some spelling errorsMartin Mathieson1-0/+48
2022-12-16Windows: Use SpeexDSP binary packageJoão Valverde1-0/+2
Remove bundled code and use vcpkg binary library instead.
2022-12-15tools/check_typed_item_calls: check FT_BOOLEAN mask lengthMartin Mathieson1-13/+39
2022-12-14NCP: Add offset overflow checking.Gerald Combs1-0/+2
Add and use check_offset_addition, which adds an expert item and throws an exception if we're about to overflow our offset. Fixes #18720
2022-12-08tools/checklicense: Skip build directoriesJoão Valverde1-1/+1
Skip a source tree root directory starting with 'build' (by convention). Remove previous logic from Chromium that does not apply to us.
2022-12-03check_typed_item_calls: add check for add_bitmask fieldsMartin Mathieson1-2/+45
2022-11-30asn2wrs: disable template line directive by defaultJoakim Karlsson1-14/+19
Same as with !8955, To debug with line directive build with -DENABLE_DEBUG_A2W=ON flag
2022-11-30Change the re for matching an item's labelMartin Mathieson1-1/+1
2022-11-30tools/check_static.py - fix remaining errorsMartin Mathieson1-2/+2
2022-11-16rpm-setup: Don't attempt to install cmake3John Thacker1-3/+0
cmake is already in the basic list of packages. "cmake3" is necessary for RHEL/CentOS 7 (where the "cmake" package is 2.8.12), but that distribution isn't supported on 4.0 and later. At the same time, the OpenSUSE 15.4 repository accidentally has a "cmake3" package which is an earlier version than the "cmake" RPM, which creates some conflicts when trying to install both. (https://gitlab.com/wireshark/wireshark-containers/-/jobs/3328997023) So, don't attempt to install cmake3 anymore.
2022-11-03skinny: Resync xml code with dissector, regenerateJohn Thacker1-2/+2
Make changes to packet-skinny.c.in and SkinnyProtocolOptimized.xml that incorporate changes from 67f05835cac0a26636a7e04739a4cc0dd225c077 and 8efad466c4e62b0371659c8fd1d909038c36da27 made to the dissector manually and regenerate. Also fix a case where a comment mixed tabs and spaces, which caused the python conversion tool to complain.