Commit Graph

86854 Commits

Author SHA1 Message Date
Gerald Combs ffbfc1d454 Resources: Remove absolute paths from SVGs
Fixes #17429.
2023-03-05 14:17:42 -08:00
John Thacker a5bdae177e docs: Update Windows temporary directory location in manpages
Update the example typical location for the temporary directory
on Windows in the manpages to something newer than where Windows NT
or Windows 98 might put it.

Fix #18463
2023-03-05 17:52:08 +00:00
Gerald Combs f6703b9b36 [Automatic update for 2023-03-05]
Update manuf, services enterprise numbers, translations, and other items.

services failed.
2023-03-05 16:42:23 +00:00
Dr. Lars Völker 375fa02c98 UDS: Show unparsed bytes
This patch cleans up the offset and length handling to allow showing
unparsed bytes.
2023-03-05 14:44:43 +00:00
Martin Mathieson 1377421925 ORAN FH CUS: ext11 bundles can be configured using ext6 2023-03-05 12:53:52 +00:00
Guy Harris 3854770f15 sharkd: don't report an error if there is no error.
If dfilter_compile() succeeds, but the filter contains deprecated
tokens, don't report an error from dfilter_compile() as a warning, as
there *is* no error from dfilter_compile().  Instead, report "Filter
contains deprecated tokens".  (Feel free to improve the error text.)

Fixes the crash, at least, in #18886.
2023-03-05 00:05:26 -08:00
John Thacker 736ed83000 docs: Document wmem in Developer's Guide
Add information from the Wiki Development/Tips page and from
README.wmem to the Developer's Guide.

Also fix a small typo in README.wmem

Fix #17126
2023-03-05 02:23:32 +00:00
Dr. Lars Völker f92d0ded8f TECMP: cleanup endianness for 1 Byte fields 2023-03-05 02:22:13 +00:00
Zach Chadwick ac28130c76 Sharkd: show RTP ssrc as hex and improve errors
The token format used by rtp-analyse and rtp-download expect the SSRC
field to be a hex string parsable by `ws_hexstrtou32()` as seen in
sharkd_session.c:760. The output from tap:rtp-streams was displaying
it as an unsigned integer.

For consistency, this field is now displayed as a hex string in the
output.

If the call to download an RTP stream did not match any payloads, Sharkd
would not return any information at all.

This now returns an error message indicating that there is no RTP data
available.

Adds three new selftests and sample pcap.
2023-03-04 22:54:55 +00:00
John Thacker c7823a14ec VNC: Fix accidental offset increment in RRE
This was accidentally added in f424256889
and is clearly incorrect: https://www.rfc-editor.org/rfc/rfc6143#section-7.7.3

Fix #18883
2023-03-04 08:38:28 -05:00
John Thacker 69d82b44ef Follow: Remove some unused code 2023-03-04 02:27:08 +00:00
John Thacker c9c5617aed UDS: Use wmem to create a string
Related to #18878
2023-03-03 22:58:12 +00:00
Gerald Combs ccf01edf04 macOS: Update the ChmodBPF postinstall script
`launchctl load` and `launchctl unload` are deprecated. Use `launchctl
bootstrap system` and `launchctl bootout system` instead.
2023-03-03 14:07:51 -08:00
Dr. Lars Völker 5bbaf9ef35 UDS: fixing typos indification and sub-function 2023-03-03 15:15:47 +00:00
John Thacker e1b85eacd4 epan: Do not try to add a bits item with negative bit length
A negative number of bits in a bit item isn't allowed. Treat it
as a very large number (i.e., as unsigned), and throw a
ReportedBoundsError. This was already happening in most cases,
but not in the edge case of a number of bits between -1 and -7
(which was being rounded up to 0 octets and passed our length checks.)

Fix #18877
2023-03-03 01:52:31 +00:00
Alexis La Goutte fc15fe3b4a DRDA: Add SQL Statement Length
Add missing length to SQL Statement

Close: 18876
2023-03-02 23:47:05 +00:00
Gerald Combs ceb5a2d55b Tools: Fix the docinfo paths in make-version.py
[skip ci]
2023-03-02 14:26:48 -08:00
John Thacker 224d8dba97 Qt: Sequence diagram comments are not numbers
The comments in the flow diagrams are conceptually an extra y Axis
ticker label on the right. Tell QCustomPlot that we don't want to
render things that look like sufficiently large numbers in scientific
notation.

Fix #18879
2023-03-02 17:40:17 +00:00
John Thacker 36395517d3 Qt: Don't double escape sequence diagram comments
In the flow diagram, the hint is an ElidedLabel, which now
escapes HTML: d9adb6f712

