Commit Graph

85663 Commits

Author SHA1 Message Date
Simon Holesch 8f6a640337 epan: Allow FT_UINT_STRING for proto_tree_add_string()
Since cbd3c447 ("ftypes: Add FT_UINT_STRING to IS_FT_STRING() macro")
proto_tree_add_string() accepts FT_UINT_STRING, but the API check still
fails. Update the API check to reflect that change.
2022-10-31 14:54:39 +00:00
Simon Holesch 76301761bb D-Bus: Add conversation tracking 2022-10-31 14:54:39 +00:00
Eugène Adell e207d65830 TCP: Obvious Retransmission RTO is wrong 2022-10-31 14:49:00 +00:00
Chuck Craft 8de2b2e860 addr_resolv: add support for static hostname entries
Ping #18075
2022-10-31 14:45:56 +00:00
Eugène Adell 2578e2a1fb TCP: last packet of a disordered series is marked as Retransmission 2022-10-31 14:42:14 +00:00
Miroslav Lichvar d892d28481 NTP: Improve handling of poll and precision fields
The poll and precision fields in timing NTP messages are signed
integers.

Different NTP implementations have different minimum and maximum polling
intervals. Some can be configured even with negative values for
sub-second intervals (e.g. down to -7 for 1/128th of a second).

NTP clocks on modern systems and hardware typically have
a sub-microsecond precision.

Print all poll values. Add the raw precision and change the resolution
of the printed value to nanoseconds.
2022-10-31 14:38:50 +00:00
John Thacker b025c45cf3 TLS: Don't assert on zero length handshake fragment
The fragment functions will work with a zero length fragment,
which might happen if a record length is zero in a malformed
packet and a reassembly is in progress. It is not by itself
a fatal error (and could actually work, even though
non-compliant.) There is already a tls.record.length.invalid
expert info added by ssl_check_record_length for this case.

Related to #17890.
2022-10-31 14:36:55 +00:00
Jaap Keuter 69daf2e339 QT: When opening files, filter on All Capture Files immediately 2022-10-31 14:35:49 +00:00
Huang Qiangxiong 89452ef2fc Protobuf: Fix a google.protobuf.Timestamp displaying bug
1. Fix the bug that the timestamp of google.protobuf.Timestamp message
   type does not displayed while pbf_as_hf (Dissect Protobuf fields as
   Wireshark fields) is FALSE.

2. Add the use_utc preference for displaying google.protobuf.Timestamp
  in UTC or local zone format.
2022-10-31 14:24:42 +00:00
Jim Young 11990f258d Qt: Add ProgressFrame to the Expert Information dialog 2022-10-31 14:15:18 +00:00
Chuck Craft 81bd7b1415 Qt: filter_dialog - make Cancel button functional
Works properly when called from Capture/Display filter bookmark.
This change duplicates that code.
2022-10-31 14:14:00 +00:00
j.novak@netsystem.cz dd5f86c674 Capture options dialog: Fix start of capture by double click 2022-10-31 14:07:49 +00:00
Maurice Lam 460d4c85c2 Allow custom dissectors for BLE advertisement service UUIDs
Add a dissector table "btcommon.eir_ad.entry.uuid_16", which behaves the same
way as the hard-coded GAEN (Google/Apple Exposure Notification) dissector does
today -- the table key is the 16-bit UUID
(https://www.bluetooth.com/specifications/assigned-numbers/), and the dissector
is given the corresponding service data.
2022-10-31 13:21:58 +00:00
Adrian Granados 420ec1511d extcap: fix missing control frames from wifidump capture
Normally, 'control' and 'otherbss' flags are set when
using monitor mode, but certain Wi-Fi drivers (e.g. MT7921)
need to explicitly have these flags set in order to capture
control frames.
2022-10-31 13:20:06 +00:00
Michael Metzinger 3da9603b9e AMQP: call sub dissector via UAT 2022-10-31 13:18:31 +00:00
David Perry c8a4b8d611 packet-json: move away from `wmem_packet_scope()` 2022-10-31 13:14:40 +00:00
Rubin Gerritsen 887fc09100 Bluetooth: Fix detection of colliding peer proc
A device is not allowed to start a new control procedure if it
has already responded to a peer procedure.

The detection of a response being present did not take into account
that some procedures do not have a response.

Signed-off-by: Rubin Gerritsen <rubin.gerritsen@nordicsemi.no>
2022-10-31 13:10:53 +00:00
ismaelrti 96de1ce181 RTPS: Clang warnings cleaned in RTPS protocol
- Binary integer literals are a GNU extension warning cleaned
- core.NullDereference cleaned
2022-10-31 13:09:20 +00:00
Alexis La Goutte 71a21ca1ca thrift: fix conflict 2022-10-31 13:07:58 +00:00
Chuck Craft 00179b710c NSIS: add Extcap group; tidy up other groups and WSUG
Partial fix for https://ask.wireshark.org/question/29063/
Event Tracing for Windows ETW file reader
Future work: add user friendly Extcap examples to WSUG and wiki
2022-10-31 12:14:34 +00:00
Vadim Yanitskiy 9de9a7900f GSM A RR: de_rr_meas_res(): also show padding as a tree item 2022-10-31 12:12:24 +00:00
Vadim Yanitskiy 3829e598a5 GSM A RR: fix de_rr_meas_res(): properly return consumed length
According to 3GPP TS 44.018 section 10.5.2.20, the Measurement Results
is a type 3 (TV) information element with 17 (1 + 16) octets length.

The respective dissection function is called as follows:

  ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_MEAS_RES, ...)
    elem_v(tvb, tree, pinfo, GSM_A_PDU_TYPE_RR, DE_RR_MEAS_RES, ...)
      de_rr_meas_res(tvb, subtree, pinfo, curr_offset, -1, ...)
                                                      ^^^
                                                      len

