Commit Graph

41081 Commits

Author SHA1 Message Date
Rickard Holmberg d04ce112a7 Update to DICOM Edition 2020c
Change-Id: I0bd90234356f27990c25033b823e9613b44a5965
Reviewed-on: https://code.wireshark.org/review/37873
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-07-16 05:43:32 +00:00
Dario Lombardo 88f62c8d0e ieee1905: fix indentation.
Add braces and fix 4-spaces indentation.

Change-Id: I50af4ad4c9f57b3bb4211ec4f69026f28476f12a
Reviewed-on: https://code.wireshark.org/review/37866
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
2020-07-15 17:38:05 +00:00
Pascal Quantin 7184c1bce2 OPA MAD: do not search a non existing and unused dissector handle
Change-Id: Idd871b371579dae86c58606c085d90864cb0e861
Reviewed-on: https://code.wireshark.org/review/37867
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-07-15 16:59:54 +00:00
Tomasz Moń 6037b40106 FTDI FT: Add RX payload to tree only when present
Do not display "A RX payload: <MISSING>" as it suggests something is wrong
with the packet. It is perfectly valid for RX packets to only contain modem
status.

Ping-Bug: 11743
Change-Id: I9b3417ec9404758fdc093b01ea0e7761822615f2
Reviewed-on: https://code.wireshark.org/review/37862
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Tomasz Moń <desowin@gmail.com>
2020-07-14 19:08:02 +00:00
Dario Lombardo f0b35ee9b3 ieee1905: prematurely return if addresses are not defined.
Some packets (as the ones generated by oss-fuzz) can reach the
reassembly code without pinfo->src/dst defined. We need to prematurely
exit in those cases and handle the reassembly code accordingly.

Bug: 16696
Change-Id: I6d0c6c95ba8123879e9c9e3e06bfc139425d9ddd
Reviewed-on: https://code.wireshark.org/review/37859
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
Tested-by: Petri Dish Buildbot
2020-07-14 15:17:29 +00:00
Dario Lombardo fe8d996bb2 xcsl: fix an off-by-one in premature exit.
Bug: 16695
Change-Id: I2e8548bdfaea64362d2341968a97143937e797ce
Reviewed-on: https://code.wireshark.org/review/37857
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 13:40:47 +00:00
Anders Broman 7a3bef5746 7COMM: Try to fix Wpointer-sign warnings.
Change-Id: I5dbd04efab7c0a052b5b0c45c2a4a935fd4c1b42
Reviewed-on: https://code.wireshark.org/review/37856
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 12:55:23 +00:00
Anders Broman b921a5670b RTSP: Try to fix Wpointer-sign warnings.
Change-Id: Ie19dac9e8c17ae8db6e3f103e08978b922764e58
Reviewed-on: https://code.wireshark.org/review/37855
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 12:31:57 +00:00
Uli Heilmeier 9cd7629daf DNS: Add support for RFC8490 DNS Stateful Operations
Adding support for DNS Stateful Operations as defined in RFC8490

Change-Id: I8dc95b53bddef0c6a6cd5e5233d1097e930c473f
Reviewed-on: https://code.wireshark.org/review/37850
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 12:12:00 +00:00
Joakim Karlsson e7642e162f TLS: fix build error without LIBGCRYPT_AEAD
Change-Id: I8ece98c312835100949b34bf4777fcdbc0152c8d
Reviewed-on: https://code.wireshark.org/review/37848
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 11:17:16 +00:00
Joakim Karlsson 90c3e7dead QUIC: fix build error without LIBGCRYPT_AEAD
Change-Id: Id6135268cc03b8616c729499f949d58d67ab3f02
Reviewed-on: https://code.wireshark.org/review/37847
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 11:16:51 +00:00
Anders Broman cc039149a8 DNS: Try to fix Wpointer-sign warnings.
Change-Id: I8d585d66da894b359d47d16d9850ce709dedbcb7
Reviewed-on: https://code.wireshark.org/review/37853
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 11:02:04 +00:00
Anders Broman c5aa5b8f41 IMAP: Try to fix Wpointer-sign warnings.
Change-Id: I654af8d3addcf8b2c4b0131d10f8a5010b1d4d24
Reviewed-on: https://code.wireshark.org/review/37854
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 10:32:24 +00:00
eckart haug 45e9da9b67 TDS: Fix If COLMETADATA is present, all row data display is unusable.
Bug: 16682
Change-Id: I56e784784c6e8affae19d8911d573134ec89924d
Reviewed-on: https://code.wireshark.org/review/37778
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 09:10:53 +00:00
Roland Knall b31a6aaae7 B&R - company naming
- refactoring of B&R specific company naming

