Commit Graph

42821 Commits

Author SHA1 Message Date
Toff 2df04e5bb0 Follow stream: Modify YAML format, add timestamps and peers
Modify YAML output format so it includes information about peers and
absolute timestamps for each packet.
This also adds yaml output to tshark: -z follow,tcp,yaml,X
2021-05-25 08:09:31 +00:00
John Thacker c00b062cb0 RANAP: Don't attempt to re-register heuristic dissectors
Move the RANAP heuristic dissector registration under the initialization
guard that they're only registered once. Prevents console warnings about
the dissectors already being registered to the sccp and sua tables if
a RANAP preference is changed.
2021-05-25 04:19:28 +00:00
Gerald Combs bc27fe8274 Release notes: Add new dissectors
Run

git diff --name-only --diff-filter=A v3.5.0rc0.. epan/dissectors/{file,packet}-*.c plugins

and add any missing dissectors to the release notes. Take the liberty of
fixing up some dissector names and clean up some whitespace.
2021-05-25 04:03:56 +00:00
Constantine Gavrilov 88e792b376 NVMe: fix test build warnings.
** 'nvme.cmd.identify.ctrl.lpa' exists multiple times with incompatible types: FT_UINT8 and FT_BOOLEAN
** 'nvme-rdma.cmd.prop_attr.set.csts.rsvd' exists multiple times with incompatible types: FT_BYTES and FT_UINT8
** 'nvme-rdma.cqe.status.pget.csts.rsvd' exists multiple times with incompatible types: FT_BYTES and FT_UINT8
2021-05-25 03:48:12 +00:00
John Thacker 232d3866af Allow wmem_strbuf_append_len() to append strings beginning with NUL byte
wmem_strbuf_append_len is for appending strings with embedded nulls,
so it shouldn't return early if the first byte of the string passed in
is null. The check for the string itself being null and the append_len
being zero is sufficient.
2021-05-25 03:32:29 +00:00
Richard Sharpe ca337f1c1d ieee80211: Fix the handling of the User Info List in Trigger Frames.
Change-Id: Ic205b1f8aebc4b5b655032a6a6063cb71056b390
2021-05-24 18:51:45 -07:00
John Thacker 31297dbb82 ftype-protocol: Fix crash when comparing _ws.expert to literals
The ftype-protocol has two components to its value - a tvb, which is
allowed to be be NULL (most notably in _ws.expert), and a string
description. They can also be created from string literals, such as
in display filters. It's possible to compare protocols with a NULL
tvb with protocol terms created from literals, e.g. entering the
display filter "_ws_expert < 1".

Partially revert 69e2603c48 so that
this doesn't crash, by assigning proto_string to the empty string
instead of null when creating from a literal. Fixes #17316
2021-05-24 22:37:56 +00:00
Richard Sharpe dcaadf2535 ieee80211: Conform to Draft 3+ of 802.11az Location Services.
Change-Id: If898479f1e8d678e2c52649b0525a1b5606daddc
2021-05-24 17:31:24 +00:00
Anders Broman 96ed53bb68 GSM MAP:Use ENC_APN_STR 2021-05-24 06:37:03 +00:00
João Valverde c4aa583d8e wsutil: Rename ws_assert_bounds()
It is not necessary to categorize every assertion that
is not conditional to WS_DISABLE_ASSERT.
2021-05-24 01:35:30 +00:00
João Valverde 9ba97d12d6 Add ws_debug() and use it
Replace most instances of ws_debug_printf() except in
epan/dissectors and dissector plugins.

