Commit Graph

86908 Commits

Author SHA1 Message Date
Harald Welte 3128d7534f WIP: RSL Ericsson support
Change-Id: I1e9b3c08848f4feb60361e629d7225b6d2e1dcbd
2023-03-11 14:53:56 +01:00
Harald Welte 43968887ba HACK: Hand GPRS RLC payload to GPRS LLC dissector
this is an ugly hack, as there is no code for packet re-assembly
in betwween, i.e. we only get proper dissection if the LLC message
was fitting entirely into one RLC block.  Nevertheless, sufficient to
see things like RAU, ATTACH, IDENTITY procedures.

Change-Id: I1fc488aa58353e5f4264b940f9f4c18987148a7d
2023-03-11 14:50:02 +01:00
John Thacker a329db7dd2 TLS: Fail without exception when decrypting truncated records
On truncated TLS records, just fail when attempting to decrypt or
calculate the handshake hash instead of raising an BoundsError.
The appropriate exception will be raised later when fields are
actually added to the tree.

This only makes a difference on the first pass, especially with
unencrypted initial handshake messages, as we don't try to decrypt
or calculate the hash on the second pass.

Fix #18896
2023-03-11 02:03:16 +00:00
Dr. Lars Völker 5f7122828c UDS: make code more readable by reformatting HFs 2023-03-10 21:53:13 +01:00
Harald Welte ae38e9b092 New dissector for GSM L2RCOP (3GPP TS 27.002)
This is a dissector for the GSM "Layer 2 Relay Character Oriented
Protocol" as used in non-transparent CSD (Circuit Switched Data)
calls in GSM and UMTS cellular networks.
2023-03-10 19:55:19 +00:00
Harald Welte f64e8f0796 Add new dissector for GSM RLP protocol (3GPP TS 24.022)
This protocol is used in the user plane of non-transparent CSD (Circuit
Switched Data) calls in GSM networks. RLP frames are sent over the Um
air interface, and are sent as modified V.110 frames over 64k TDM
channels in the back-haul/core network.  For modern implementations,
this means in RFC4040  RTP CLEARMODE.

As there's no V.110 decoder in wireshark, we cannot connect the RLP
decoder to that.  However, we hook it up to the GSMTAP dissector to
enable other software to pass the decoded RLP frames into wireshark.
2023-03-10 19:55:19 +00:00
Dr. Lars Völker 5c32f5bbd1 UDS: Cleanup and rework 2023-03-10 18:59:59 +00:00
Gerald Combs 0a558f9143 GitLab CI: Adjust our fuzz run time
[skip ci]
2023-03-10 10:07:10 -08:00
Mathis Marion c8e2cc7552 Add Silicon Labs copyright to packet-wisun.c 2023-03-10 17:26:22 +00:00
Mathis Marion 26c691c8cd Use Wi-SUN PHY mode ID dissector for MDR command 2023-03-10 17:26:22 +00:00
Mathis Marion ab06f6de7a Add Wi-SUN MDR command dissector 2023-03-10 17:26:22 +00:00
Mathis Marion 9f4947609e Always dissect IEEE 802.15.4 vendor command OUI
This changes the tree received by registered vendor dissectors (the
OUI isn't part of the dissected tree anymore). Thankfully there are
currently no dissector registered.
2023-03-10 17:26:22 +00:00
Zoran Bošnjak 3cbb560102 specs conversion minor update
Update for structure change introduced in revision #007b214 of asterix-specs.
2023-03-10 17:03:45 +00:00
hidd3ncod3s 1e5514061d Fix build warnings 2023-03-10 06:44:14 +00:00
hidd3ncod3s 2452c537e3 Generate SRVSVC parser using PIDL 2023-03-10 06:44:14 +00:00
hidd3ncod3s c1c9040952 Update SRVSVC IDL and CNF 2023-03-10 06:44:14 +00:00
Preben Guldberg b50ed1dc80 GUI: Colorize with filter could use an old filter
When right-clicking an item in the packet details and using "Colorize
with Filter", the colour may be applied using the wrong filter.

The code currently only updates the filter used for "Colorize with
Filter" if the packet details are visible and has focus. This is not
the case when you switch from one packet to another (at least by
clicking the other frame in the packet list).

The patch moves the emit of fieldFilterChanged() up to where the
filed_filter is identified. This seems the least intrusive.
2023-03-09 22:40:35 +00:00
Gerald Combs 3b7f810f36 Docs: Fix the Developer's Guide chapter order
The build intro should be the first chapter in part II.
2023-03-09 10:40:47 -08:00
Jiří Engelthaler 45274a7b9a IEC104: Unifying filter names 2023-03-09 17:53:11 +00:00
Martin Mathieson 32541d81c9 ORAN FH CUS: Expert malformed info if > 3 bytes in frame after PDU 2023-03-09 15:42:16 +00:00
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