Change-Id: Ic8533617f61f5bee009e1d00ebc323e00f28b3e8
Reviewed-on: https://code.wireshark.org/review/37851
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
2020-07-14 08:47:16 +00:00
Jaap Keuter 759a62b5c5 RTCP: Add few remaining AVB specific fields
Bug: 16671
Change-Id: I6e73c734bade411e245dfc3282c2140d647c7034
Reviewed-on: https://code.wireshark.org/review/37812
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 08:14:02 +00:00
Peter Wu 44ed20a97c QUIC: fix unintended address/port match for empty DCID
Commit "QUIC: fix decryption when the client uses an empty SCID"
addressed the root cause that prevented connections from being correctly
linked. However another trace with an empty DCID was still properly
linked even in presence of the bug.

It turns out that an earlier optimization has an unintended change.
If a short packet was preceded by any packet with a DCID of exactly 20
bytes, then a connection with an empty CID is looked up as expected, by
`quic_connection_find_dcid(pinfo, NULL, from_server)`. However if no
earlier DCID of exactly 20 bytes exists, then a lookup by address/port
would occur. That is why earlier traces still decrypt successfully.

Restore the intended behavior to ensure that (1) invalid DCIDs in a Long
Header packet are ignored, and (2) Short Header Packets are not
accidentally matched to a wrong session based on an address/port match.
The latter could occur if the same src/dst address/port tuple is reused
across different QUIC connections when all CIDs are not 20 bytes.

Change-Id: Ida2523a0922314c7a455dec7e1f8f0442be27e94
Ping-Bug: 13881
Fixes: v2.9.0rc0-1878-gfc9e404ab2 ("QUIC: small connection tracking optimization")
Reviewed-on: https://code.wireshark.org/review/37845
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 08:13:35 +00:00
Gerald Combs 4a4c8bdfea Systemd journal: Fix timestamp conversions.
Use ws_strtou64 to convert __REALTIME_TIMESTAMP= and other timestamps,
which should work across platforms.

Bug: 16664
Change-Id: I371f2b60e1957e57dbbdbbc3ded5ad49e8eb79d1
Reviewed-on: https://code.wireshark.org/review/37849
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 04:02:35 +00:00
Eric Wild 73f24f5ad8 ccid: dissect interrupt notifications for 8 slots
This was previously limited to one byte (=4 slots), and afaik no readers
existed that supported more slots until now - now there is the sysmocom
octsim that as the name implies offers 8 slots.

Change-Id: I5eccc7b6fb0d3c12ef7d7379d3ee88b5e7c45b71
Reviewed-on: https://code.wireshark.org/review/37816
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-14 04:01:42 +00:00
Tomas Kukosa 7f09a6fd81 ITS: ISO TS 19321 (IVI) updated to version 2
Change-Id: Ia865f9d56c891d10ac910ab60a6432f7eca01a58
Reviewed-on: https://code.wireshark.org/review/37843
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 15:43:44 +00:00
Sultan Qasim Khan 2b6f38b37d Extend the BLUETOOTH_LE_LL_WITH_PHDR format
Introduce backwards compatible meanings to previously RFU flag bits.
This allows indicating packet direction and supporting BLE5 features.

0x0380 indicates the PDU type
0xC000 indicates the PHY mode

PDU types are:
0: Advertising or Data (Unspecified Direction)
1: Auxiliary Advertising
2: Data, Master to Slave
3: Data, Slave to Master
4: Connected Isochronous, Master to Slave
5: Connected Isochronous, Slave to Master
6: Broadcast Isochronous
7: Reserved

PHY modes are:
0: LE 1M
1: LE 2M
2: LE Coded
3: Reserved

For PDU type 1 (auxiliary advertising), MIC bits 0x3000 are repurposed
to indicate auxiliary advertisement type.

Auxiliary advertisement types are:
0: AUX_ADV_IND
1: AUX_CHAIN_IND
2: AUX_SYNC_IND
3: AUX_SCAN_RSP

