Commit Graph

88494 Commits

Author SHA1 Message Date
Gerald Combs e08da591ee Build: 4.1.0
[skip ci]
2023-08-25 10:09:18 -07:00
João Valverde 66a4fa24b6 Qt: Make Lua console output read-only 2023-08-25 15:15:45 +01:00
João Valverde 50e1e9abd0 wslua: Print syntax errors during compilation 2023-08-25 15:15:45 +01:00
Alexis La Goutte a623da0050 DHCP: fix indent 2023-08-25 14:09:52 +00:00
João Valverde cd4bf3b477 Fix Debian packaging and remove stale references to "init.lua" 2023-08-25 13:52:47 +00:00
Guy Harris 4e3e55f9f1 pgm: fix misspelling of Luigi Rizzo's name. [skip ci] 2023-08-25 01:19:37 -07:00
Anders Broman d313c9e13e DoIP: Allow protocol version=0xff
From MarioKlebsch:
Don't complain on DoIP protocol version=0xff for DoIP vehicle indentification requests with VIN
Copy of MR10137
2023-08-25 07:09:50 +00:00
Anders Broman 41d8d372a3 DHCP: Add new CableLabs vendor class IDs
From Colin McInnes:
Closes: #18964

Added VC IDs (Option 60) for:
RPD, RMD, eDOCSIS, sROUTER, DEMARC and TRIF

Used by CableLabs Vendor Info Heuristic for VSE (Option 43)
2023-08-25 06:53:08 +00:00
David Fort 4621c5b7ac Fixed warning in packet-rdp.c 2023-08-25 06:52:25 +00:00
David Fort dfa07b28cc rdp: parse RDSTLS packets
Depending on the negotiated security type, we can have RDSTLS packets at the
beginning of the conversation. This patch adds support for these packets and
adjust the heuristic accordingly.
2023-08-25 06:52:25 +00:00
Guy Harris 84f1bb06f9 pgm: support both 0x0b and 0x0d as packet types for a PGMCC ACK packet.
See the comment for the full story.
2023-08-25 05:34:55 +00:00
WFA-achuang 69bfaccbad ieee80211: Update description of two Multi-Link fields 2023-08-25 05:29:31 +00:00
WFA-achuang 35e77d059e ieee80211: Fix build error 2023-08-25 05:29:31 +00:00
WFA-achuang 8cd16bec05 ieee80211: Add EHT Action and Protected EHT Action frames dissector 2023-08-25 05:29:31 +00:00
Guy Harris 45fc52bad9 dcerpc: just use structure assignment rather than memcpy. 2023-08-24 16:08:32 -07:00
Gerald Combs a3194d61f8 Qt: Delay deleting the interface frame context menu
Delete the interface frame context menu using QMenu::deleteLater,
otherwise we can run into QTBUG-106718.

Fixes #19299
2023-08-24 12:52:57 -07:00
Joakim Karlsson da809de404 CMake: improve finding Gcrypt library 2023-08-24 16:44:15 +00:00
João Valverde 90a7d0704b Qt: Fix Manuf dialog memory leak
Do not leak the QActions.
2023-08-24 17:20:03 +01:00
João Valverde c3283d9d17 manuf: Fix unaligned memory access
Use the correct struct pointer cast.
2023-08-24 15:23:46 +01:00
Anders Broman a1e258177c BLF: Add interface name and hwchannel to ethernet status objects
ping #19269
2023-08-24 11:47:43 +02:00
John Thacker 4468d9ca2b Qt: Plug leak when removing row in Decode As
Don't just remove the item, delete it
2023-08-24 07:48:05 +00:00
Moshe Kaplan 13fb276a18 Improve proto_tree link to display filter reference
This commit makes three changes to how
proto_tree links to the display filter reference page
located at https://www.wireshark.org/docs/dfref/ :

