Commit Graph

89893 Commits

Author SHA1 Message Date
John Thacker 63840f1cfb extcap: Fix Coverity 1559270
Check to see if the return pointer is non NULL
2023-12-16 11:06:36 -05:00
John Thacker 636f0a989a capture: Add return messages to the if_capabilities_t struct
Add the return messages to the if_capabilities_t struct. We
are already serializing them in the JSON. This is necessary
if we want to query the capabilities of multiple interfaces
at once and determine which interfaces had failures and what
each reason was.

Keep the behavior of capture_get_if_capabilities, which
retrieves a single interface, the same; it still returns NULL
on failure and the messages separately.

Related to #15082
2023-12-15 21:55:02 -05:00
John Thacker c655b8e103 capture_opts: Free the if_list on a bad adapter index
Fix a leak
2023-12-15 20:46:01 -05:00
João Valverde 26e3979971 Add plugin extension to wireshark.pc
[skip ci]
2023-12-15 14:36:09 +00:00
João Valverde e1f599cf51 Debian: Move codec plugins to the proper place
Codec plugins are Wireshark plugins, not "libwireshark".
2023-12-15 13:14:06 +00:00
João Valverde 38ff71b5ef Try to fix Debian package 2023-12-15 13:13:25 +00:00
Alexis La Goutte 03d59b1458 DNS: fix warning 2023-12-15 08:42:28 +00:00
Jaap Keuter ed0a777776 RTCP: extend list of transport layer feedback formats 2023-12-15 08:40:58 +00:00
Alexis La Goutte d43c1754b6 RDPUDP: fix conflict about incompatible types
epan/proto.c:9468 -- proto_register_field_init(): 'rdpudp.flags.ack' exists multiple times with incompatible types: FT_UINT16 and FT_BOOLEAN
epan/proto.c:9468 -- proto_register_field_init(): 'rdpudp.flags.data' exists multiple times with incompatible types: FT_UINT16 and FT_BOOLEAN
2023-12-15 08:40:15 +00:00
Alexis La Goutte 974e09b0c6 scsi-sbc: fix checkAPI warning about shadow variable (index) 2023-12-15 08:39:13 +00:00
Alexis La Goutte 34edc1a3be bitcoin: fix checkAPI warning about shadow variable (index) 2023-12-15 08:39:13 +00:00
Yuya Kusakabe f10ca976ab
BGP: Add Source Address to Type 1 Session Transformed Route
See https://www.ietf.org/archive/id/draft-mpmz-bess-mup-safi-03.html#section-3.1.3.1
2023-12-15 15:56:47 +09:00
João Valverde 7c38369bb6 Try to fix macOS packaging 2023-12-15 00:25:24 +00:00
Gerald Combs ba2f53ef11 Windows: Upgrade libpcap to 1.10.4 2023-12-14 17:48:06 +00:00
João Valverde 8c45aaeb06 CMake: Fix WiX packaging
Fixes b52d9173f8.
2023-12-14 17:19:47 +00:00
João Valverde b2213b12e9 wslua: Add another exception for binary plugin subfolders
The wslua plugin folder is recursive and contains the binary plugins
folder. Avoid descending into those folders that should not contain
any *.lua files.
2023-12-14 17:14:59 +00:00
João Valverde 36065ab356 Rename some codec plugin folders to lowercase 2023-12-14 16:24:41 +00:00
João Valverde 7f32c90ab9 plugins: Add a codecs API level
Add a minimum and maximum API level. Backward-compatible changes to
the API only bump the maximum API level. Backward incompatible
changes bump the maximum API level and the mininum, to the
new (maximum) level.

This may allow codec plugins to continue working without recompilation,
possibly with reduced functionality.

The API level is only defined for codecs because it is a small
and easy to define API, and very stable.

Maybe we could do the same for wiretap (file type) plugins. For the
various epan plugin types it seems pointless and futile. I cannot
see a scenario where a new Wireshark minor release does not increase
the minimum API level.
2023-12-14 16:18:35 +00:00
João Valverde b52d9173f8 Remove version component from plugin path
Remove the major.minor version from the plugin path, i.e:
    lib/plugins/X.Y/{epan,wiretap,codecs}
and use an unversioned path:
    lib/plugins/{epan,wiretap,codecs}

Introduce a new naming policy for plugins that requires
name.so.ABI_VERSION.

This is a simplified filesystem layoutfor plugins some
important benefits such as:

 * improves compatibility between Wireshark versions, because
a plugin that wasn't recompiled will be automatically picked
up, but only if it has a compatible ABI version in the file name.
 * does not clash with Apple guidelines
 * simpler for users to understand and apply
 * just overall simpler and easier to maintain, removes a lot
of complexity from CMake code

It does impose more requirements on the plugin naming scheme
but this should be handled completely transparently
by the build system.

It would also be possible to add support for unversioned *.so file
extensions at the same time, although in ths case it is not possible
to support multiple Wireshark ABI versions with only *.so, of course.
This wasn't done here but it may or may not be a useful enhancement
in the future.