Change-Id: I1e6ddc1488d4cf5c05af4a179c9ad362e94f42f6
Reviewed-on: https://code.wireshark.org/review/37142
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 05:16:03 +00:00
Dmitriy Eliseev 474f8c9a17 synphasor: solve issues from buildbot
Solve issues from buildbot and improve display of FRACSEC and FRAMESIZE
Link to report: https://buildbot.wireshark.org/petri-dish/builders/Ubuntu%20Petri%20Dish%20x64/builds/12010/steps/conflict%20check/logs/stdio
Pcap for checking: https://bugs.wireshark.org/bugzilla/attachment.cgi?id=17413

Change-Id: I88d12faeab07c98d18712c63939eb5eece466ec8
Reviewed-on: https://code.wireshark.org/review/37836
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 05:15:42 +00:00
Richard Sharpe cb8fa30177 ieee1905: Comform to the latest Multi-AP spec plus add reassembly.
Here we conform to the latest ieee1905 Multi-AP spec as tested by the
WFA. We also add support for reassembling ieee1905 messages.

Bug: 16660
Change-Id: Ic67784d7c213856a364f88c177ede9688271ea2a
Reviewed-on: https://code.wireshark.org/review/37574
Petri-Dish: Richard Sharpe <realrichardsharpe@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 05:15:15 +00:00
Stig Bjørlykke db966fdd2f coap: Do retransmission detection only for CON and NON
Only do retransmission detection for CON and NON type messages.