So don't escape the comment before passing it to ElidedLabel, or
the double-escaping will cause quotes, angle brackets, etc. to
look like HTML entities.
2023-03-02 14:48:23 +00:00
John Thacker 0b6e641d3c help: WLANTraffic section moved WSUG chapters
The documentation for WLAN Traffic menu item in the Wireless menu
was moved from the Statistics Chapter to the Wireless Chapter of
the WSUG. Update the URL in its help button accordingly.

Part of #17982
2023-03-02 14:43:07 +00:00
John Thacker c6c9aae152 Qt: rtpstream_id memleak
Free fwd_id and rev_id, not just their members, if they aren't used.
Coverity CID 1512428
2023-03-02 08:55:28 -05:00
John Thacker 4c94673401 docs: WSUG Change name of Manage Interfaces Section to match help
The WSUG has ChManageInterfacesSection, but the help button in
ui/help_url.c tries to open ChCapManageInterfacesSection.

The latter appears to be correct, as every other section and other
anchor in the Capture Chapter beings with "ChCap".

Part of #17982
2023-03-01 21:40:17 -05:00
John Thacker 0d23b6692f Qt: RtpStreamDialog leak
In tapReset, the select rtpstread_id is copied member by member
by QList append(), so don't allocate pointers on the heap that
will be leaked. (Coverity 1477952)
2023-03-01 21:10:42 -05:00
John Thacker 44a38f0ad4 Qt: RTP Analysis Dialog leaks
Delete the tab name. Free the rtpstream_info_calc data after use.
2023-03-01 07:25:24 -05:00
John Thacker c9fee454e9 Qt: More RTP Leaks
Parent RtpAudioGraph with its QCustomPlot
2023-03-01 07:15:36 -05:00
Zach Chadwick d98f6b16ef Sharkd: Return error message on load if err!=0
Fixes a bug when the return value from load_cap_file() is nonzero.
No response is currently returned causing the client to hang. A non-zero
error code can happen for a variety of reasons, one of which is when the
PCAP is truncated.

An error message from cfile_read_failure_message() is displayed on the
console, but no data was returned to the RPC client.

This adds a call to wtap_strerrror() to look up a human consumable error
message for the specific error code returned during wtap_read().

Adds new self-test to suite_sharkd.py
2023-03-01 11:33:02 +00:00
Alexis La Goutte 1236c07a03 file-pcapng-darwin: fix Dead Store found by Clang Analyzer 2023-03-01 09:45:10 +00:00
John Thacker e51fea444a RTP: Fix some memleaks
In the tap, the stream ID allocated on the stack just needs a shallow
copy of the addresses. It only needs a deep copy when being added as a
new entry to the list.

Restore the memleak fix from e76ca2d3cb
that was accidentally removed by 1b4b5e59e9
2023-02-28 20:22:11 -05:00
John Thacker 82da7faee6 epan: Expand on comment regarding g_atomic_pointer
Related to #17753
2023-02-28 18:15:22 -05:00
John Thacker 18572b4336 Revert "Reset the "current conversation elements" after each dissector call"
We do want to reset these (and probably most other elements of the
packet_info struct) when starting to process a new PDU at the same
protocol level as the most recently processed dissector. However,
find_conversation_pinfo() is used in the GUI and elsewhere to get
the final value of conversation and address information, so we don't
want to reset the values after the last PDU.