Note that elem_v() passes -1 as the len argument to de_rr_meas_res().
The later returns -1 casted to guint, and this is indeed wrong.
Moreover, the 'len' argument is marked as unused (_U_).

This bug creates a false impression that the Measurement Results IE
occupies more octets than it actually does when it's encapsulated
into some other protocol, e.g. A-bis/RSL.

Let's return value 16, which is known from the specs.
2022-10-31 12:12:24 +00:00
Vadim Yanitskiy 4445b4df2f GSM A RR: de_rr_meas_res(): remove unused curr_offset variable 2022-10-31 12:12:24 +00:00
Vadim Yanitskiy f478a2db5e GSM A RR: make gsm_rr[_csn]_padding_bits() accept padding pattern
This way we can also use this function for checking padding in
the Measurement Results IE, which uses 0x00 as padding pattern.

Drop the '_csn' part because it's not CSN.1 specific anymore.
2022-10-31 12:12:24 +00:00
Roland Knall c59804f25f Qt: Prevent dangling object for profile dialog
When running the profiles dialog from the main status bar,
some objects appear to be not cleaned up properly with Qt 6.
This will circumvent this, by creating an object for the
dialog and cleaning it on closing.

Fixes #18525
2022-10-31 10:10:42 +00:00
Gerald Combs a42d245c2b [Automatic update for 2022-10-30]
Update manuf, services enterprise numbers, translations, and other items.
2022-10-31 10:05:45 +00:00
João Valverde 179ecc114c PVFS: Fixup commit a9535243c5 2022-10-30 22:56:44 +00:00
João Valverde 6fae1c6a1c PVFS: Fix UTF-8 string truncation 2022-10-30 22:16:02 +00:00
João Valverde a9535243c5 PVFS: Validate raw data encoding as ASCII
Fixes #18572.
2022-10-30 22:05:54 +00:00
João Valverde a1e32e67ea Revert "IPP: NULL is not a valid use here"
This reverts commit 58d545d5e6.
2022-10-30 19:53:30 +00:00
Alexis La Goutte 3baf3216ac ieee802154: Update 6top subie to final number
Close: #18539
2022-10-30 17:24:19 +00:00
Uli Heilmeier 8b34bfdb59 CFDP: Add some length fields
Related to #18495
2022-10-30 17:19:41 +00:00
Roland Knall ea41d58d47 Qt: TrafficTree - Add headers to CSV/YAML export
Exporting did not include the header information if exported via
CSV or YAML in the new dialogs. Adding those back
2022-10-30 17:13:44 +00:00
Roland Knall b4a738e069 Qt: Fix unexpected bytes suffix
Packets obviously have not a "bytes" suffix, therefore
it should be removed.

Fixes #18229
2022-10-30 16:37:11 +00:00
Roland Knall ea60fdcb31 TrafficTree: Fix wrong element choosen in context menu
The context menu falsely assigns the proxied index to the context menu
entries, therefore always selecting the wrong model index for the
resulting functions.

Fixes #18xxx
2022-10-30 10:07:13 +00:00
Alexis La Goutte f8efd93fc7 LLT(veritas): Dissect new type of packet
Cluster use now 2 bytes length
follow with Destination Node Id and Source Node Id

Close: #18433
2022-10-30 09:56:58 +00:00
Roland Knall 58d545d5e6 IPP: NULL is not a valid use here
NULL was used as initial string, but this is leading to a seg-fault
on Apple Silocon hardware.
2022-10-30 09:48:29 +00:00
Alexis La Goutte 0b9edb2299 evs: fix typo for evs_d_bits_t0_values
should be { 0x6, "NB 24.4 kbps" } instead of the current { 0x6, "Not used" }
According to Table A.3 of 3gpp TS 26445

