Commit Graph

80508 Commits

Author SHA1 Message Date
Martin Mathieson 8b50de0da9 Fix some more item types.
As seen by tools/check_typed_item_calls.py
2021-04-17 05:49:30 +00:00
Uli Heilmeier 94628dc8fb BGP: Add support for draft-filsfils-spring-net-pgm-extension-srv6-usid
Adding additional endpoint behavior as defined in
https://tools.ietf.org/html/draft-filsfils-spring-net-pgm-extension-srv6-usid-10#section-10

Fixes: wireshark/wireshark#17343
2021-04-17 05:20:14 +00:00
Richard Sharpe 79b12eb4de ieee80211: Split out the SS Allocation field to two fields.
The SS Allocation field is listed in the spec as two separate fields. The
Starting Spatial Stream number and the Number of Spatial Streams. While
the spec treasts this as one 6-bit field it is more useful to display it as
two 3-bit fields so users can search on each separately.

Change-Id: I7a510a66f4500ac9fe065845ade9f5c3aaaf2184
2021-04-16 19:44:37 -07:00
Richard Sharpe 4ce4cc5b27 ieee80211: Add support for Wi-Fi QoS Management V2.
This adds support for QoS Management Spec vR2-0.0.2.

Change-Id: Ie83ec261cfc459f0ad1f3171292ee36d410eb4bf
2021-04-17 01:41:20 +00:00
Gerald Combs f7e5fb6952 Qt: Fix various missing prototype warnings.
Fix some noisy documentation bugs while we're here.
2021-04-16 22:25:22 +00:00
Gerald Combs 9c8f8a3c89 Epan: Fix various missing prototype warnings. 2021-04-16 22:08:17 +00:00
Gerald Combs a27391ab16 Plugins: Add missing prototypes.
Fixes -Wmissing-prototypes found by Clang.
2021-04-16 20:32:23 +00:00
Gerald Combs e513ed41d2 Wiretap: Fix some compiler warnings.
Make various _dump_can_write_encap and _dump_open routines static. Add a
couple of casts.
2021-04-16 20:09:42 +00:00
Gerald Combs c92637bcd8 Add missing prototypes to lemon-generated code.
Add static prototypes for the parser interface functions. Fixes
-Wmissing-prototypes found by clang.
2021-04-16 18:38:26 +00:00
Gerald Combs 23a82b040e GitLab CI: Switch to Clang 12. 2021-04-16 18:09:15 +00:00
Pascal Quantin 4e23db3841 systemd Journal Entry: fix a typo in filter name 2021-04-16 17:50:26 +02:00
Alexis La Goutte f42a6e0705 stcsig: fix conflict
'stcsig.seqnum' exists multiple times with incompatible types: FT_UINT48 and FT_UINT32
2021-04-16 12:20:25 +00:00
Alexis La Goutte 4f6f728f82 stun: fix conflict about username
'stun.att.username' exists multiple times with incompatible types: FT_BYTES and FT_STRING
2021-04-16 12:20:25 +00:00
Alexis La Goutte bb4c6969c4 systemd-journal: fix conflict
'systemd_journal.unhandled_field_type' exists multiple times with incompatible types: FT_NONE and FT_STRING
2021-04-16 12:20:25 +00:00
Alexis La Goutte 1fc234aed8 zvt: fix conflict
Remove zvt.result_code never used
'zvt.result_code' exists multiple times with incompatible types: FT_BYTES and FT_UINT8
2021-04-16 12:20:25 +00:00
Stefan Metzmacher bdfa22b321 packet-smb2: complete SMB2_RDMA_TRANSFORM* dissection
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-16 12:02:40 +00:00
Stefan Metzmacher dc0b6d1fe7 packet-smb2: add SMB2_WRITE_FLAG_WRITE_UNBUFFERED
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-16 12:02:40 +00:00
Stefan Metzmacher 5b89326f08 packet-smb2: mark SMB 2.2.2 and SMB 2.2.4 as "deprecated; should be 3.0"
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-16 12:02:40 +00:00
Joakim Karlsson 6d72eb7a30 GTPv2: Add dissect of F-Container in Configuration Transfer Tunnel 2021-04-16 11:44:20 +00:00
Stefan Metzmacher 1d623fd541 packet-ldap: fix regression for SASL handling
commit 19b3376a24
("LDAP bogus malformed errors: decoding encrypted data")
introduced 2 problems:

- guint decr_len = tvb_reported_length(decr_tvb); was
  always called with decr_tvb==NULL

- dissect_ldap_payload() was not called if sasl_tree is NULL,
  it needs to be called even if the tree pointer are NULL
  in order to have the COL_INFO setup correctly.

I guess this should also be backported to stable branches
(together with 2e6d3b571b
 "LDAP: SASL Buffer doesn't include Length field")

