Commit Graph

86292 Commits

Author SHA1 Message Date
Bernhard Dick 42751da3c3 DECT-NWK: Add AUTH-TYPE dissection 2022-12-21 21:30:20 +00:00
Bernhard Dick 79e3822dee DECT-NWK: Dissect MM messages
Added value strings for all MM messages and use S-Format IE dissection
also for MM
2022-12-21 21:30:20 +00:00
Bernhard Dick eaeff2858a DECT-NWK: Fix CIPHER-INFO
The value for Escaping to proprietary algorithm was wrong and the
Boolean field Y/N was registered using the wrong base, resulting in a
failed assertion during dissection
2022-12-21 21:30:20 +00:00
Bernhard Dick d9130e8d20 DECT-NWK: Add fixed len information elements
Dissection of all fixed length S-Format information elements has been
added to the dect-nwk dissector
2022-12-21 21:30:20 +00:00
Bernhard Dick 443f0dcc33 DECT-NWK: Handle CALLING-PARTY-NUMBER
Add begin of dissection of S-Format Calling Party Number information
element.
2022-12-21 21:30:20 +00:00
Bernhard Dick da2048d5f3 DECT-NWK: Move IE dissection out of LCE
Dissection of S-Format information elements has moved to an own
function that is now also used for dissecting CC messages
2022-12-21 21:30:20 +00:00
Bernhard Dick b7fc9a2788 DECT-NWK: Begin LCE-PAGE-RESPONSE dissection
First steps in dissection of the LCE-PAGE-RESPONSE message. Basic
dissection for S-FORMAT information elements being mandatory or
optional in this message is included.
2022-12-21 21:30:20 +00:00
Harald Welte 1be5ec9433 DECT-NWK: Initial dissector for DECT NWK layer
Change-Id: Idf0b97ce40ec5b2dd1b507a72fed64cfee288354
2022-12-21 21:30:20 +00:00
Pascal Quantin 318b5a819d NAS 5GS: fix a typo 2022-12-21 15:59:14 +00:00
João Valverde 263bda375c dfilter: Check if type supports unary minus
Fix crash for types that do not support unary minus.

Fixes #18750.
2022-12-21 14:43:39 +00:00
Chuck Craft c654566fc6 UAT: comment out FIX reminder 2022-12-20 17:45:17 -06:00
Martin Mathieson 7f5668e8ec WLAN: fix a couple of warnings from check_typed_item_calls.py 2022-12-20 21:21:35 +00:00
Martin Mathieson 5ccde702c1 PDCP-NR: Add a field to show/filter decrypted data 2022-12-20 16:36:39 +00:00
Martin Mathieson cc9905b87f tools/bsd_setup.sh: speexdsp is a required package 2022-12-20 12:27:41 +00:00
Nardi Ivan 507d5c5386 QUIC: update final constants for QUICv2
Old v2-01 version has been removed, like we did for v2-00 in 78d78eb016.

