Commit Graph

86888 Commits

Author SHA1 Message Date
Jaap Keuter cc04dad6d0 Qt: Put p->show() before p->setVisible to allow later to take effect
Closes #18882
2023-03-09 13:35:34 +00:00
Mathis Marion d574cd2c24 Add support for Wi-SUN JM-IE and JM-PFL 2023-03-09 10:33:48 +00:00
Mathis Marion 0355477618 Add support for Wi-SUN LBATS-IE 2023-03-09 10:33:48 +00:00
Mathis Marion bf53ea5080 Drop support for Wi-SUN NR-IE Listening Type
This feature was dropped between versions 1.1v00 and 1.1v01 of the
Wi-SUN FAN specification.
2023-03-09 10:33:48 +00:00
Dr. Lars Völker 321932d310 TECMP: Cleanup and fix units
- The Voltage was not showing the unit V.
- The temperatures now use directly the base unit degree Celsius.
2023-03-09 09:54:15 +00:00
Gerald Combs 9a63e4cf79 ORAN FH CUS: Add an array length check
Fixes #18895.
2023-03-09 09:40:31 +00:00
John Thacker 2a7e4982a5 dumpcap: Make debugging compile again
Commit e921b804d0 removed the
user data parameter from logging, so remove it here.

Explain how the debugging defines work.

If DEBUG_DUMPCAP is defined and dumpcap is a capture child, don't send
logs to stderr with normal formatting, because that will be connected to
the sync pipe.  Don't send them to stdout either, because that can be
connected to a data pipe (e.g., for retrieving interface information.)
Instead, send it to stderr with the special formatting so that the
parent recognizes it.

Use va_copy if both DEBUG_DUMPCAP and DEBUG_CHILD_DUMPCAP are defined,
avoiding undefined behavior that can lead to segfaults.

Set the log level to DEBUG when running as a capture child if the
DEBUG defines are set, because sync_pipe_start doesn't pass along
log level information. If you turned on the extra #define, you
presumably want to debug.

If logging to a file, open the file before any log messages.

Get rid of a check for the log level being below the default level.
It's either redundant of a check already done in ws_log_full, or it
prevents logs from being shown when dumpcap is run standalone with
logging options.
2023-03-08 21:22:51 -05:00
Jaap Keuter 92fb895241 netlink: Add netfilter conntrack status flag hw_offload 2023-03-08 20:08:04 +00:00
Jaap Keuter 4c7d2a771f netlink: Add netlinkrt handling of RTM_SETLINK
References #18697
2023-03-08 18:04:26 +01:00
Jaap Keuter 0e63c25f66 netlink: implement new identifiers from Linux 6.2 kernel 2023-03-08 13:58:48 +00:00
Guy Harris ff9e2494a1 json_dumper: rework the error checking to improve error messages.
Fix the file name in the introductory comment.

Update a comment to note that a base64 value is handled, in some ways,
like a nested element, even though it's not nested in the way that an
object or array is.

Have json_dumper_bad() write current stack depth and the current and
previous types in, if possible, symbolic or numeric form; don't dump
other information.  Also have it set JSON_DUMPER_FLAGS_ERROR, so no
other routine needs to do so.

Add routines to check for dumper stack overflow *and* underflow and
report them with appropriate messages, and use them in routines that
push onto or pop off of that stack, respectively.

This means that the stack depth won't overflow or underflow, so we can
make it unsigned (as it will never underflow below 0) and don't need to
check for negative or bigger-than-the-stack values.

Pull check out of json_dumper_check_state() into various existing or new
routines (for common code to call in those existing routines), and have
the error messages passed to json_dumper_bad() give a more detailed
explanation of the particular problem detected.
2023-03-08 05:06:25 -08:00
Igor Dmitriev 212cec9f7b TRDP: Fixed typo and indentation in packet-trdp.c 2023-03-08 09:58:43 +00:00
Igor Dmitriev 649b20cb44 TRDP: Updated release notes 2023-03-08 09:58:43 +00:00
Igor Dmitriev c11cffda3c TRDP: Add dissector for TRDP protocol 2023-03-08 09:58:43 +00:00
Dr. Lars Völker 17273f2258 UDS: Remove unneeded functions to clean up code
Removed the following functions as they are not needed anymore:
- masked_guint8_value
- tvb_get_guintX
2023-03-08 09:03:06 +00:00
Stig Bjørlykke 6fc17a1303 ieee80211: Add a field for WLAN Flags
Add the frame control flags string to a new field. This can be
used in a custom column, similar to TCP Flags.
2023-03-08 07:28:28 +00:00
Michal Ruprich 34d3f122d3 Converting QByteArray to const char * 2023-03-07 19:31:50 +00:00
Martin Mathieson e6eca89501 ORAN FH CUS: Misc usability changes 2023-03-07 17:03:08 +00:00
Dr. Lars Völker 921a9a0ea2 SOME/IP: UDP Heur should not always return TRUE (BUGFIX)
The old SOME/IP Heur always returned true, even for non SOME/IP. This is
fixed now.
2023-03-07 16:54:36 +00:00
David Perry 808fcd3c2b SMPP: Add command/response field 2023-03-07 13:34:34 +00:00
Tomasz Moń 248ee51e36
USBLL: Remove unnecessary packet ends transfer check
Check whether last received packet ended transfer on STALL only if there
was active transfer key set. This fixes failed transfer type assertion
for control transfers without data stage that were STALLed by device
(during status stage).
2023-03-07 07:57:21 +01:00
John Thacker a93c775849 Qt: Fix copying from System Default profile
Set the "profile_filename" property on the special System Default
QAction in the CopyFromProfileButton so that the action will actually
do something when triggered.