1) Previously, proto_tree tooltips did not match
the URL. For example, the tooltip would have:
https://www.wireshark.org/docs/dfref/t/tcp.seq_raw
but would link to:
https://www.wireshark.org/docs/dfref/t/tcp
, which would then 302 redirect to:
 https://www.wireshark.org/docs/dfref/t/tcp.html

This commit fixes how the tooltip is generated
so the URL and tooltip are the same.

2) The URL now directly links to the page
ending with '.html', avoiding the 302 redirect

3) As of #19222, the display filter reference page
contains anchor tags for each field. This commit
also improves the proto_tree URLs by directly
linking to the anchor tag for the particular
field being referenced, instead of the
less-specific page as a whole.
2023-08-24 05:40:45 +00:00
David Perry 3a81633495 Hide expert info of packet comments in packet tree 2023-08-24 05:38:12 +00:00
Anders Broman aaa989b267 BLF: Use correct flags mask. 2023-08-24 05:26:18 +00:00
Gerald Combs 4e6051ff39 Update the release notes 2023-08-23 16:27:10 -07:00
Guy Harris 37eba9f0b3 pgm: don't fetch field values before you need them.
That way, we can do as much dissection as possible before hitting either
the snapshot length or a too-short packet length.

Instead of fetching everything in advance and filling in the text of the
top-level protocol tree entry and the Info column all at once, fetch
them at the same time out add them to the protocol tree, and append to
those two items as fields become available.
2023-08-23 21:40:23 +00:00
João Valverde 845c1bdc6e Release notes: Fixup some entries 2023-08-23 21:32:19 +00:00
João Valverde 4d7ab510db Qt (SSL Keylog): Add reset button to restore preferences
Add a reset button to restore the QLineEdit to the current
preference value.
2023-08-23 21:57:02 +01:00
João Valverde 68a00c0a21 Qt (SSL Keylog): Do not erase user setting if cancelling
Do not clear QLineEdit if user cancels the file chooser dialog.
2023-08-23 21:05:14 +01:00
João Valverde e930e58691 Qt (SSL Keylog): Do not close when "launch" is pressed
Allow the user to go back and save the preferences after they
are validated.
2023-08-23 21:04:39 +01:00
João Valverde d745a9e128 NSIS: Uninstall no-longer-used Lua files 2023-08-23 20:28:43 +01:00
João Valverde 9fb85a847d Lua: Load init.lua from plugins directory
Instead of having a global init.lua in datafile_dir that may
contain library code, load the init.lua script from the plugins
directories, similar to other Lua scripts, but guaranteed to
be the first one loaded.

This is consistent with our practice and avoids overwriting the
customizable share/wireshark/init.lua with each instalation or
upgrade.

It also should allow using package.path correctly (which does
not include the configuration directory).

The init.lua in the configuration directory is still loaded for
backward compatibility. It generates a warning in the console.
2023-08-23 20:28:43 +01:00
Petr Špaček d1f08edcba DNS: Implement support for URI record 2023-08-23 14:22:27 +00:00
João Valverde 97213a58e7 Lua: Remove package.prepend_path
This function is unnecessary and too cumbersome, some would say hacky
(including me), for our utility library.
2023-08-23 13:00:42 +00:00
Martin Kaiser c5e00897e9 mdb: use DLT_MDB for the MDB dissector
DLT_MDB (300) has been assigned for the MDB protocol.

Register the DLT with wiretap as WTAP_ENCAP_MDB. Link the mdb dissector
to WTAP_ENCAP_MDB.
2023-08-23 12:50:03 +00:00
Niels Widger 4b9d0d5c10 sharkd: Add "capture_types" and "encap_types" to "info" method
Add two new fields `capture_types` and `encap_types` to the output of
`sharkd`'s `info` method which replicate the info displayed by
`editcap -F` and `editcap -T`, respectively.
2023-08-23 11:58:21 +00:00
Alexis La Goutte 7e7cd29372 kakfa: fix sync_group_request missing version check for instance_id
Close #19290
2023-08-23 11:06:50 +00:00
AndersBroman 7efedd6d88 PCAP-NG File reader: Add ordinal block number 2023-08-23 10:33:57 +00:00
João Valverde e5c198a2e5 Qt: Add Browser SSL keylog dialog
Adds a new menu under Tools to launch a browser with the
SSLKEYLOGFILE environment variable set.

