Commit Graph

90908 Commits

Author SHA1 Message Date
Kripa Varma 74827d33dd EHT PhyType support for wlan_radio dissector
11be frames are getting classified as Unknown PhyType.
Adding support for correctly classifying 11be frames.
Closes#19706.
2024-04-03 00:15:01 -07:00
Gerald Combs 755fc1dbd3 ui: Convert our remaining UI code to C99 types
Ping #19116
2024-04-03 05:01:03 +00:00
Lin Alan 124d73b6e9 RADIUS: Updates to dictionary.huawei
Several fields had incorrect field types. Also added a few missing attributes.
Closes #19733.
2024-04-03 00:10:24 +00:00
Gerald Combs 932ec25362 Qt: Fix a preferences dialog data type
We pass a pointer to an unsigned to module_prefs_unstash, not a
gboolean.
2024-04-02 13:26:09 -07:00
Gerald Combs d5b092268f Convert extcap_parser to C99 types
Ping #19116
2024-04-02 11:43:49 -07:00
Martin Mathieson 4dda75fb0d Add a built-in dissector for ZMTP 2024-04-02 15:00:49 +00:00
John Thacker 0949fd3498 doc: Mention updated Lua 5.3/5.4 support 2024-04-02 08:53:53 -04:00
John Thacker efdeaac67d Qt: Change IO Graph tracer when current UAT row changes
When the current row in the table of graphs changes, if it's
valid and enabled, scan to see if we can make that the graph
the QCP Tracer (the circle identifying points) is associated
with. If it's not enabled, don't scan because we don't want
to switch the tracer from the old graph to the graph in the
first row of the table.

If the validity changes later, we'll do a scan via
modelDataChanged -> syncGraphSettings.
2024-04-02 07:59:20 -04:00
Gerald Combs d7926e3290 epan: Switch proto_get_frame_protocols to bools 2024-04-01 17:57:54 -07:00
John Thacker f0f8cdce36 Qt: Add some comments and links to IO Graph TODO
[skip ci]
2024-04-01 20:21:27 -04:00
Gerald Combs 76255f37fd Mitel DECT: Change a gboolean to bool
Change ip_encapsulated from a gboolean to a bool. This removes the last
gboolean pointer cast revealed by `grep -rl '\( *gboolean *\* *\)'`.
2024-04-01 21:41:37 +00:00
Guy Harris 4cf64a4ace ATN: update some comments.
HTTPS Some More Places.

Instead of giving a now-dead link to a not-archived-in-the-Wayback-
Machine ICAO document repository, give a live link to a PDF of ICAO Doc
9705 Second Edition.
2024-04-01 11:38:17 -07:00
John Thacker b5970abe2d UAT: Handle TRUE and FALSE regardless of case
Handle "TRUE" or "FALSE" with any case for a UAT boolean.
Continue to write it as TRUE or FALSE in the files, for
backwards compatibility for versions before 4.4.
Note that the IO Graphs have their own version of this, from
when a UAT wasn't used (pre-2.6), though we can probably
stop writing "Enabled" and "Disabled" in that case (but
continue reading them for a while.)

Follow up to f3311c1840
2024-04-01 13:38:17 -04:00
John Thacker 0b93055203 prefs: Don't cast a bool pointer to a gboolean pointer
In prefs_pref_to_str, since valp is now a bool* for PREF_BOOL,
cast it appropriately. Otherwise ASAN will crash, complaining of
a buffer overflow.

Follow up to 5a9393c646
2024-04-01 12:29:53 -04:00
Stig Bjørlykke 6afe57a1b8 Remove parentheses from return bool
Remove use of parentheses from return bool statements.
2024-04-01 15:18:09 +00:00
Jaap Keuter 5a91ac3af9 Doc: tweak some of the Lua API documentation 2024-04-01 13:25:28 +00:00
John Thacker 5919c84347 Move libm linkage to libraries
The json dumper code in wsutil uses isfinite, which is in
math.h, and some of the command line taps and other things
in ui use math.h. Nothing in ui or wsutil includes math.h
in a header. tshark, dumpcap, and sharkd don't include math.h
and only link with libm because they happen to use functions
from ui and/or wsutil that need it (at least on some platforms,
see 024f8a27bd).