Follow-up to 90b16b4092.
2023-12-14 14:28:30 +00:00
João Valverde b51a3933ba CMake: Refactor plugin add_library() macros
Replace the macro subfolder argument with type specific plugin
macros.
2023-12-14 14:18:55 +00:00
John Thacker 70383151ae doc: Mention partial checksums in Checksum Section
[skip ci]
2023-12-14 08:52:06 +00:00
Giovanni Musto 7b4d667f30 BLF: Fix BLF_OBJTYPE_CAN_FD_ERROR_64 not decoded as error 2023-12-14 08:46:34 +00:00
Christian Krump 9c2959b483 EPLv2: textual decoding of ASnd error code
Additional decoding (textual) of possible error code within ASnd frame.
2023-12-14 08:33:12 +01:00
Alexis La Goutte b983decbcb opcua_application_layer: fix Dead Store found by Clang Analyzer 2023-12-14 07:17:23 +00:00
Alexis La Goutte 6081bf1535 merge(wiretap): fix Dead Store found by Clang Analyzer 2023-12-14 07:17:23 +00:00
Alexis La Goutte 00be42a1f2 tls-utils(ECH): fix Dead Store found by Clang Analyzer 2023-12-14 07:17:23 +00:00
John Thacker cd8893db10 capture: Serialize the machine readable interface list
Use JSON to serialize the machine readable interface list.
This removes any problems with embedded tabs in names and
descriptions, and makes it easier to later get the interface list
and the capabilities in one call (and possibly even a single call
that retrieves both and starts statistics.)

Related to #15082
2023-12-14 00:03:21 +00:00
Gerald Combs e3837d403e Falco bridge: Minor code cleanup 2023-12-13 13:17:53 -08:00
Gerald Combs baf8ec83ef Logray: Add a Syscalls coloring rule 2023-12-13 13:17:28 -08:00
Gerald Combs 5353057795 GitLab CI: Switch to clang 17 2023-12-13 09:15:28 -08:00
Joakim Karlsson e9d4f4f846 GTPv2: Dissect IE Group ID 2023-12-13 16:02:36 +01:00
João Valverde 8ba4fb537d Improve pkg-config description 2023-12-13 13:09:46 +00:00
Joakim Karlsson 4a9214b12d GTPv2: Dissect IE PGW Set FQDN Extendable 2023-12-13 09:10:22 +01:00
John Thacker 897c94bd04 Qt: Don't connect in the .ui file only to disconnect in constructor
Don't connect the QDialogButtonBox accepted() signal to the
dialog's accept() slot in the Qt Creator .ui XML only to
disconnect that connection in the constructor.

Apparently in Qt6 these things are parsed in somewhat different
order, so the disconnection wasn't happening, leading to
destroying the dialog while the FileDialog was still open.

There's a case for moving the Save As actions to ActionRole buttons
(though then the little save icon would have to be set manually.)

Fix #19529
2023-12-13 05:18:17 +00:00
Gerald Combs 107550c9c0 Move wireshark.pc.in and make our .pc file paths relative
Move the libwireshark pkgconfig file to the resource directory.

Set the various paths in our .pc files based on the `pcfiledir` variable
instead of using absolute paths. This should make it possible to install
using a DESTDIR that differs from CMAKE_INSTALL_PREFIX.
2023-12-12 19:28:29 -08:00
Jaap Keuter c0bfd405b5 Resolve GCC clobbered variable warnings
Building with GCC 13.2.0 exposes even more clobbered variable warnings.
Mark these volatile to circumvent those.
2023-12-13 01:22:58 +00:00
Gerald Combs 1fc41b77b2 Logray: Fix the Syscall profile 2023-12-12 17:11:52 -08:00
Gerald Combs ac524cff38 Windows: Upgrade GnuTLS to 3.8.2 2023-12-12 14:58:18 -08:00
Maxim Sharabayko 0d52ed247e srt: Parse Key Material message. 2023-12-12 19:53:17 +00:00
Gerald Combs 934fe03fca Falco bridge: Add protocols for each filter check type
The libsinsp filtercheck categories aren't likely to change much over
time, so create a static list of them. Make them protocols as well, and
remove the "falco." field prefix where we can.

Initialize our hfids to 0.
2023-12-12 17:38:06 +00:00
João Valverde 8486ba26c6 epan: Add plugin get_descriptions callback
Allow epan plugins to push descriptions for each individual
plugin or extension managed by the epan plugin interface.

For example a Lua or Python epan plugin can push
descriptions for each *.lua or *.py script it registers.
2023-12-12 14:43:37 +00:00
João Valverde 5bcfa5b261 epan: Remove register_all_tap_listeners plugin callback
This is currently unused by anyone so remove it until the tap
listener interface can be properly tested.
2023-12-12 14:36:31 +00:00
João Valverde 0ed89bb91b Qt: Remove HAVE_PLUGINS #ifdef 2023-12-12 14:36:31 +00:00
João Valverde fd21a7717f epan: Remove HAVE_PLUGINS #ifdef 2023-12-12 14:36:19 +00:00
Martin Mathieson 4e7b79edce MAC and RLC statistics: fix filter expressions to work with NR 2023-12-12 13:28:32 +00:00
Chris Brandson 4158fd0115 Zigbee improved Smart Energy time format and display
Similar to other changes to the dissection and display of UTC Time, changed
Smart Energy time fields to display both UTC text time and UTC Time as a
number with the number as the field value for t-shark. As UTC Time is used
elsewhere, broke that functionality out into the main ZCL file, but Smart
Energy applies a special meaning where the value 0 means 'now' independant
of the actual time, this is restricted to Smart Energy uses of UTC Time.

Thanks to Cole Wu <colewu9712@gmail.com> for the original implementation and
support.
2023-12-11 21:28:32 +00:00
Martin Mathieson 6b7664bfd3 Fix some broken dissector URLs 2023-12-11 21:16:21 +00:00
Gerald Combs 04165f8536 Monero: Use col_add_str
Our info column string might be dynamically allocated, so use
col_add_str.

Fixes #19526
2023-12-11 20:08:27 +00:00
Gerald Combs b16190ab6d Falco bridge: Set our event number
Set our event number in extract_syscall_source_fields so that we receive
the correct information if it's been cached.
2023-12-11 10:04:19 -08:00
Martin Mathieson 807413ea33 ORAN FH CUS: Update some value_strings for v13.0 2023-12-11 17:12:47 +00:00