Fix #13373
2023-03-07 01:22:10 +00:00
Guy Harris d17b9baec3 sharkd: allow nameless base64 items and objects.
Elements of an array don't have names.
2023-03-06 10:37:12 -08:00
Martin Mathieson d91b2448c9 ORAN FH CUS: Also configure ext11 using ext12 settings 2023-03-06 16:44:51 +00:00
Mathis Marion 2ae0c1eadc Add Wi-SUN IEEE 802.11 KDE dissector
This adds the following KDEs defined by the Wi-SUN FAN specification:
- Pairwise Transient Key KDE           (PTKID)
- Group Transient Key Liveness KDE     (GTKL)
- Node Role KDE                        (NR)
- LFN Group Transient Key KDE          (LGTK)
- LFN Group Transient Key Liveness KDE (LGTKL)
2023-03-06 15:36:58 +00:00
Mathis Marion 54abe7f328 Support Wi-SUN EAPOL Key Data dissection
The Wi-SUN FAN specification describes the format of the EAPOL-Key frame
in section 6.5.2.2 (Authentication and PMK Installation Flow):

  Descriptor Type = 2
  Key Information:
    1. Key Descriptor Version = 2
    2. Key Type = 0
    3. Install = 0
    4. Key Ack = 0
    5. Key MIC = 0
    6. Secure = 0
    7. Error = 0
    8. Request = 1
    9. Encrypted Key Data = 0
    10. SMK Message = 0
    11. Reserved = 0
  Key Length = 0
  Key Replay Counter = see [IEEE802.11] section 11.6.2.
  Key Nonce = 0
  EAPOL-Key IV = 0
  Key RSC = 0
  Key MIC = 0
  Key Data Length = length of Key Data field in octets.
  Key Data = PMKID KDE if the PMK is live, PTKID KDE if the PTK is live, GTKL
  KDE, Node Role KDE, and LGTKL KDE.

The current dissector will try do decrypt if the Key Type is 0 while the
Encrypted Key Data is unset, which appears to be for supporting
non-standard WPA implementations. The Key Data is not encrypted in
Wi-SUN, so a workaround is made to dissect the Key Data if the Key
Length is 0.
2023-03-06 15:36:58 +00:00
Mathis Marion 0fdf91e1ec Add id-kp-wisun-fan-device object identifier
Defined in the Wi-SUN FAN specification as:

    id-kp-wisun-fan-device ::= {
        iso(1)
        identified-organization(3)
        dod(6)
        internet(1)
        private(4)
        enterprise(1)
        Wi-SUN (45605)
        FieldAreaNetwork(1)
    }
2023-03-06 15:36:58 +00:00
John Thacker 33ed5200a2 docs: Grammar
Fix a couple cases of using "it's" instead of "its" for the possessive
2023-03-06 08:47:09 -05:00
Andreas Schultz 6a7d6bbee6 PFCP: add BBF TR-459.2 and TR-459.3 IEs 2023-03-06 13:03:13 +00:00
Andreas Schultz b044959e34 PFCP: readd TP Created NAT Binding
Was dropped in error in ccbc0d5fe9
2023-03-06 13:03:13 +00:00
John Thacker 53914b0447 colors: Improve handling of errors
Pop up a dialog about bad coloring rules when reading the file
(e.g., when first starting Wireshark), rather than waiting until
you try to edit them.

Have that dialog have details of the problem with the filter
instead of a generic message. The report_warning code will
consolidate multiple warnings into one if more than one filter
has an error, rather than have lots of pop-ups.

Since the dialog (or console message, in the unlikely event that
somehow the colorfilters are read in a CLI tool) is called from
the color filters code, get rid of the separate non-specific
pop-up in ColoringRulesDialog and the special preference for
having a bogus filter.

Now, if the user has a bogus filter in the current profile's
colorfilter, they'll get a useful pop-up warning at startup,
when that filter is disabled. For filters imported / copied from
other profiles through the coloring rules dialog, they'll get the
same useful pop-up.