Some replacements use printf(), some use ws_debug(), and
some were removed because they were dead or judged to be
temporary.
2021-05-24 01:13:19 +00:00
Guy Harris 1bb64b7e0c tacacs: free a buffer if it's not used.
Plugs a leak.
2021-05-23 17:04:59 -07:00
Guy Harris 618661b22e dnp: plug a memory leak.
If we're throwing away the data, *throw away the data* - free it, as
we're not using it as the backing data for a tvbuff.
2021-05-23 21:28:58 +00:00
Chris Brandson 764d3d1be0 change info labels to match Zigbee spec for clarity 2021-05-23 19:22:15 +00:00
Alexis La Goutte 00c4056670 nvme: Fix Dead Store
Value stored to 'bytes' is never read
2021-05-23 19:06:48 +00:00
Chuck Craft 30832dcdea addr_resolv: repopulate services table on profile switch 2021-05-23 18:50:25 +00:00
John Thacker 6b2dd3561e DVB-S2-BB: Make dissect_dvb_s2_gse() have the dissector_t signature
Change dissect_dvb_s2_bb to take a tvb_subset of the appropriate size
and offset instead of being passed in an offset and length. Rearrange the
parameters so that it has the dissector_t signature. This is a little
cleaner, and also allows in the future creating dissector handles that
call the GSE dissector directly for GSE frames not carried within a
BBFrame.
2021-05-23 18:34:36 +00:00
Gerald Combs 479c8a29eb [Automatic update for 2021-05-23]
Update manuf, services enterprise numbers, translations, and other items.
2021-05-23 16:04:46 +00:00
Constantine Gavrilov 81511a5f98 NVMe: fix parsing ANA Get LogPage response. 2021-05-23 16:29:59 +03:00
Guy Harris c73ab16bef OID handling: fix a memory leak.
There's a "break" in some code that appears to be copied and pasted from
a switch statement; the break would exit the loop (and leak memory
allocated within the loop), which does not appear to be the intent, so
it may have been copied over incorrectly.  Remove it.

While we're at it, redo the "constant-time append to the end of a loop"
code to be a bit clearer, both to humans reading the code and code
analyzers reading the code.
2021-05-23 01:27:11 -07:00
Guy Harris 64f3f08702 epl-profile-parser: plug a memory leak.
g_key_file_get_groups() returns a pointer to g_mallocated data; we need
to pass its return value to g_strfreev() when we're done with that data,
to free it up.
2021-05-23 00:03:01 -07:00
Guy Harris 10f36f219c oran: clean up write_pdu_label_and_info().
Declare it as being printflike, so that the compiler does
format-vs-argument-list checking.

Fix the error that found.

Make the string buffer into which it formats automatic, so that it's
thread-safe.
2021-05-22 11:45:10 -07:00
Guy Harris 66accecf3e dof: clean up adding the session key to the dissection.
Let the libwireshark code format the value of the session key, by
setting its display format to SEP_COLON.

Use proto_tree_add_bytes_with_length(), so that the session key becomes
the value of the field; otherwise, the length of the key isn't
specified.

This means we don't need to call bytestring_to_str() (the code in
epan/proto.c calls it for us).

This also plugs a leak of the string generated by bytestring_to_str().
2021-05-22 03:00:39 -07:00
Guy Harris f0abd29e48 protobuf: close another leak.
Close the directory handle we've opened before returning a failure
indication if pbw_load_proto_file() or load_all_files_in_dir() reports a
failure.
2021-05-21 19:14:03 -07:00
Guy Harris f1ffe7d421 protobuf: close a leak when file loading fails.
Free the path we've constructed before returning a failure indication if
pbw_load_proto_file() or load_all_files_in_dir() reports a failure.

Also, explicitly compare pbw_load_proto_file()'s return value against 0,
to make it a little clearer that it's *not* a Boolean, it's a return
code (with 0 meaning success and different non-zero values meaning
failure; if it matters *which* failure it is, we should probably have
otherwise we should just make it a Boolean).
2021-05-21 18:33:56 -07:00
Guy Harris eb75366bc4 epan: redo the processing of ENC_APN_STR.
Process the characters entirely ourselves; that way, we don't have to
worry about tvb_get_string_enc(..., ENC_ASCII) mangling label length
values, can convert non-ASCII characters in labels to the Unicode
REPLACEMENT CHARACTER, and can do bounds checks.
2021-05-21 16:32:28 -07:00
Pascal Quantin 38bba32097 NAS 5GS: fix Non-3GPP NW policies IE dissection 2021-05-21 19:03:36 +02:00
Thomas Dreibholz 43d976abd9 Added statistics for ComponentStatusProtocol. 2021-05-21 13:09:21 +00:00
Thomas Dreibholz 1529b9199a Added statistics for FractalGeneratorProtocol. 2021-05-21 13:09:21 +00:00
Thomas Dreibholz cc8dd9b509 Added statistics for CalcAppProtocol. 2021-05-21 13:09:21 +00:00
Martin Mathieson 9f895960c1 ERLDP: Fix the type of the handshake tag.
Error: proto_tree_add_item_ret_uint(.., hf_erldp_tag, ...) called at epan/dissectors/packet-erldp.c:625 with type FT_STRING
    (allowed types are {'FT_UINT8', 'FT_CHAR', 'FT_UINT24', 'FT_UINT32', 'FT_UINT16'} )