Reported by Massimiliano Agnoletti

Close: #18550
2022-10-30 09:37:49 +00:00
João Valverde 9504b54bc1 unicode-utils: Add a null check to UTF-8 validation
Fixes #18563.
2022-10-30 08:27:13 +00:00
John Thacker 4851b4ceb5 column-utils: Check for UTF-8 truncation
Functions that copy into a fixed sized buffer, like
vnsprintf and g_strlcat can truncate UTF-8 strings in
the middle of a character. Check for that with vnsprintf,
and replace some g_strlcat calls in the column utils with
ws_label_strcpy.

Fix #18554
2022-10-29 07:59:13 -04:00
Guy Harris ea9af624cd epan: eliminate timezone buffer.
Instead of formatting into a fixed-length buffer a string that's empty
if the timezone name is not to be shown and is a space followed by the
timezone name if it is to be shown, just pass to snprint_abs_time_secs()
both a separator string and a timezone name string, with both being
empty strings if the timezone name is not to be shown, and with the
first being " " and the second being the timezone name if the timezone
name is to be shown, with the separator printed before the timezone
name.

That way, we don't have to worry about how big the buffer needs to be.
2022-10-28 14:15:47 -07:00
Gerald Combs 0ae3315f53 Qt: Make sure our font setting is backward compatible.
Qt5's QFont::fromString() isn't compatible with Qt6's QFont::toString().
If we were built with Qt5, don't try to process a font preference that
was created by Qt6.

Fixes #18553
2022-10-27 10:46:06 -07:00
Alexis La Goutte 3f194ad187 gitlab-ci: move check tfs and typed_item_call to end of test
it will be more easy to see on the log
2022-10-28 18:09:38 +00:00
Chuck Craft a4f1e5c6fe NSIS: uninstall etwdump; extcap binaries not in program directory
Could not find evidence that extcap binaries were ever in
program folder so should not affect uninstall of old versions.
2022-10-28 14:59:49 +00:00
João Valverde 267954cda2 epan: Increase timezone buffer size
Some internationalized strings can exceed this size and become
truncated with encoding errors.

Fixes #18562.
2022-10-28 14:46:13 +01:00
Martin Mathieson b1bd41a1ae Metamako: make a tfs static 2022-10-28 11:54:29 +00:00
Martin Mathieson 0b83d51e75 E2AP: Add a comment for constant value taken from later spec 2022-10-28 10:41:06 +01:00
Guy Harris 083b07d88d Fix profile import/export menu items.
1) In English-language menus, menu item text should use title case, with
most words capitalized.  (I leave it to the Transifexors to capitalize
appropriately for other languages.)

2) Menu items that pop up dialogs should have "..." at the end of the
text.
2022-10-28 01:13:43 -07:00
Guy Harris 86af1d6707 e2ap: fix a compiler warning due to a strange maxofRICrequestID value.
The minimum and maximum length arguments to
dissect_per_constrained_set_of() are currently both ints.

According to O-RAN.WG3.E2AP-v02.03, section 9.3.7 "Constant
definitions", maxofRICrequestID is 1024, not 2^32-1; however, we were
specifying it as 2^32-1 (4294967295).

2^32-1 won't fit into an int, and Apple clang version 14.0.0
(clang-1400.0.29.102) warns about that:

    ./asn1/e2ap/e2ap.cnf:647:54: error: implicit conversion from 'long' to 'int' changes value from 4294967295 to -1 [-Werror,-Wconstant-conversion]
                                                      1, maxofRICrequestID, FALSE);
                                                         ^~~~~~~~~~~~~~~~~
    ./asn1/e2ap/packet-e2ap-val.h:7:40: note: expanded from macro 'maxofRICrequestID'
    #define maxofRICrequestID              4294967295
                                           ^~~~~~~~~~

The handling of MIN and MAX should be done with separate "minimum is
MIN" and "maximum is MAX" flags, and we might want either to have
asn2wrs.py reject attempts to have constraints with integer minimum and
maximum values outside the range [-2^31, 2^31-1], make the types for
sizes unsigned, or allow 64-bit constraints (and still limit the
constraint values, so we don't have to dive down a bignum rathole).

But, for now, we just change maxofRICrequestID to match what the 2022-10
version of the spec, 2.03, appears to say.

(I can't find the 2.01 version online, so I don't know whether it was
1024 in 2.01, or if it was changed in 2.02 or 2.03.)
2022-10-27 23:57:51 -07:00
John Thacker 4c3ebe73d3 epan: ensure that the result of ws_label_strcpy is terminated
Unless there is no available space, ensure that the label_str
passed into ws_label_strcpy is null terminated, in the cases
where the string to copy is the empty string, or begins with
invalid UTF-8.

Fix #18560. Fix #18551.
2022-10-27 18:37:17 -04:00