Change-Id: I5b5d93800918a98d4d321d1dcd0f3090b485ba9e
Reviewed-on: https://code.wireshark.org/review/37842
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 05:14:18 +00:00
Tomasz Moń b61a4abc91 FTDI FT: Use custom reassembly table key functions
Construct FTDI FT reassembly table key based on desegment data. This
makes sure that the code can find corresponding data in the reassembly
table (which wasn't true for fuzzed captures).

Ping-Bug: 16691
Change-Id: I37f29aca07ec5e27f8a07db9233a9bb6d809dbda
Reviewed-on: https://code.wireshark.org/review/37841
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 05:13:54 +00:00
Tomasz Moń dd43aa2a0f FTDI MPSSE: Do not unnecessarily request reassembly
When scanning for Bad Command synchronization code 0xFA followed by the
command byte, only request reassembly if the last byte is 0xFA.

Ping-Bug: 16691
Change-Id: Ic04f47e2baece05c0a9a7f748d3035b18cf4e6a2
Reviewed-on: https://code.wireshark.org/review/37840
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 05:13:27 +00:00
Tomasz Moń 756178514f FTDI MPSSE: Speed up malformed captures dissection
Maintain separate RX and TX command info trees. When dissecting TX
packets during the first pass, the code has to traverse no more entries
than added by single TX packet. After the first pass there is no longer
a need to find the correct spot in the list, as the TX command info tree
points directly to the correct location.

Ping-Bug: 16691
Change-Id: Ie4a1d2e1152876b8b0a09308ed5a182b9a2e2895
Reviewed-on: https://code.wireshark.org/review/37837
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 05:12:56 +00:00
Martin Kaiser 32a804dea2 kafka: snappy: free the composite tvb only once
The snappy decompression routine has the same bug that was fixed for lz4 in
79576219c9 ("kafka: lz4: free the composite tvb only once").

Refactor the composite tvb handling for snappy as well. Allocate the
composite tvb only if we are cetain that data will be added to it.
Do not free the composite tvb ourselves, leave this to epan cleanup.

Change-Id: Ide3a88d1c02e525fe1aadd176068ce68c2330b98
Reviewed-on: https://code.wireshark.org/review/37838
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 05:12:09 +00:00
Alexis La Goutte a71ecfa2b5 QUIC: add GREASE QUIC Bit Transport Parameter
based on https://tools.ietf.org/html/draft-thomson-quic-bit-grease-00 and
https://github.com/quicwg/base-drafts/wiki/Temporary-IANA-Registry#quic-transport-parameters

Change-Id: Ib0a66ff7ecf5a5b40a3ed52d36798e2dcd3bcaa2
Ping-Bug: 13881
Reviewed-on: https://code.wireshark.org/review/37787
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-13 05:11:45 +00:00
Gerald Combs 300099e9e2 [Automatic update for 2020-07-12]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: I68419eed3c7d203b483f51f09f56b863fd65ffd0
Reviewed-on: https://code.wireshark.org/review/37832
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-07-12 08:17:56 +00:00
Peter Wu 69216a385d QUIC: fix decryption when the client uses an empty SCID
Decryption of short header packets would fail if the client sends a SCID
due to a logic error. This was observed with Chrome 86.0.4198.2.

Thanks to Ashwin Jagadish for the report and sample capture.

Change-Id: I81f5ab1bc1ea1b379e4edd65969d3c3e58340065
Ping-Bug: 13881
Fixes: v2.9.0rc0-269-gec30d0b004 ("QUIC: implement connection migration (draft -10 and -11)")
Reviewed-on: https://code.wireshark.org/review/37830
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-07-12 05:53:13 +00:00
Peter Wu 34c2353a39 QUIC: improve display of unknown or large Transport Parameter types
Display unknown TP types directly in the tree, users can then easily
look it up in sources such as
https://github.com/quicwg/base-drafts/wiki/Temporary-IANA-Registry

Fix display of large GREASE such as 0x3b318c8103de1274.

Change-Id: I6665fa4337e92ae973979813b7e58d66f38ae0fb
Ping-Bug: 13881
Reviewed-on: https://code.wireshark.org/review/37829
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2020-07-12 05:51:44 +00:00
Tomasz Moń ed334d4f2d FTDI MPSSE: Improve command to response tracking
Display command code in command in packet entry. Fix command response in
linking when response for subsequent commands in packet was not in the
same packet as for the first command. Link to response packet only for
commands that actually have response.

Ping-Bug: 11743
Change-Id: I7c336202cf7d89b5cf785ad6ede8f1a71e0dc063
Reviewed-on: https://code.wireshark.org/review/37827
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-12 05:07:27 +00:00
Tomasz Moń c706a909e3 FTDI FT: Reassemble fragmented MPSSE data
FTDI FT does not have a sense of data segments. It simply transports
asynchronous data bytes between two parties. MPSSE dissector notifies
FTDI FT dissector when it needs more data to process command and/or
response using the desegment API.

FTDI FT assumes that the segment starts at the offset given by MPSSE and
ends when either MPSSE does no longer ask for more data, or when MPSSE
asks for more data but not from the beginning of tvb passed to it (when
packet contains both end of previous segment and start of a new one).

Ping-Bug: 11743
Change-Id: Ib400bedd4d61166c98f711e4ab132a3a3bd8051d
Reviewed-on: https://code.wireshark.org/review/37709
Petri-Dish: Tomasz Moń <desowin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-12 05:06:35 +00:00
Alexis La Goutte 415f72a146 QUIC: Add column info for ACK_FREQUENCY and TIME_STAMP frame type
Change-Id: Id30c4d88240c421c676ec3f1c729f5df3f865912
Ping-Bug: 13811
Reviewed-on: https://code.wireshark.org/review/37822
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-12 05:04:39 +00:00
Tomas Kukosa 29c9425d22 PER: decode SEQUENCE OF with extended SIZE constraint, fix unaligned integer
Change-Id: Iec225830f749e535fd7eb4468b66b190ce3253de
Reviewed-on: https://code.wireshark.org/review/37825
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-12 05:03:14 +00:00
Alexis La Goutte f505ada1f0 pfcp: fix typo found by lintian
treshold => threshold

Change-Id: I408683aa4943ebffdc53db559ff5fc7f384f35a9
Reviewed-on: https://code.wireshark.org/review/37823
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-11 06:03:07 +00:00
Dario Lombardo 584569932b packet: don't mess up the subdissectors list during optimization.
Bug: 16690
Change-Id: Ie8340dca7bb56d58425985c16a07d0ed6887d03f
Reviewed-on: https://code.wireshark.org/review/37820
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
2020-07-10 21:24:42 +00:00
Christian Krump a0b2ff45f5 EPL: use predefined tf strings from tfs.(ch)
predfined tf strings are used for the new introduced ring reduncancy flags

Change-Id: I5273eff410391bf4f104feea8602377698a97c8d
Reviewed-on: https://code.wireshark.org/review/37819
Petri-Dish: Roland Knall <rknall@gmail.com>
Reviewed-by: Christian Krump <christian.krump@br-automation.com>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
2020-07-10 08:52:13 +00:00
Nardi Ivan 770872790d Stun: add heuristic over TCP
Change-Id: Id059773a9f9567b1e66935aebafd0c1f73c9f15b
Reviewed-on: https://code.wireshark.org/review/37814
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-10 06:28:47 +00:00
Peter Wu 1cbaaf3e8d tls: Update list of CT logs to 2020-05-29
Avoid string literals while at it to avoid -Wpointer-sign warnings with
GCC 10. This has the additional benefit of avoiding storing the trailing
NUL byte after the data, resulting in a tiny reduction in binary size.
This compound literal syntax is supported since C99 which is permitted
by doc/README.developer.

Change-Id: I35f4d3a46aa78e12915d92136f1de0891131bede
Reviewed-on: https://code.wireshark.org/review/37818
Petri-Dish: Peter Wu <peter@lekensteyn.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-10 05:11:26 +00:00
Anders Broman 5d313ecb2d TDS:Fix -Wpointer-sign warnings.
Change-Id: I230c8a642557181024d4454ce5126bf0a33f4ac2
Reviewed-on: https://code.wireshark.org/review/37811
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-09 14:56:34 +00:00
Uli Heilmeier 3526ecd623 BGP: Fix scope for path attribute packet_data
We need wmem_file_scope() to handle path attribute info after
MPLS/VNI label.

Bug: 16678
Change-Id: Ib487b271110c78d2d4ae10f01fc24cda3edc0713
Reviewed-on: https://code.wireshark.org/review/37790
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-09 07:24:13 +00:00
Christian Krump d9f88b3289 EPL: extended decoding of ring redundancy flags
There are some ring redundancy flags available in the SOA frame.
These flags could be interesting for some users and should be decoded.

Bug: 16687
Change-Id: Ica20a9b2a87adf31dca3b064785cdac2e5bc3d2c
Reviewed-on: https://code.wireshark.org/review/37810
Reviewed-by: Christian Krump <christian.krump@br-automation.com>
Petri-Dish: Roland Knall <rknall@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Roland Knall <rknall@gmail.com>
2020-07-09 07:15:00 +00:00
Gerald Combs 455a4794d8 USB: Add a size check.
In dissect_usbpcap_iso_packets check for a sane isochronous packet
count, otherwise we might overflow our data start offset.

Bug: 16677
Change-Id: I79534b4a519eefcf85cf4dd03424ac654bacd8c9
Reviewed-on: https://code.wireshark.org/review/37789
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-09 06:20:48 +00:00
Guy Harris 4cf092382d spoolss: pick up what some printer attributes mean from Microsoft documentation.
The page at

https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-printer

lists a number of printer attributes that correspond to the attributes
listed here.

Describe what the hidden attribute means, more clearly describe whta the
enable-devq attribute means, and clean up other descriptions to make
them more stylistically consistent.

Change-Id: I4830df6dc610bce6b7603750d5c4aa73685f6c28
Reviewed-on: https://code.wireshark.org/review/37806
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-07-08 21:31:06 +00:00
Jaap Keuter 5b0adea0b3 Nano: Fix field abbrev
Found by conflict check

Change-Id: Ifdb0a2e5debab8ce8ed13127ea986d15a45e700b
Reviewed-on: https://code.wireshark.org/review/37792
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-07-08 20:58:49 +00:00
Jaap Keuter c9a5557c76 PIM: Fix field abbrev
Found by conflict check

Change-Id: I4fa1ff6da2fb2823ab1f937042c05aada6eb1238
Reviewed-on: https://code.wireshark.org/review/37793
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-07-08 20:54:43 +00:00
Guy Harris fb37407d27 NIS+: give the meanings of the NIS_CALLBACK return value.
From reading GNU libc's .x file for NIS+ (which has an Oracle America
copyright, suggesting that it was originally a file from Sun, and thus
likely to be the official NIS+ rpcgen file), and from reading the way
the GNU libc code treats the return value of the return value of an
NIS_CALLBACK RPC, it appears to be a Boolean where "true" means that the
callback in question is still running and "false" means it's not
running.

Label the results as such.

(I should probably really check the Illumos source to see if it includes
the NIS+ client and server and, if so, read that, so see what Sun's code
did.)

Change-Id: I4eb430dfca3d1162972a2a750effc31f626f20bf
Reviewed-on: https://code.wireshark.org/review/37791
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-07-08 19:52:11 +00:00
Dr. Lars Völker 038161d78e TECMP: Resetting VLAN depth per frame
The current dissector only allows 10 nested vlan tags and stops
dissections, if more are present.
This patch lets the TECMP dissetor reset the VLAN depth for
each embedded Ethernet frame it hands over the Ethernet dissector.

Bug: 16685
Change-Id: I29a726274a01c2ef296d4d1eeaffd6d5960db294
Reviewed-on: https://code.wireshark.org/review/37786
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-08 15:27:24 +00:00