https://gitlab.com/wireshark/wireshark/-/issues/17347

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-04-16 12:54:43 +02:00
Pascal Quantin e2c7dc6627 NAS 5GS: add dissection of operator-defined access category definitions IE
Closes #17340
2021-04-16 12:03:57 +02:00
Jeff Dyer 5648ff25aa SCCP: Make use of HEX_DEC as suggested 2021-04-16 09:28:03 +00:00
Jeff Dyer ebcf6e117c SCCP: Display Translation Type in Decimal
Typically when dealing with SCCP translation types, the translation type is conveyed in Decimal.  This creates a much more readable experience when looking at SS7 signaling.
2021-04-16 09:28:03 +00:00
Guy Harris 512adcb046 ptvcursor: just do a realloc.
ptvcursor_new_subtree_levels() just needs to do a wmem_realloc() on the
subtree array; that will take care of ensuring the old data is in the
new array.
2021-04-16 08:34:54 +00:00
Taisuke Sasaki 80cfcd8227 ISIS: Add TE Metric extensions (rfc8570) 2021-04-16 08:01:02 +00:00
Preston Hunt b615031126 IEEE 802.11: add dissection of LTF total subfields
Add user-friendly dissection of Max R2I/I2R LTF Total subfields.
2021-04-16 07:41:22 +00:00
Dr. Lars Völker d90c49e2cf AUTOSAR-NM: Adding support to configure CBV and SNI
The AUTOSAR NM standard defines that the position of CBV can be
byte 0, byte 1, or turned off. For SNI the same options are possible.

This patch replaces the old simplfied "swap configuration" that only
allowed CBV=0/SNI=1 or CBV=1/SNI=0 with the standard compliant
configuration option.
2021-04-16 07:25:18 +00:00
Dr. Lars Völker 77946b1f88 Signal PDU: Not all signals were registered (BUGFIX)
For some registered signals no filters were registered. This code
fixes this.

Closes: #17432
2021-04-16 07:08:41 +00:00
Simon Holesch fa483ac191 ptvcursor: Fix crash with deeply nested subtrees
If the proto tree is more than 8 levels deep, the subtree_lvl array
length is extended, by allocating a new area and copying everything into
that new area. However the old array length wasn't calculated correctly,
so only part of the subtree_lvl array was copied, causing a crash after
two ptvcursor_pop_subtree() calls.
2021-04-16 06:52:07 +00:00
Kevin Hogan bbcc605ee2 Fix issues with tcptrace graph
1. In order to keep error bars and scatterplot in-sync for segment and
SACK graphs, tell QCustomPlot that the data is already sorted when
adding it to scatter plots. [ Otherwise it will re-sort the data and
potentially get out-of-sync with the error bars graphs ]

2. Clear and hide error bars plottables in fillGraph() similar to what
is done for other graphs.  [ otherwise QCustomPlot may attempt to draw
error bars on graphs where they are not relevant ]

3. Do not mark window update packets as duplicate acks.
2021-04-16 06:35:11 +00:00
Jirka Novak f460e7b18f Fix: RTP Player might crash when audio routing touched during play 2021-04-15 23:54:06 +02:00
Jirka Novak c8479e41ae VoIP dialogs: Improvements and new functions
Changes:
- RTP Player added to Telephony/RTP menu.
- When openning RTP Analysis or RTP Player from RTP menu, just selected
  stream is added. When Ctrl is hold during opening, reverse stream is
searched and added too.
- RTP Player: Added tool to select/deselect all inaudible streams
- RTP Player: Added Prepare Filter button
- RTP Player: Added Analyze button
- RTP Analysis: Added Prepare Filter button
- documentation updated

Code changes:
- RTP Player::rescanPacket() is not fired multiple times during rate change and during dialog creation
- Error shown in RTP player is cleared after every new decode of streams
- RTP Player handles case when Qt do not emit stop stream event
- "Select" menu code unified between dialogs>
- RTP Player: Audio routing menu unified
- buttons are connected to actions by signals()
- Analyze dialog is called by list of rtpstream_id, not rtpstream_info
2021-04-15 21:19:51 +00:00
Gerald Combs 212ff30603 RTP: Fixup stream ID hashing.
Update our hash value when calling add_address_to_hash. Fixes:

________________________________________________________________________________________________________
*** CID 1476121:  Incorrect expression  (USELESS_CALL)
/home/wireshark/builders/wireshark-master-fuzz/clangcodeanalysis/build/ui/rtp_stream_id.c: 141 in pinfo_rtp_info_to_hash()
135     	/* SRC PORT | DST_PORT */
136     	/* SSRC */
137     	/* SRC ADDR */
138     	/* DST ADDR */
139     	hash ^= pinfo->srcport | pinfo->destport << 16;
140     	hash ^= rtp_info->info_sync_src;
>>>     CID 1476121:  Incorrect expression  (USELESS_CALL)
>>>     Calling "add_address_to_hash(hash, &pinfo->src)" is only useful for its return value, which is ignored.
141     	add_address_to_hash(hash, &pinfo->src);
142     	add_address_to_hash(hash, &pinfo->dst);
143
144     	return hash;
145     }
146
2021-04-15 21:01:28 +00:00
Pau Espin 040212119d bssmap: Parse 'Last Used E-UTRAN PLMN Id' in Common Id 2021-04-15 17:33:12 +02:00
Chuck Craft 8390771a56 Update README.plugins (typo - ENABLE_PLUGIN_IFDEMO) 2021-04-15 07:51:38 +00:00
Kevin Hogan 92e652ebfa Fix adaptive sampling performance on scatterplots
QCustomPlot's adaptive sampling decimates the data to be plotted based
on the screen resolution.  Specifically, if many data points fit within
the same pixel on the X (key) axis, then QCustomPlot attempts to plot
only the min value, the max value, and a few values in-between to
maintain a good "density" on the Y (value) axis.