For trying to enable a disabled coloring rules with an error, or
inserting a *new* coloring rule with invalid filter expression (despite
the editor's Red background warning about an invalid expression),
there's already both the hint at the bottom of the screen and the
OK button becomes disabled. (Maybe the hint could be larger or
bold or something when there's an error.)

Fix #14906. Fix #15034
2023-03-06 12:17:02 +00:00
Martin Mathieson c682f53222 ORAN FH CUS: Section ext11 configured by ext13 2023-03-06 10:14:55 +00:00
Stig Bjørlykke 7af40c9971 ieee80211: Save AKM_KEY for tag number 221
Tag number 221 (Microsoft WPA Information Element) contains an AKM type.
Save this to fix wlan decryption when this tag is used by Access Point.
2023-03-06 08:59:15 +00:00
Guy Harris d5a2f6fe2c sharkd: clean up the JSON marshalling.
Add routines to open and close an object, and use them.  The open
routine takes a member name as an argument, sets it, and begins an
object; the close routine ends the object.

Have sharkd_json_response_close() end the object, just as
sharkd_json_response_open() begins it.

Have sharkd_session_process_tap_stats_node_cb() take a key and use that
when opening the array.

Have sharkd_session_process_frame_cb_tree() take a key and use that when
opening the array.

This makes the structure of the code better mirror the structure of the
JSON objects it marshals.

If there's a key for a string value, but there's no string value or no
format for a string value, crash with a null-pointer dereference rather
than putting out the key and then, on the next operation, getting a
"json_dumper_bad(): Bad json_dumper state: illegal transition" error as
in, for example, issue #18886. This way, it will be a bit more obvious
what the true error is.

If thre's no key for a base-64 value, crash rather than not setting the
key, for the same reason.
2023-03-06 00:00:27 -08:00
Gerald Combs ffbfc1d454 Resources: Remove absolute paths from SVGs
Fixes #17429.
2023-03-05 14:17:42 -08:00
John Thacker a5bdae177e docs: Update Windows temporary directory location in manpages
Update the example typical location for the temporary directory
on Windows in the manpages to something newer than where Windows NT
or Windows 98 might put it.

Fix #18463
2023-03-05 17:52:08 +00:00
Gerald Combs f6703b9b36 [Automatic update for 2023-03-05]
Update manuf, services enterprise numbers, translations, and other items.

services failed.
2023-03-05 16:42:23 +00:00
Dr. Lars Völker 375fa02c98 UDS: Show unparsed bytes
This patch cleans up the offset and length handling to allow showing
unparsed bytes.
2023-03-05 14:44:43 +00:00
Martin Mathieson 1377421925 ORAN FH CUS: ext11 bundles can be configured using ext6 2023-03-05 12:53:52 +00:00
Guy Harris 3854770f15 sharkd: don't report an error if there is no error.
If dfilter_compile() succeeds, but the filter contains deprecated
tokens, don't report an error from dfilter_compile() as a warning, as
there *is* no error from dfilter_compile().  Instead, report "Filter
contains deprecated tokens".  (Feel free to improve the error text.)

Fixes the crash, at least, in #18886.
2023-03-05 00:05:26 -08:00
John Thacker 736ed83000 docs: Document wmem in Developer's Guide
Add information from the Wiki Development/Tips page and from
README.wmem to the Developer's Guide.

Also fix a small typo in README.wmem

Fix #17126
2023-03-05 02:23:32 +00:00
Dr. Lars Völker f92d0ded8f TECMP: cleanup endianness for 1 Byte fields 2023-03-05 02:22:13 +00:00
Zach Chadwick ac28130c76 Sharkd: show RTP ssrc as hex and improve errors
The token format used by rtp-analyse and rtp-download expect the SSRC
field to be a hex string parsable by `ws_hexstrtou32()` as seen in
sharkd_session.c:760. The output from tap:rtp-streams was displaying
it as an unsigned integer.

For consistency, this field is now displayed as a hex string in the
output.

If the call to download an RTP stream did not match any payloads, Sharkd
would not return any information at all.

This now returns an error message indicating that there is no RTP data
available.

Adds three new selftests and sample pcap.
2023-03-04 22:54:55 +00:00
John Thacker c7823a14ec VNC: Fix accidental offset increment in RRE
This was accidentally added in f424256889
and is clearly incorrect: https://www.rfc-editor.org/rfc/rfc6143#section-7.7.3

Fix #18883
2023-03-04 08:38:28 -05:00
John Thacker 69d82b44ef Follow: Remove some unused code 2023-03-04 02:27:08 +00:00
John Thacker c9c5617aed UDS: Use wmem to create a string
Related to #18878
2023-03-03 22:58:12 +00:00
Gerald Combs ccf01edf04 macOS: Update the ChmodBPF postinstall script
`launchctl load` and `launchctl unload` are deprecated. Use `launchctl
bootstrap system` and `launchctl bootout system` instead.
2023-03-03 14:07:51 -08:00
Dr. Lars Völker 5bbaf9ef35 UDS: fixing typos indification and sub-function 2023-03-03 15:15:47 +00:00
John Thacker e1b85eacd4 epan: Do not try to add a bits item with negative bit length
A negative number of bits in a bit item isn't allowed. Treat it
as a very large number (i.e., as unsigned), and throw a
ReportedBoundsError. This was already happening in most cases,
but not in the edge case of a number of bits between -1 and -7
(which was being rounded up to 0 octets and passed our length checks.)

Fix #18877
2023-03-03 01:52:31 +00:00
Alexis La Goutte fc15fe3b4a DRDA: Add SQL Statement Length
Add missing length to SQL Statement

Close: 18876
2023-03-02 23:47:05 +00:00