Adds a new GUI preference to store the browser path specific
to the SSL Keylog dialog (which may be different from the user's
preferred system browser).
2023-08-23 09:22:40 +00:00
João Valverde ac63850f40 Remove "browser_sslkeylog.lua"
Remove Lua script in preparation of moving this to the Qt UI.
2023-08-23 09:22:40 +00:00
Pascal Quantin eca17bd512 NAS 5GS: handle unexpected padding in delete existing QoS rule operation
Let's add an expert info when having unused byte in the QoS rule and
increase offset accordingly

Closes #19292
2023-08-23 09:20:43 +00:00
Anders Broman 61c3363330 Camel: Fix TimeAndTimezone presentation
ping #18485
2023-08-23 09:13:35 +00:00
Niels Widger 09ebddaa7f sharkd: Enable synchronous name resolution, including MaxMind GeoIP
Enable synchronous name resolution in `sharkd` via a call to
`set_resolution_synchrony` in `sharkd_session_main`.  Work for
supporting synchronous calls to `mmdb_resolve` for MaxMind GeoIP seems
to have been done and is also enabled by the
`set_resolution_synchrony` call.

Fix a bug that was using `uat_clear` in `sharkd`'s `main` function to
stop an existing `mmdb_resolve` process.  Using `uat_clear` also wipes
out any custom configuration set by the `maxmind_db_paths` UAT, which
we don't want.  By instead calling the UAT's `reset_cb` callback, we
can stop the old `mmdb_resolve` process without erasing the UAT in the
child `sharkd` process.

See 0542c5b7 for an explanation as to why performing synchronous name
resolution in `tshark` is important.  The same reasoning applies for
`sharkd` as well.
2023-08-22 23:49:26 +00:00
Martin Mathieson 7a0b436f63 Do some more value_string checks 2023-08-22 22:56:32 +00:00
Peter Wu a6914ba92f addr_resolv: fix external reverse IPv6 lookup in tshark
Pass a pointer to the IPv6 address instead of a pointer to the pointer.

Fixes #19294

Fixes: v2.9.0rc0-666-g0542c5b700 ("Do IP address resolution synchronously before printing in TShark.")
2023-08-22 22:58:24 +02:00
Tomasz Moń 58f5fa65b5
USBLL: Fix control transfer reassembly with data from host
Increase the request transfer length by 8 to accommodate for merged
in SETUP data. This makes the dissector correctly reassemble control
transfers where there is less than 9 bytes in the last data chunk.
2023-08-22 20:18:16 +02:00
João Valverde 81e2e8da6a wslua: Initialize useful constants in C 2023-08-22 15:17:08 +00:00
João Valverde a839e454bd wslua: Add deprecated initializations in C 2023-08-22 15:17:08 +00:00
João Valverde 6c48170819 Fix opening the endpoint GeoIP map
Move the ipmap.html file back to datafile_dir. It was mistakenly
moved as a documentation file in 06519be205.
2023-08-22 15:12:47 +00:00
Niels Widger 77f0516b07 sharkd: Fix incorrect "stop_time" field in "voip-calls" tap
Commit a4c6a2f1 added a `voip-calls` tap to `sharkd`, but a copy-paste
bug in `sharkd_session_process_tap_voip_calls_cb` caused each call's
`stop_time` field to actually be the call's start time.  This commit
fixes this bug and updates the `test_sharkd_req_tap_voip_calls` unit
test accordingly.
2023-08-22 09:47:17 -04:00