Revert this until we can find a better general way of handling this.
(!8013 handles the specific PPP case for #18278.) Perhaps eventually
there should be some separation between addresses and conversation
information used for the next dissector called, and the value for
the packet used after the packet is fully dissected (by the GUI, etc.)

This reverts commit 80e287f82c.

Fix #18781.
2023-02-28 13:17:15 +00:00
Stig Bjørlykke d64114f48e icmpv6: Show ND lifetime as time string
Show Neighbor Discovery option lifetime values as time string.
2023-02-28 08:56:32 +01:00
Martin Mathieson 02f5fe0fe1 RTPS: make a function static 2023-02-28 06:38:05 +00:00
Dr. Lars Völker ef0a07520e UDS: cleanup structure
Remove ETTs that do not match the standard.
2023-02-28 03:55:43 +00:00
John Thacker 4196076418 dfilter: Use ws_debug
Use ws_debug instead of ws_log(WS_LOG_DOMAIN, LOG_LEVEL_DEBUG)
in dfilter_compile_real, so that the logging is optimized away in a
Release build.
2023-02-28 02:36:38 +00:00
Joris Peeraer 31bb4ff135 enterprises: recognize "previously" as synonym for "formerly"
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-27 17:51:24 +00:00
Gerald Combs eb03246c6b [Automatic update for 2023-02-26]
Update manuf, services enterprise numbers, translations, and other items.
2023-02-27 17:07:14 +00:00
John Thacker c998afd041 ppp: Reset conversation elements between each frame in raw HDLC stream
When breaking up a raw HDLC byte stream into frames, each frame
should be treated separately, much like it were a new frame in
an ordinary capture file. That means that many of the elements
in the big packet_info struct should be reset for each new frame.

In particular, the "most recent conversation" information stored
in conv_elements and conv_addr_port_endpoints should be reset.

This is not that different to how multiple PDUs should be handled
in some other protocols (DVB-S2, TCP, etc.). When a frame contains
protocol layers A, B, then C, we should distinguish between "C is
contained within B within A" and "C and B are consecutive PDUs both
contained within A."

Unfotunately, it's difficult to handle this in a general way, as we
don't know when calling the dissector for a PDU whether another PDU
will follow or not. If something is the last PDU, we don't want to
reset the last addresses/ports/conversation, so that we can access
them for display purposes, conversation filters, the related packets
line, follow stream, etc., many of which use find_conversation_pinfo

Fix #18278.
2023-02-27 12:13:16 +00:00
John Thacker 4fa5e0f3c9 Qt: Fix some leaks in RTP Analysis windows
Parent the QActions that are created for Analyze and Play
buttons for each RTP window, so that they are deleted when
the button is deleted.
2023-02-27 01:56:30 +00:00
Dr. Lars Völker 6f8eef82b4 UDS: fix WDBI assert 2023-02-26 17:08:37 +01:00
John Thacker e7ed03d74f Qt: Remove unused member
This _GStringChunk is not initialized or used anywhere in
PacketListModel (and has not been for quite some time, since
62ca0a609b)
2023-02-26 08:39:16 -05:00
Dr. Lars Völker 406c8e8afd UDS: Fixing dissector bugs (tvb_bytes_to_str_punct with 0 length)
This patch fixes 3 bugs where tvb_bytes_to_str_punct length was not
checked.

Fixes: #18865
2023-02-26 10:37:42 +00:00
Gerald Combs 90f0814046 [Automatic update for 2023-02-19]
Update manuf, services enterprise numbers, translations, and other items.

services failed.
2023-02-26 09:54:36 +00:00
Martin Mathieson 29a39c1e6e ORAN FH CUS: Add section extension type 2 2023-02-26 09:21:13 +00:00
John Thacker 8834c8e9de epan: Determine if an active color filter has a hfid/proto
Add functions to test if a compiled dfilter considers an hfid
or a protocol id interesting. Use those to define functions to
test if any enabled color filter considers an hfid or a protocol
interesting.
2023-02-26 02:41:19 +00:00
John Thacker 641434ff81 Qt: Fix leak in Coloring Rules Dialog
We don't need the cloned color_filter_t after the ColoringRuleItem
has been created (the char* strings are copied into QStrings), so
free it.
2023-02-25 18:50:56 +00:00
John Thacker b1460bff69 NR-RRC: Fix assign instead of comparison
This is mean to use the value to select the correct field length.
Fix Coverity CID 1517107, 1517124, 1517136, 1517164, 1517184, 1517195.
2023-02-25 17:52:01 +00:00
John Thacker 9eeffdc5eb Fix item length in ASN.1 templates too
Some of the item length changes in !9655 needed to be done with
the ASN.1 templates so that they don't get lost on ASN.1 regeneration.

Fixup ed8ee831fd
2023-02-25 10:48:14 -05:00
Martin Mathieson 93ec018c09 ORAN FH CUS: add section extensions 16, 17, 18, 21 2023-02-25 14:46:01 +00:00
David Perry 1f59c18769 Change some `wmem_packet_scope()` to `pinfo->pool`
As requested [here][1] by @eapache, help with removing calls to
`wmem_packet_scope()` in favour of references to `pinfo->pool`.

* Plugins chosen semi-randomly.
* When a calling function already has a `pinfo` argument, use that.
    * Remove `_U_` from its signature if it was there.
* If a function seems narrowly focused on getting and (possibly)
  returning memory, change the function signature to take a
  `wmem_allocator_t *`.
* If it seems more focused on packet-based operations, pass in a
  `packet_info *` instead and use `pinfo->pool` within.
    * If there are several functions defined with the same call
      signature, add `pinfo _U_` to the argument list of similar
      functions in order to maintain clarity/symmetry.

[1]: https://www.wireshark.org/lists/wireshark-dev/202107/msg00052.html
2023-02-25 05:32:48 +00:00
Zach Chadwick 39aa3cb58a Sharkd: Fix types of prev_frame and ref_frame
The 'frame' command accepts both 'prev_frame' and 'ref_frame' as arguments.
Both should be defined as a UINTEGER rather than a BOOL.
2023-02-25 03:28:18 +00:00