The density QCustomPlot wants is about one datapoint for every 4 pixels
covered by the value range of a single X (key) pixel.  Unfortunately,
this calculation is flawed if all values also fit within a single pixel
on the Y (value) axis - so this change fixes that bug.
2021-04-15 07:34:19 +00:00
Chuck Craft 293eb2f534 WSDG: add mention of pluginifdemo in Qt Information 2021-04-15 07:16:09 +00:00
Guy Harris 776957ec8b Clean up the "print interface link-layer/time stamp types" loop.
Initialize the exit status before the loop, and just break out of the
loop if something fails, so that the code following the loop can destroy
the console in Wireshark on Windows and then go to the clean exit code.
2021-04-14 23:36:07 -07:00
Guy Harris a9b3dfbbc7 Wireshark: when printing -L output, just create the console once.
On Windows, rather than creating and destroying the console twice for
each interface, just create it when we start printing and destroy it
when we finish printing.
2021-04-14 22:51:21 -07:00
Michael Tuexen f099bd179a Fix conversation table when using epoch based time
Ensure that if using tshark -q -t e -z conv,tcp the reported
start time is relative to the epoch time and not relative to
the time of the first packet in the capture file.

Thanks to Theresa Enghardt for reporting the issue and to
Peter Lei for initialy looking into it.
2021-04-15 03:42:47 +00:00
Preston Hunt 4c42707f66 IEEE 802.11: process RU allocation region
Process RU allocation region separately from the RU allocation.
Otherwise, the custom dissector for RU allocation will report a "bogus"
value.
2021-04-14 15:07:02 -07:00
Gerald Combs 8af90fcf47 CMake: Pass /diagnostics:caret to Visual C++.
Pass /diagnostics:caret to Visual C++ so in order to bring us in line
with Clang and gcc.
2021-04-14 21:30:45 +00:00
Preston Hunt 7a199b6e05 IEEE 802.11: use custom display for trigger frames
The poll and report subvariants of the User Info field for the Ranging
Trigger frame have many of the same fields as in the Basic Trigger
frame. This commit copies the existing custom dissector functions which
provides more useful information to the end user.
2021-04-14 20:37:36 +00:00
Gerald Combs 1dc50f7433 CMake+CI: Colorize our compiler output.
As described at

https://medium.com/@alasher/colored-c-compiler-output-with-ninja-clang-gcc-10bfe7f2b949

both Clang and gcc generate colorized output when they detect a
terminal, but not for piped output, which is the case when using Ninja.
Add an ENABLE_COMPILER_COLOR_DIAGNOSTICS CMake option, and set it to
"ON" when we're using Ninja.

In the merge-req:ubuntu-gcc-ctest and merge-req:ubuntu-clang-other-tests
GitLab CI jobs, generate colorized HTML report artifacts using
ansi2html.
2021-04-14 12:42:00 -07:00
Lingao Meng cf46f0d747 Mibeacon: Unauthorized withdrawn 2021-04-14 14:58:18 +00:00
Lingao Meng fb8b1a4098 Mibeacon: Unauthorized addition, application withdrawn. 2021-04-14 14:58:18 +00:00
Jirka Novak c7f5646249 VoIP dialogs: Performance improvements
Retap and UI response are much faster when many RTP streams are
processed. RTP Streams/Analyse 1000+, RTP Player 500+.

Changes:
- RTP streams are searched with hash, not by iterating over list.
- UI operations do not redraw screen after every change, just after all
  changes. UI is locked when rereading packets.
- Sample list during RTP decoding is stored in memory so wireshark uses
  just half of opened files for audio decoding than before.
- Analysis window checkbox area is limited in height
- Dialogs shows shows count of streams, count of selected streams and
  count of unmuted streams
- Documentation extended with chapter about RTP decoding parameters
- Documentation extended with performance estimates
2021-04-14 14:02:58 +00:00
Alexis La Goutte 38d279326a Fix -Wdocumentation warning 2021-04-14 14:01:49 +00:00
Meng Lingao 81a055b78c MiBeacon: Add dissector for xiaomi bluetooth protocol 2021-04-14 08:27:35 +00:00
Guy Harris fcb56bd1d4 Clean up printing of interface information.
In dumpcap, if we're being run by TShark or Wireshark, if there are no
link-layer types, just provide an empty list to our caller; let them
construct an empty list of link-layer types when they read our output.

In the code that reads that list, don't report an error if the list is
empty, rely on the caller to do so.

Have capture_opts_print_if_capabilities() do more work, moving some
functions from its callers to it.
2021-04-13 23:14:09 -07:00