See:
https://datatracker.ietf.org/doc/draft-ietf-quic-v2/
https://datatracker.ietf.org/doc/draft-ietf-quic-version-negotiation-14
2022-12-20 10:43:47 +01:00
Martin Mathieson 202da2a700 WLAN: fix a conflicting entry for value_string 2022-12-19 22:15:10 +00:00
Gerald Combs 6459b5f6d1 Qt: Improve our font preference compatibility.
Qt5 font strings can have 10 or 11 fields.
2022-12-19 19:53:50 +00:00
Gerald Combs 47fa90e41e Tools: Check the last modified date in make-tls-ct-logids.py
In "update" mode, exclude the last modified time when comparing against
the current code block.
2022-12-19 19:52:55 +00:00
Sake Blok cbbddcfa3a vagrant: Bump to Ubunutu 22.04, RAM to 8GB
Ubuntu 18.04 did not have the right versions of some of the tools.
2GB of RAM did not cut it with the -j4 flag, memory use is now about
4-6 GB while compiling in 4 threads.
2022-12-19 12:05:43 +00:00
GREGORIO-M 1a2642ec69 MP-DCCP: Fixed typo in filter name
mp_joidid to mp_joinid
2022-12-19 11:06:25 +00:00
GREGORIO-M c1756855eb MP-DCCP: Solving Compilation Errors on Certain Compilers
-Removed some whitespaces
2022-12-19 11:06:25 +00:00
GREGORIO-M 801f954a53 MP-DCCP: Solving Compilation Errors on Certain Compilers
-Fixed a few issues with whitespaces
-Fixed duplicate field entries for mp_join, mp_prio and mp_addr
2022-12-19 11:06:25 +00:00
GREGORIO-M 1ebdeb2943 MP-DCCP: Fixed Compilation Error on Certain Compilers
-Reading whether a connection was MP_CAPABLE had incorrect arguments for its type.
2022-12-19 11:06:25 +00:00
GREGORIO-M 5c42b6e84f MP-DCCP: Fixed Rare Packet Malformation Error
-Applied change #2 in commit e98638bf798c5ccdb12b8af7a591b218f660b001 from wireshark/master
2022-12-19 11:06:25 +00:00
GREGORIO-M 599e51462e MP-DCCP: Solving Compilation Errors on Certain Compilers
-Changed the encoding of certain options to their appropriate value, the old values caused compilation error on some machines
-Reverted change #1 in commit c7d3335110290886f6dd56fa640c8b0ca0b7fce5 which caused a packet malformation error due to a data item being read incorrectly.
2022-12-19 11:06:25 +00:00
GREGORIO-M 350875f44f MP-DCCP: Solving Compilation Errors on Certain Compilers
-Certain lines had a mixture of tabs and spaces which prevented compilation on certain machines
2022-12-19 11:06:25 +00:00
GREGORIO-M 174730bdcc MP-DCCP: Solving Compilation Errors on Certain Compilers
-Certain lines had a mixture of tabs and spaces which prevented compilation on certain machines
-Replaced protocol abbreviation from mpdccp.mp_* to dccp_mp_* to solve PROTOABBREV error when building
2022-12-19 11:06:25 +00:00
GREGORIO-M 151414ac35 MP-DCCP: Resolved Minor Merge Issues
-Changed proto_tree_add_unit to proto_tree_add_item, as suggested for the dissect feature option
-Changed conditional statements to switch case in for MP_ADDADDR
2022-12-19 11:06:25 +00:00
GREGORIO-M 7f02b09c41 MP-DCCP: Improved MP_CONFIRM
-MP_Confirm dissection now works as a recursive function, which is capable of more effectively dissect a list of incoming confirmations.
2022-12-19 11:06:25 +00:00
GREGORIO-M 2b6e9d7b2b MP-DCCP: Modified MP_CONFIRM to match IETF draft.
-List MP_OPT as a subtree with relevant MP_SEQ, ID Address and/or subflow. 
-Fixed a compilation warning due to an except statement creating subtree for an inexistent tree.
2022-12-19 11:06:25 +00:00
Nathalie Romo 7bb4c2fb1e MP-DCCP: -Rename multi-path subobtions to match IETF draft.
-Add MP-KEY value.
-Add Key Data in MP_CLOSE.
-Add HMAC data.
-Correct IPv4 address endianess.
2022-12-19 11:06:25 +00:00
Nathalie Romo bdc9210978 DCCP: Fix dissection of Feature options to match feature_number names instead option_type, and include MP_CAPABLE feature. 2022-12-19 11:06:25 +00:00
GREGORIO-M 720c05c799 MP-DCCP: Added all features to MP-DCCP V6.
Previous implementation lacked MP_ADDADDR, MP_REMOVEADDR and had an outdated version of MP_PRIO.

Fixed a bug where the dissector had an incorrect offset of 1 byte, resulting in it incorrectly reading headers and data, something resulting in malformed packets.
2022-12-19 11:06:25 +00:00
GREGORIO-M 16ea20120c MP-DCCP: Implemented MP-DCCP up-to V4.
Used Leonard Walter's MP-DCCP dissector code.
2022-12-19 11:06:25 +00:00
Martin Mathieson 74dc39697f debian-setup.sh - install libspeexdsp-dev as default as is now required 2022-12-19 09:35:44 +00:00
Gerald Combs f951d80201 [Automatic update for 2022-12-18]
Update manuf, services enterprise numbers, translations, and other items.
2022-12-18 16:46:50 +00:00
John Thacker dbb9fe2a37 epan: Allow FT_ETHER custom columns to be resolved or not
Have proto_item_fill_display_label (which is used for custom
columns resolved type and packet diagrams) use address_to_display
for FT_ETHER. This is resolved when name resolution for MAC
Addresses is enabled.

Add FT_ETHER to the list of types that, if present in a custom
column, has the GUI enable the checkbox to switch between "resolved"
and "unresolved" text.

This allows FT_ETHER custom columns to be displayed as either
resolved addresses or unresolved. (Note that to be displayed
as resolved, the column resolved option must be checked and
the name resolution preference enabled.)