2021-05-21 10:04:33 +00:00
Andreas Schultz 9b35d47758 ErlDP: decode handshake flags 2021-05-21 09:48:43 +00:00
John Thacker 3b71af71e1 DVB-S2-BB: Make dissect_dvb_s2_bb() have the dissector_t signature
Change dissect_dvb_s2_bb to take a tvb_subset instead of being
passed in an offset. Rearrange the parameters so that it has the
dissector_t signature. This is a little cleaner, and also allows
in the future creating dissector handles that point directly to
baseband frames (if we know we have L.1/ out of band mode adaptation.)
2021-05-20 21:39:45 -04:00
Thomas Dreibholz 9d5633e215 Added bytes and byte rate to ASAP and ENRP statistics. 2021-05-20 21:03:12 +00:00
Pascal Quantin 7816d49bb4 NGAP: fix dissection of UERadioCapability IE for NB-IoT UEs 2021-05-20 18:45:39 +02:00
Anders Broman 31ca47eafc Use ENC_APN_STR in one more place. 2021-05-20 12:21:06 +00:00
Piotr Winiarczyk f7c6d2e9e5 btmesh: Add dissectors of some generic opcodes
Add dissectors of some opcodes from Mesh Models document. Closes #17402
2021-05-20 11:08:43 +00:00
AndersBroman 754cce9531 Add ENC_APN_STR to handle APN strings 2021-05-20 09:27:53 +00:00
Alexis La Goutte 34ae07e180 ieee80211: reorder some ett rnr field 2021-05-20 04:01:33 +00:00
Alexis La Goutte 4228201eaa ieee80211: Enhance display when there is multiple TBTT Information 2021-05-20 04:01:33 +00:00
Alexis La Goutte 6d29f28557 ieee80211: Fix Multiple Neigbor AP Information on RNR 2021-05-20 04:01:33 +00:00
João Valverde cee1b443b5 wsutil: Add ws_assert_bounds() 2021-05-20 03:01:05 +01:00
João Valverde 01144f9109 Fix a maybe-uninitialized warning with -O3 (gcc)
GCC 11.1.0.

./epan/dissectors/packet-dcerpc-netlogon.c: In function ‘dissect_secchan_verf’:
../epan/dissectors/packet-dcerpc-netlogon.c:8162:13: error: ‘digest’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 8162 |     guint64 digest;
      |             ^~~~~~
2021-05-20 03:00:21 +01:00
David Perry 32cc1c7906 Remove use of PACKAGE_VERSION in maxminddb version 2021-05-19 17:16:01 +00:00
David Perry a1ba9453ef Add version info for lz4, zstd, maxmind
This simply implements the patches given in a comment on bug 16270.
<https://gitlab.com/wireshark/wireshark/-/issues/16270#note_400748726>
2021-05-19 13:38:25 +00:00
Dirk Römmen a1a2b53663 BACnet: BACnet revision 22 secure connect datalink implementation.
- Implements the BACnet /SC datalink using encrypted TLS communication
over TCP/IP and the websocket protocol.
- Updated list of vendor ID's
- Added new BACnet services Who-Am-I / You-Are
- Some corrections for revision 22.
- Fixed bug issue #17142
2021-05-19 13:21:48 +00:00
Michał Kaźmierowski df508537be OER: check unused bit count while parsing bit string 2021-05-19 12:28:07 +02:00
João Valverde e10f761362 wslua: Replace g_assert() with ws_assert() 2021-05-19 03:52:45 +01:00
João Valverde 1fe4638648 wmem: Replace g_assert() with ws_assert() 2021-05-19 03:52:45 +01:00
Anders Broman 1ad447aab9 NRPPA: Update to 3GPP TS 38.455 V16.3.0 (2021-04) 2021-05-18 10:11:30 +00:00