aboutsummaryrefslogtreecommitdiffstats
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2021-05-07Tools: Show only filenames when fuzzing.Gerald Combs1-1/+1
Show only the basename of each capture file when fuzzing, which is less noisy than the full pathname.
2021-05-06ITS: fix asn2wrs #.NO_EMITTomas Kukosa1-3/+10
asn2wrs accepts #.NO_EMIT using module specific $Module$TypeName identifier
2021-05-05GitLab CI: Add a minimal fuzzing job.Gerald Combs1-11/+21
Add a -t option to tools/fuzz-test.sh which lets you specify a maximum fuzz time. Add an initial "fuzz-test" job which fuzzes test/captures/* for 5 minutes. To do: Fuzz longer using our capture menagerie and report failures.
2021-05-03Update to DICOM Edition 2021bRickard Holmberg1-3/+0
2021-04-30GitLab CI+tools: Make our clang version configurable.Gerald Combs1-3/+16
Track our preferred version of clang using $CLANG_VERSION in .gitlab-ci.yml. Update validate-clang-check.sh to accept a clang version.
2021-04-28validate-clang-check: fix extracting the file basename.Guy Harris1-1/+1
2021-04-28validate-clang-check: fix some issues.Guy Harris1-1/+10
Not all shells support [[ ]] compound commands; it's not in the most recent Single UNIX Specification I could see, and the ubuntu-clang-other-tests job is reporting tools/validate-clang-check.sh: 18: [[: not found Don't use [[ ]]. In addition, if you change extcap/etl.c, it tries to run clang-check on it, but that file builds, and is only built, on Windows, so clang-check fails dismally on UN*Xes. Omit it for now.
2021-04-27PTP: Fix a couple of spelling errorsMartin Mathieson1-0/+3
2021-04-25Windows: upgrade Npcap to 1.31Pascal Quantin1-4/+4
2021-04-20More trivial spellings.Martin Mathieson1-0/+3
2021-04-19NVME: Fix some spellingsMartin Mathieson1-0/+8
Also added some of its words to wireshark_words.txt
2021-04-12Windows: upgrade Npcap to 1.30Pascal Quantin1-4/+4
2021-04-10Some more spelling fixes.Martin Mathieson1-10/+21
Changed script to allow recursive search for multi-words.
2021-04-05macos-setup: Update CMake, Qt, and PythonJohn Thacker1-27/+41
Update CMake (3.19.7), Qt (5.2.10), and Python (3.9.3) to later bugfix versions of the current packages. CMake and Python have made tweaks in the names of the binary packages that support different macOS versions. Fixes downloading Python 3.9.2+ on macOS 11 after the package suffix changed from -macos11.0.pkg to -macos11.pkg Warn about the lack of Qt offline installers for version 5.15 and greater.
2021-04-03check_static.py check symbols that could be static.Martin Mathieson1-0/+314
As discussed at https://www.wireshark.org/lists/wireshark-dev/202101/msg00056.html
2021-04-03Add more common words to spelling dict.Martin Mathieson2-1/+29
2021-04-01asn2wrs.py: prevent adding several times BASE_VAL64_STRINGPascal Quantin1-1/+1
Fixes ITS dissector generation from ASN.1 description
2021-03-26macos-setup: the current Python is 3.9.2.Guy Harris1-3/+3
While we're at it, capitalize "Arm". (That's how Arm Ltd. is spelling it now, even in the architecture versions, e.g. "Armv8-A".)
2021-03-25tools: add g_memdup to prohibited APIs.Dario Lombardo1-0/+3
2021-03-23Add a commit-msg that may be installed to verify commit msg line length.Martin Mathieson2-2/+20
2021-03-22Replace the Large File Support CMake stuff.Guy Harris2-4/+1
The existing stuff doesn't appear to work (I tried it on 32-bit Ubuntu 18.04, and it did *not* add any flags to the compilation, as it appeared not to conclude that they were necessary, even though they were). Pull in the stuff from libpcap, which *does* appear to work. (it does so in my 32-bit Ubuntu testing). This should fix #17301. While we're at it, fix cppcheck.sh so that it doesn't attempt to run cppcheck on files that have been deleted.
2021-03-21dfilter, ftypes: get rid of FT_PCRE.Guy Harris2-2/+1
It's not a valid field type, it's only a hack to support regular expression matching in packet-matching expressions. Instead, in the packet-matching code, have a separate syntax tree type for Perl-compatible regular expressions, and a separate instruction to load one into a register, and have the "matching" operator for field types take a GRegex * as the second argument.
2021-03-17Windows: upgrade Npcap to 1.20Pascal Quantin1-4/+4
2021-03-14debian-setup: include GCC and G++ in the basic list.Guy Harris1-1/+3
At least on my just-now-installed Kubuntu 20.04 VM, G++ wasn't installed by default, and you need that to compile Wireshark (you can avoid it if you're not building the GUI code, but the GUI code is Qt-based, so it's in C++). Add both GCC and G++ to the basic list.
2021-03-13GitLab CI: Fix our debian-stable version.Gerald Combs1-4/+7
Run tools/make-version.pl in the build:debian-stable job. Make sure make-version.pl updates debian/control correctly.
2021-03-10tools: add more packages to brew script.Dario Lombardo1-2/+2
2021-03-09Windows: Update our spandsp packages.Gerald Combs1-4/+4
Use the versions of lrint and lrintf defined by Visual C++. This should fix 91>C:\buildbot\builders\wireshark-master-64\wireshark-win64-libs\spandsp-0.0.6-win64ws\include\spandsp/fast_convert.h(320,5): error C2169: 'lrint': intrinsic function, cannot be defined (compiling source file C:\buildbot\builders\wireshark-master-64\windows-2019-x64\build\plugins\codecs\G726\G726decode.c) [C:\buildbot\builders\wireshark-master-64\windows-2019-x64\build\cmbuild\plugins\codecs\G726\g726.vcxproj] 91>C:\buildbot\builders\wireshark-master-64\wireshark-win64-libs\spandsp-0.0.6-win64ws\include\spandsp/fast_convert.h(325,5): error C2169: 'lrintf': intrinsic function, cannot be defined (compiling source file C:\buildbot\builders\wireshark-master-64\windows-2019-x64\build\plugins\codecs\G726\G726decode.c) [C:\buildbot\builders\wireshark-master-64\windows-2019-x64\build\cmbuild\plugins\codecs\G726\g726.vcxproj] for Visual C++ 16.9.1 and later.
2021-03-05rpm-setup.sh: Fix typoJoão Valverde1-1/+1
2021-03-01CMake: Use CheckAPI's abort/termoutput with dissectors onlyJoão Valverde1-4/+5
I believe this was the original intention, to use these API restricitons with dissectors only (not that I necessarily agree with that policy either), and through copy-paste and lack of clear guidelines it spread to other parts of the build. Rename the checkAPI groups to make it very clear that this is dissector-only. This doesn't mean, of course, that good programming practices shouldn't be followed everywhere. In particular assertions need to be used properly. Don't use them to catch runtime errors or validate input data. This commit will be followed by another removing the various ugly hacks people have been using to get around the checkAPI hammer.
2021-02-25macos-setup.sh: Starting with major 11, the minor SDK version no longer mattersJoerg Mayer1-1/+3
2021-02-21Some more spelling fixes.Martin Mathieson2-2/+51
Also add more words to dictionary file.
2021-02-20macos-setup: Require Qt 5.6 or later and macOS 10.8 or laterJohn Thacker1-40/+13
The minimum required version of Qt is now 5.6, and thus the minimum required version of macOS is 10.8. Reflect that in macos-setup, and remove version checks and older packages installed to support Snow Leopard and Lion.
2021-02-18Fix some spelling errors and update word list.Darius Davis1-6/+22
Celcius -> Celsius. ammendment, framenun and untunelled (with one 'n') are in wireshark_words.txt but do not seem to be present in our codebase anymore (and are not correctly-spelled words), so AFAIK they can be removed from the list. Added a handful of words which don't seem to be in the dictionary on my host but are real words and are in the codebase. Removed two contractions which are now handled within tools/check_spelling.py .
2021-02-17make-manuf updates.Gerald Combs1-2/+3
Strip A.S. and oü, similar to other business types. Strip forward slashes as well, including A/S. Change-Id: Icf436f8663dc9cddf220642913eea7a60285ebc1
2021-02-17wiretap: more work on file type/subtypes.Guy Harris1-1/+1
Provide a wiretap routine to get an array of all savable file type/subtypes, sorted with pcap and pcapng at the top, followed by the other types, sorted either by the name or the description. Use that routine to list options for the -F flag for various commands Rename wtap_get_savable_file_types_subtypes() to wtap_get_savable_file_types_subtypes_for_file(), to indicate that it provides an array of all file type/subtypes in which a given file can be saved. Have it sort all types, other than the default type/subtype and, if there is one, the "other" type (both of which are put at the top), by the name or the description. Don't allow wtap_register_file_type_subtypes() to override any existing registrations; have them always register a new type. In that routine, if there are any emply slots in the table, due to an entry being unregistered, use it rather than allocating a new slot. Don't allow unregistration of built-in types. Rename the "dump open table" to the "file type/subtype table", as it has entries for all types/subtypes, even if we can't write them. Initialize that table in a routine that pre-allocates the GArray before filling it with built-in types/subtypes, so it doesn't keep getting reallocated. Get rid of wtap_num_file_types_subtypes - it's just a copy of the size of the GArray. Don't have wtap_file_type_subtype_description() crash if handed an file type/subtype that isn't a valid array index - just return NULL, as we do with wtap_file_type_subtype_name(). In wtap_name_to_file_type_subtype(), don't use WTAP_FILE_TYPE_SUBTYPE_ names for the backwards-compatibility names - map those names to the current names, and then look them up. This reduces the number of uses of hardwired WTAP_FILE_TYPE_SUBTYPE_ values. Clean up the type of wtap_module_count - it has no need to be a gulong. Have built-in wiretap file handlers register names to be used for their file type/subtypes, rather than building the table in init.lua. Add a new Lua C function get_wtap_filetypes() to construct the wtap_filetypes table, based on the registered names, and use it in init.lua. Add a #define WSLUA_INTERNAL_FUNCTION to register functions intended only for internal use in init.lua, so they can be made available from Lua without being documented. Get rid of WTAP_NUM_FILE_TYPES_SUBTYPES - most code has no need to use it, as it can just request arrays of types, and the space of type/subtype codes can be sparse due to registration in any case, so code has to be careful using it. wtap_get_num_file_types_subtypes() is no longer used, so remove it. It returns the number of elements in the file type/subtype array, which is not necessarily the name of known file type/subtypes, as there may have been some deregistered types, and those types do *not* get removed from the array, they just get cleared so that they're available for future allocation (we don't want the indices of any registered types to changes if another type is deregistered, as those indicates are the type/subtype values, so we can't shrink the array). Clean up white space and remove some comments that shouldn't have been added.
2021-02-17Spell checking script: reduce output.Martin Mathieson2-9/+26
- Ignore all hex numbers from within strings. - Add a few more words to dict file
2021-02-17NCSI: Squash commits of NCSI and PCI-IDSCaleb Chiu1-0/+226
NCSI: Extends NCSI dissection based on DSP0222 Version: 1.2.0_2b Add pci-ids.c and pci-ids.h for mapping PCI IDs(VID,DID,SID,SVID) to string. Extends NCSI dissection to support DSP0222 Version: 1.2.0_2b. Extends NCSI dissection to support Mellanox OEM commands. NCSI: Use TFS for boolean mapped string and added AEN dissectors 1. Use the tfs defined in tfs.c 2. Refine the boolean mapped strings to be TFS style 3. Added dissectors for AEN NSCI: Fixed erros with gcc 7.5.0 1. Fix compiling errors with gcc 7.5.0 under Ubuntu 18.04 2. Sloved complaints of git pre-commit hook NCSI: Add "0x" prefix for displaying HEX values There are codes display HEX values without prefix, added "0x" to fix that. PCI-IDS: Added PCI ID file and python script to convert it to C codes 1. Added the PCI ID file pci.ids from https://pci-ids.ucw.cz/ 2. Added pci-ids-convert.py to convert to epan/dissectors/pci-ids.c PCI-IDS: Updated the PCI ID list to be Version 2021.01.11 NCSI: Remove trailing spaces and unused href entries PCI-IDS: Use a fresh copy of pci.ids to generate pci-ids.c 1. Renamed pci-ids-convert.py to make-pci-ids.py 2. make-pci-ids.py uses a fresh copy of pic.ids to generate pci-ids.c PCI-IDS: Move internal structure to C file 1. Move pci_id_t and pci_vid_index_t from header file to C file. 2. Refined the comments of pci-ids.c 3. Renamed local variable index (shadow variable) to idx PCI-IDS: Refined binary search codes PCI-IDS: Moved pci-ids.[ch] to epan/ Moved pci-ids.[ch] to epan/ as they ought to be
2021-02-15rpm-setup, WSDG: add a --install-rpm-deps option to install rpm-build.Guy Harris1-11/+27
This matches what deb-setup does - it has an --install-deb-deps optionto install tools necessary to build a .deb. Document it in the WSDG while we're at it.
2021-02-15rpm-setup: install libgcrypt by default.Guy Harris1-2/+2
Wireshark now requires it.
2021-02-14Enable -Wredundant-decls.Guy Harris1-2/+1
Add it to the default list of checks, and fix some errors it causes. (Sadly, it doesn't work in CLang.)
2021-02-06wiretap: add a mechanism for built-in modules to have a register routine.Guy Harris1-0/+30
Currently, only pcapng has one, and it does nothing, but this mechanism will be used more in the future. Update comments in epan/dissectors/CMakeLists.txt and ui/taps.h while we're at it.
2021-02-04Add an initial CONTRIBUTING file.Gerald Combs1-0/+3
Add a standard CONTRIBUTING file which describes how you can contribute to Wireshark. Make it Markdown with a .md extension since that's the default in the GitLab UI and elsewhere.
2021-01-30Oops, put back accidentally deleted blank comment line.Guy Harris1-0/+1
2021-01-30Generate plugin.c for tap plugins.Guy Harris1-4/+18
Instead of having the source file containing the top-level registration routine for the pinfo_stats_tree plugin checked into our repository, generate it with tools/make-plugin-reg.py, as we do with other plugins. While we're at it, fix a comment - "DLL" is a Windows term; the equivalent term in UN*Xes would be "shared object" ("so" or ".so") or "dynamic library" ("dylib" or ".dylib").
2021-01-25tools/check_spelling.py: Fix args handlingMartin Mathieson1-9/+9
2021-01-25rdps.py: Use string equality for comparing stringsMoshe Kaplan1-3/+3
In Python, `is` is meant for checking object equality, not string equality. For more info, see https://docs.python.org/3/reference/expressions.html#is
2021-01-25check_tfs.py: Avoid duplicating list entriesMoshe Kaplan1-2/+0
Avoid duplicating list entries and modifying a list during iteration.
2021-01-25check_spelling.py: Avoid duplicating list entriesMoshe Kaplan1-2/+0
Avoid duplicating list entries and modifying a list during iteration.
2021-01-25check_typed_item_calls.py: Avoid duplicating list entriesMoshe Kaplan1-2/+0
Avoid duplicating list entries and modifying a list during iteration.
2021-01-25check_typed_item_calls.py: Avoid mutating default argumentsMoshe Kaplan1-1/+3
Python only creates the default argument once and reuses it for further invocations. Instead, of mutating the default list, set the default argument to be None and then create a list, if needed. For more info, see https://docs.python-guide.org/writing/gotchas/