Fix #18665
2022-12-17 20:07:45 +00:00
João Valverde 2bc72fa3db IPP: Fix invalid UTF-8 encoding
Fixes #18739.
2022-12-17 17:41:11 +00:00
Martin Mathieson b2572f3a35 Fix some spelling errors 2022-12-17 11:41:29 +00:00
John Thacker 7baa0ca0c4 proto: Custom column concatenation and truncation
Fix some issues regarding custom columns near the maximum size:

Fix where when near the column limit, a comma was not being added
to separate a value but the first character of the next field was,
resulting in an invalid field.

Create the "result" and the "expr" (resolved and unresolved) separately
to address issue where for multifield custom columns of different
types, the "result" might be truncated without "expr" necessarily
being so. This created problems when concatenating the end of the
result to the expr for certain types later.

Avoid passing a NULL to snprintf for integer columns of BASE_NONE
of unexpected value.

Indicate when the custom column has been truncated, since after
commit e449b560c0 this string value is no longer
used to create the filter and is for display only. Also use
the label truncation function so that truncatation is on UTF-8
boundaries.

Fix #17618
2022-12-16 21:08:47 +00:00
João Valverde c2850d7203 C15 CH: Fix UTF-8 string truncation 2022-12-16 19:45:02 +00:00
João Valverde 2de92a94df epan: Add a bounds check to tvb_uncompress_lz7huff() 2022-12-16 19:45:02 +00:00
João Valverde 730981f76a GSM A-bis: Add an assertion to prevent a buffer overflow
==207143==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7f59752e0f00 at pc 0x7f5971cd0737 bp 0x7ffe881b1ef0 sp 0x7ffe881b1ee8
READ of size 4 at 0x7f59752e0f00 thread T0
    #0 0x7f5971cd0736 in setup_rlc_mac_priv epan/dissectors/packet-gsm_abis_pgsl.c:194:8
    #1 0x7f5971ccfc89 in dissect_gprs_data epan/dissectors/packet-gsm_abis_pgsl.c:357:3
    #2 0x7f5971ccf6ea in dissect_abis_pgsl epan/dissectors/packet-gsm_abis_pgsl.c:477:3
    #3 0x7f5974483daa in call_dissector_through_handle epan/packet.c:822:9
    #4 0x7f5974478c05 in call_dissector_work epan/packet.c:920:9
2022-12-16 19:45:02 +00:00
John Thacker 5b96d57b18 protobuf: Do not crash on zero length bytes element
If a field name has been written to the json dumper for
a bytes element (Base64), then a Base64 value must be written
later, even if the value is zero length.

Move the JSON_DUMPER_FLAGS_NO_DEBUG flag to the json_dumper header,
and use it in the protobuf dissector, so that errors in the JSON
dumper state transitions do not abort the application through a
ws_error() call. Use DISSECTOR_ASSERT in that case, since it should
happen only with a dissector bug (as with the zero bytes elements
issue fixed here), not with malformed packets.

Only instantiate the json_dumper and create its output string if
we intend on displaying its output, instead of doing so whenever
we have a message type name.

Fix #18730.
2022-12-16 12:20:30 +00:00
João Valverde ae14849864 Windows: Use SpeexDSP binary package
Remove bundled code and use vcpkg binary library instead.
2022-12-16 11:11:28 +00:00
Vasil Velichkov a4f56e90a6 BER: Fix extension lengths
Previously the length was ignored and if a Sequence contains more then
one extensions (in the ellipsis) then the value of the second was
wrongly added to the value of the previous one.
2022-12-16 08:55:47 +00:00
Chuck Craft 3a61e3f851 SNMP/UDP: SNMP is walking on UDP conversation/stream ID 2022-12-16 08:46:03 +00:00
Gerald Combs b0cf030b30 RTPS: Add offset overflow checking.
Add and use check_offset_addition, which adds an expert item and throws
an exception if we're about to overflow our offset.

Fixes #18737
2022-12-15 16:16:00 -08:00
Roland Knall 18c2f29610 Qt: Limit copy of TrafficDialog to visible items
The traffic dialogs did not respect the filtered elements, when copying
data as CSV, Yaml or JSON

Fixes #18530
Fixes #18637
2022-12-15 16:39:54 +00:00
Roland Knall c1169d587c Qt: Fix Packet Comments shortcut
The shortcut for adding a new packet comment is not available
until the menu has first been shown, or a packet has been selected.

This is a bug, as it is not clear to the user, why the shortcut should
exist in one instance and not in the other. Therefore the shortcut is
always added.

It is not added in the .ui files, as this would trigger a new set of
translations.

Fixes #18673
2022-12-15 15:46:53 +00:00