Move linking to libm to the ui and wsutil libraries as PRIVATE
dependencies, so that executables don't have to worry about
needing to add linking with libm because of using a function
from a library.
2024-04-01 08:23:42 -04:00
Guy Harris 773bcf6cb9 tcap: make a variable not used outside the dissector static. 2024-04-01 01:50:19 -07:00
John Thacker 7084b6e4db Change some extern references to boolean preferences
A couple of dissectors referenced boolean preferences declared
in other dissectors via extern. Change them to bool as well.
In the case of ANSI TCAP, that (plus two other dissectors from
the non ANSI TCAP dissector) doesn't seem to be used at all, so
just remove the declaration.

Follow up to 5a9393c646

Fix #19730
2024-04-01 08:22:01 +00:00
Gerald Combs fb70e77fd1 Qt: Convert our utilities to C99 types
Ping #19116
2024-04-01 08:20:43 +00:00
Gerald Combs b00b162a87 Qt: Convert our widgets to C99 types
Ping #19116
2024-04-01 08:19:51 +00:00
Gerald Combs f3311c1840 Qt: Convert our models to C99 types
Ping #19116
2024-04-01 08:18:57 +00:00
Gerald Combs 2ec0c3ff90 epan: Convert the color filters code to C99 types
Ping #19116
2024-04-01 08:18:01 +00:00
Gerald Combs cd3588d52f ui: Convert the CLI code to C99 types
Ping #19116
2024-04-01 08:14:53 +00:00
Gerald Combs d81488c167 Lua: Convert to C99 types
Ping #19116
2024-04-01 08:14:13 +00:00
Guy Harris 45e75413a8 wslua: make the heading for the example a discrete heading.
That way, it looks like the other items in that section, rather than
getting a section number.

(There does not appear to be an obvious way to make that show up *after*
the argument and return value items, which is where it really belongs.)
2024-03-31 19:16:32 -07:00
John Thacker a8c5341dcc Qt: IO Graph Y Axis factor needs to trigger a recalc
Also exposed by 81c7238776
2024-03-31 17:08:46 -04:00
Guy Harris 7b6e196c41 wslua: put the example of use for treeitem:add at the right level.
It should be a subsection of the entry for treeitem:add, which means it
must be a level *5* header.
2024-03-31 19:50:57 +00:00
Gerald Combs 949191823f epan: Use bools in our pref_set_pair_cb callbacks
Ping #19116
2024-03-31 11:38:35 -07:00
Guy Harris 62bc594401 wslua: fix the documentation for Tvb:reported_length_remaining.
Use the WSLUA_OPTARG_xxx convention for it optional offset argument, so
that the documentation generation process properly documents it.
2024-03-31 10:51:30 -07:00
Gerald Combs 5a9393c646 Switch our boolean preferences to bool
With the aid of a script, convert our boolean preferences from gboolean
to bool.

Ping #19116
2024-03-31 16:09:23 +00:00
John Thacker 20046e4a0d NTLMSSP: Initialize encrypted session key
We copy the sessionblob to encryptedsessionkey if it has between
1 and NTLMSSP_KEY_LEN bytes; if it has less than the full amount,
make sure that the remaining bytes of encryptedsessionkey are
initialized to zero because they're copied around and printed
as expert info.

Fix #19728
2024-03-31 08:22:54 -04:00
John Thacker 7c744e7933 editcap: Don't memmove more than allocated in the buffer
When moving from the begining with a beginning offset specified,
don't run off the end. Subtract the source memory area's full offset
from the beginning of the buffer from the capture length.

Fix #19724
2024-03-31 12:21:56 +00:00
John Thacker 6aed3e5232 Qt: IO Graph bar border color
Set the IO Graph bar graph color to a somewhat darker color of the graph
for an outline. This looks good now that the bar widths adjust
correctly and don't overlap. (68f427822a)

We should, ideally, set the outline to a slightly *lighter* color when
using dark mode instead, but we don't yet respect dark mode in any
of our widgets that use QCustomPlot. Whenever we do so, we should make
that change.

Fix #17422
2024-03-31 12:20:41 +00:00
Casper Meijn 9aa9a6b048 nmea0183: Add ZDA sentence dissector
Add sentence dissector for ZDA messages.
- It splits the time field into separated hour, minutes and seconds fields.
- The other fields are named and simply display their contents
- Report an expected but missing field
- Other sentence types are dissected by the existing code (split into unnamed fields)
2024-03-31 12:17:48 +00:00
Gerald Combs 0fae2569bf [Automatic update for 2024-03-31]
Update manuf, services enterprise numbers, translations, and other items.
2024-03-31 12:17:08 +00:00
John Thacker be55ec3c0c Mongo: Strengthen heuristic a bit
If the length if bogus (including negative, because the length
is signed in the MongoDB Wire Protocol), fail in test_mongo.
2024-03-31 08:50:42 +00:00
Martin Mathieson 90654d3f76 Fix some IP lengths 2024-03-31 08:28:26 +01:00
John Thacker 2862ae66f5 Qt: Update ProgressFrame to use a bool
The signals and slots don't work without switching this
from a gboolean* to a bool* as well.

Fixup 444cb3cea1
2024-03-31 03:40:29 +00:00
John Thacker 57d98f1362 Qt: Recalculate IO Graph when switching plottable
When switching the plottable from a QCPGraph to QCPBars or vice
versa, we have to recalculate the graph to insert the data.
If the plottable is the same but changes styles, we only need
a replot (which we do in the calling function.)

This was exposed by 81c7238776,
which removed the automatic recalculation in nearly all
circumstances.
2024-03-30 21:00:42 -04:00
Gerald Combs 2562674df0 epan: Convert the secrets code to C99 types
Ping #19116
2024-03-30 16:59:28 -07:00
Martin Mathieson 4bc1dcaa83 Protobuf: don't warn about re-including base types 2024-03-30 22:59:44 +00:00
Gerald Combs e85196966d epan: Convert a couple of proto tree callbacks to C99 types 2024-03-30 22:54:58 +00:00
Gerald Combs e10839dd5d epan: Convert our stream printing code to C99 types 2024-03-30 14:27:39 -07:00
Gerald Combs 1816bd1a11 Lua+ui: Convert the funnel code to C99 types
Ping #19116
2024-03-30 12:35:25 -07:00
Gerald Combs 444cb3cea1 ui: Convert the top-level ui files to C99 types
Ping #19116
2024-03-30 16:46:56 +00:00
John Thacker 574ed488d1 Qt: Only rescale the one visible IO Graph
We attempt to rescale the IO Graph if it's there's only one visible.
Only rescale the one that is visible, instead of performing unnecessary
calculations on the graphs that won't be shown as well.
If the visibility status changes, recalculation and rescaling occurs again.
2024-03-30 09:59:32 -04:00
John Thacker 81c7238776 Qt: Recalculate IO Graph at more appropriate times
Only set the filter if the full filter has changed. Setting
it when it hasn't changed marks the tap as needing a redraw,
which ends up triggering a full IOGraph recalculation. This
change removes some unnecessary recalculations.

We need to recalculate when changing visibility if the umber
of enabled graphs changed to or from 1, as that might have
changed whether rescaling is done. (This is why QCustomPlot
recommends scaling in the axis ticker instead.) The recalculation
was getting picked up eventually (via syncGraphSettings ->
setFilter -> setting the tap filter -> marking the tap as
needing redraw -> main application timer -> tapDraw -> recalc),
but on the main application tap timer, which has a larger default
delay than the IO Graph Dialog timer when the IO Graph Dialog is open.

This causes the recalculation and thus axis legend update to
happen more quickly when it needs to, instead of having a delay
before the axis title updates.
2024-03-30 13:24:07 +00:00
Martin Mathieson 59fbdef13e Check number of selected bytes for FT_IPv4/FT_IPv6 fields 2024-03-30 13:21:07 +00:00
John Thacker 38c0efcee8 Mongo: Ensure the offset advances
The MongoDB Wire Protocol uses _signed_ 32 bit integers for lengths.
dissect_bson_document checks for bogus values and ensures that a
non-negative (and at least 5) size is returned, but we need to make
sure to use that return value instead of trusting the value read
from the packet in dissect_op_msg_section.

Fix #19726
2024-03-30 08:07:26 -04:00