Commit Graph

43389 Commits

Author SHA1 Message Date
Joakim Andersson b75107c77f Bluetooth: Fix clock accuracy field offset in sync info
Fix clock accuracy field offset in the sync info information in the
extended advertising header.
The field was placed at offset 4 instead of the current offset + 4.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
2021-08-10 20:33:25 +00:00
Guy Harris 4aee405974 etw: use PACK_FLAGS_DIRECTION() to extract the direction from the flags.
Use PACK_FLAGS_DIRECTION() rather than making with
PACK_FLAGS_DIRECTION_MASK.  They happen to be at the bottom of the flags
option, so no shifing is needed, but it's cleaner to use the macro.

Make the packet flags variable local to the code that uses it, and fix
indentation (don't use tabs - they're not used elsewhere), while we're
at it.
2021-08-09 15:57:29 -07:00
Martin Mathieson c0faa8f1da Some more dissector spellings. 2021-08-08 22:21:38 +01:00
Martin Mathieson 03c3c9a056 check_typed_item_calls: Add some ptvcursor_add...() calls
Fix up some NFAPI calls.
2021-08-08 17:47:42 +01:00
Martin Mathieson 21eb235d15 ORAN FH CUS: Fix ext11 with disableBFs for orphaned PRBs 2021-08-08 12:01:23 +01:00
Dr. Lars Völker 54d47868b8 ISO15765: Cleanup and Bugfix
This patch fixes the wrong value for frame_length being shown in the
header field.

In addition, code is cleaned up and simplified.
2021-08-06 21:38:18 +02:00
Martin Mathieson aaf79b62d7 F1AP stats 2021-08-06 09:31:15 +00:00
Dylan Ulis 74c00f4c2f CIP Safety: Update CRC S5 Logic
1. Extract Method: validate_crc_s5 - Combine various copy-pasted
   sections.
2. For CRC S5 failures, it would previously show the failure as part of
   CRC S5_2, which is misleading. Now, show the failure as part of the
   overall status.
2021-08-06 03:21:52 +00:00
Dr. Lars Völker a030a70bde CAN: Add support for multiple CANs in a trace (bus ID)
This patch allows CAN frames coming in over SocketCAN and TECMP to be
differentiated in order to follow up with different parsing in the
Signal PDU dissector et. al.
2021-08-06 03:05:51 +00:00
Martin Mathieson c2d7ed28af ORAN FH CUS: Fix a couple of issues
U-Plane: Fix check for detecting further sections
C-Plane: For Section ext11, fix loop for disableBW case
2021-08-06 02:49:47 +00:00
Joerg Mayer edaa5a3b55 packet-extreme.c: EDP type 0x15 is (physical) Linkinfo
Beginnings of dissection.
2021-08-05 22:36:53 +02:00
Jaap Keuter 02adaa1385 NSH: Add NSH Next Protocol value None
Closes #17404
2021-08-05 13:58:19 +02:00
Dario Lombardo 7a584511f1 Fix compilation without optional libraries. 2021-08-05 09:27:50 +00:00
Denis Pronin 5cd9646e72 Fixed incorrect calculating hash from quic_cid_t 2021-08-05 06:43:49 +00:00
Dr. Lars Völker 6b990690e8 ISO15765: Adding first support for FlexRay TP
This patch adds first support for FlexRay TP based on the AUTOSAR
specification including FlexRay addressing.

The special message types (0x4 - 0x7) are only prepared but not added
byt this patch.
2021-08-05 06:27:56 +00:00
Joakim Karlsson 9f54ae73f1 NAS 5GS: D.6.3 UE policy section management result 2021-08-04 20:05:43 +00:00
Joakim Karlsson 008536ae74 pfcp: Update to 3GPP TS 29.244 V17.1.0 2021-08-04 19:49:44 +00:00
Dylan Ulis 3c24694048 CIP: Match Connection ID from different fields 2021-08-04 19:34:11 +00:00
Piotr Winiarczyk 74424dddfc btmesh: Add dissectors of scheduler and time opcodes
Add dissectors of some opcodes for Scheduler (5.2.3 Scheduler messages) and Time (5.2.1 Time messages) from Mesh Models document. Closes #17511
2021-08-02 23:46:05 +00:00
Joakim Karlsson 2132c7619d pfcp: Update to 3GPP TS 29.244 V17.0.0 2021-08-02 19:47:18 +00:00
Arkady Gilinsky 53d28ef199 oampdu: Fix and improve queue object parsing
* Parse Queue Object (0xD6/0x0004) according to specification

Signed-off-by: Arkady Gilinsky <8351139-ark-g@users.noreply.gitlab.com>
2021-08-02 14:12:08 +00:00
Martin Mathieson fd65bdaef8 Make a couple of dissector variables static. 2021-08-02 08:51:21 +01:00
Martin Mathieson 9c030f7680 ORAN: take care not to divide by numBundPrb when 0.
Closes #36689
2021-08-01 10:43:57 +01:00
Dr. Lars Völker aac942e44b LIN: Add support for bus specific dissectors
Since typically multiple LINs are used in parallel the IDs of the
small ID space are reused. This patch adds support for handling
multiple LIN ID spaces in parallel.
2021-08-01 06:38:56 +00:00
Joakim Karlsson c49a652eb9 pfcp: Update to 3GPP TS 29.244 V16.8.0
Just for formality, no changes was made in the release
2021-07-31 08:06:56 +00:00
Joakim Karlsson 22b580b946 pfcp: Update to 3GPP TS 29.244 V16.7.0 2021-07-31 08:06:56 +00:00
Prince Paul a0a9d41d13 ASTERIX: Fix value of hf_010_500
Add Item Number 500 to the value
2021-07-31 07:46:12 +00:00
Dylan Ulis 3f9b0e36ea ENIP: Updates from latest spec
1. New EtherNet/IP commands and Common Packet Formats
2. CIP Security: Attributes (These go better in enip vs cip dissector)
3. TCP/IP object: Improve existing attribute parsing
4. Certificate Management Object: Attribute
5. Add units for some existing types
6. Correct hf_ size mismatch
2021-07-30 21:46:22 +00:00
Dr. Lars Völker 4cdd4a13e0 DoIP: Add a name field for each address field
This patch allows the name resolution of address shown as a column
by adding new name fields.

Additionally: Fixed a bug introduced by my last patch.
2021-07-30 21:26:17 +00:00
Martin Mathieson 3b28d5219f Fix some copy-paste filter names.
Detected with tools/check_typed_item_calls.py --consecutive
2021-07-30 18:02:30 +01:00
João Valverde 0693674494 wslog: Add function to log directly without filtering
Used to write custom logging functions.
2021-07-29 20:17:44 +01:00
João Valverde 7b845e7194 wsutil: rename bytestring_to_str() -> bytes_to_str_punct() 2021-07-29 17:23:05 +00:00
João Valverde c3bd5c9d91 Move bytes_to_str() to wsutil
This utility function is useful outside of epan. Move it to wsutil
and export the interface.

The move isn't completely clean as it requires duplicating two small
inline functions but that was necessary to avoiding moving too much at
once.
2021-07-29 17:23:04 +00:00
Martin Mathieson d34d1a1e13 More fussing with masks.
Mostly longer masks with odd numbers of digits.
2021-07-29 10:15:58 +00:00
Oscar Gonzalez de Dios 0b8acdaf68 Fixed trailing whitespaces 2021-07-29 07:32:34 +00:00
Oscar Gonzalez de Dios 0f3731449a Updated support to RFC 8664. SR-PCE CAPABILITY Sub-TLV has been added. SR-ERO subobject updated to RFC version: change ST to NT and, NAI of type NT=6 decoding added, updated flag values to official IANA values. Updated errors of Type 10 according to IANA assigned values and numbers. 2021-07-29 07:32:34 +00:00
David Perry 34ee3cbc48 Change some `wmem_packet_scope()` to `pinfo->pool`
As requested [here][1], help with replacing calls to
`wmem_packet_scope()` with references to `pinfo->pool`.

My principles were:

* Plugins chosen semi-randomly.
* When a calling function already has a `pinfo` argument, just use that.
    * Remove `_U_` from its signature if it was there.
* Don't go more than 2 or 3 levels deep of changing signatures.
* If a function is clearly allocing memory to return, change the
  function signature to take a `wmem_allocator_t *`. Otherwise, either
  that or take a `packet_info *` as seems to make sense.
* No mention of `wmem_packet_scope()` should remain in the files I've
  touched.
    * I didn't always succeed at this, but I made a dent.

[1]: https://www.wireshark.org/lists/wireshark-dev/202107/msg00052.html
2021-07-29 01:36:01 +00:00
Martin Mathieson 1c210185c3 ORAN FS CUS: Add section ext 11 2021-07-28 15:23:11 +00:00
Tomas Kukosa ab1b496194 ITS: use custom value format for DSRC elements Angle and Heading 2021-07-28 07:08:26 +00:00
ismaelrti 9b69d05c2f RTPS: UDPv4 Wan locator bitfied not dissected properly
UDPv4 WAN locator bitfield was using the wrong offset thus the data
shown was not correct.
2021-07-28 06:35:17 +00:00
Dylan Ulis a1e05d09c6 CIP: Updates to match current specification
1. Connection Manager parameter is called 'Redundant Owner' instead of 'Exclusive'
2. Add new CIP Class Names
3. Support new time types: UTIME, STIME, NTIME
4. Add units to data type
2021-07-28 06:18:56 +00:00
David Perry 6e8c7283d6 Change some `wmem_packet_scope()` to `pinfo->pool` 2021-07-27 21:36:43 +00:00
Gtker 6d8bfc146d WOWW: Refactor SMSG_CHAR_ENUM to use ptvcursor 2021-07-27 19:08:52 +00:00
Gtker 7e9e2dac0f WOWW: Convert body fields to use `ptvcursor`
This significantly reduces boilerplate required for adding fields.

The changes to SMSG_CHAR_CREATE from ENC_LITTLE_ENDIAN to ENC_NA are
intentional, as are the changes to CMSG_CHAR_RENAME from realm_name to
character_name.
2021-07-27 19:08:52 +00:00
Gtker f864dd7e9d WOWW: Use dots in abbreviations instead of underscores
As directed in PR.
2021-07-27 19:08:52 +00:00
Gtker 8fbf781a7f WOWW: Make abbreviations fit variable names 2021-07-27 19:08:52 +00:00
Gtker 1a2169acf5 WOWW: Add CMSG_CHAR_CREATE fields
Wiki reference:
https://wowdev.wiki/CMSG_CHAR_CREATE
2021-07-27 19:08:52 +00:00
Gtker 22694dffeb WOWW: Add CMSG_CHAR_RENAME field
Wiki reference:
https://wowdev.wiki/CMSG_CHAR_RENAME
2021-07-27 19:08:52 +00:00
Gtker eafb670ee1 WOWW: Add fields for SMSG_NAME_QUERY_RESPONSE
https://wowdev.wiki/SMSG_NAME_QUERY_RESPONSE
2021-07-27 19:08:52 +00:00
Gtker 1fe0f6d2e0 WOWW: Add fields that only require result
The `login_result` field is reused for all results, since there's
nothing about the field that makes it specific to logging in and the
same values can appear in all 3 fields.

Wiki reference:
https://wowdev.wiki/SMSG_CHAR_DELETE

https://wowdev.wiki/SMSG_CHAR_CREATE

https://wowdev.wiki/SMSG_CHARACTER_LOGIN_FAILED
2021-07-27 19:08:52 +00:00
Gtker d2af1dee46 WOWW: Add CMSG_PING and SMSG_PONG fields
Wiki reference:
https://wowdev.wiki/CMSG_PING

https://wowdev.wiki/SMSG_PONG
2021-07-27 19:08:52 +00:00
Gtker 159eaaa37a WOWW: Add SMSG_TUTORIAL_FLAGS fields
Wiki reference:
https://wowdev.wiki/SMSG_TUTORIAL_FLAGS
2021-07-27 19:08:52 +00:00
Gtker 706f940ca8 WOWW: Add fields that only require GUID
Wiki reference:
https://wowdev.wiki/CMSG_NAME_QUERY

https://wowdev.wiki/CMSG_SET_ACTIVE_MOVER

https://wowdev.wiki/CMSG_CHAR_DELETE

https://wowdev.wiki/CMSG_SET_SELECTION
2021-07-27 19:08:52 +00:00
Gtker e31baaf99b WOWW: Add SMSG_LOGIN_VERIFY_WORLD fields 2021-07-27 19:08:51 +00:00
Gtker 08ceeec81e WOWW: Fix multi message PDUs using incorrect data
Previously the offset into the decrypted header tvb was used, which was
always 4 or 6, instead of the offset into the entire PDU tvb.
2021-07-27 19:08:51 +00:00
Gtker 44ce2d5173 WOWW: Add CMSG_PLAYER_LOGIN fields 2021-07-27 19:08:51 +00:00
Gtker aa650610b4 WOWW: Add equipment values to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker a5bdac52a1 WOWW: Add pet family and first login to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 9ea1b8f9ea WOWW: Add guild id and flags to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 4c232104aa WOWW: Add character positions to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker d9f6c1e59e WOWW: Add map and zone to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 49c5045728 WOWW: Add level to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker fccca6ee7b WOWW: Add character looks to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker b1e1d0b755 WOWW: Add class and gender to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 6294bf5600 WOWW: Add character race to SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker 3fd67e6a0f WOWW: Add initial fields of SMSG_CHAR_ENUM 2021-07-27 19:08:51 +00:00
Gtker db8db29e0c WOWW: Add SMSG_AUTH_RESPONSE fields
The enum is used for other opcodes as well, including SMSG_CHAR_CREATE.

Wiki reference:
https://wowdev.wiki/SMSG_AUTH_RESPONSE

Wiki reference for enum:
https://wowdev.wiki/Account_Result_Values
2021-07-27 19:08:51 +00:00
Gtker 9663f6fcf3 WOWW: Add CMSG_AUTH_SESSION fields
Wiki reference:
https://wowdev.wiki/CMSG_AUTH_SESSION
2021-07-27 19:08:51 +00:00
Gtker 2252f76075 WOWW: Add SMSG_AUTH_CHALLENGE field body
Wiki reference:
https://wowdev.wiki/SMSG_AUTH_CHALLENGE
2021-07-27 19:08:51 +00:00
Jaap Keuter afb1aff845 RakNet: Fix address bytes highlighting
Closes #17509
2021-07-27 10:41:33 +00:00
Martin Mathieson a9c6e34958 NFAPI: Fix some spellings 2021-07-27 10:34:14 +01:00
Evan Huus d09fb571fe asn1: convert most dissectors to pinfo->pool
Part 2/2 as the commits were too big for CI.

Largely find/replace, with a few manual tweaks. Then regenerate the asn1
dissector sources and make sure everything still builds. There are a
handful of cases I skipped as too complex, but this covers most of the
asn1 dissectors.
2021-07-26 14:00:09 -04:00
Evan Huus e69446aa55 asn1: convert most dissectors to pinfo->pool
Part 1/2 as the commits were too big for CI.

Largely find/replace, with a few manual tweaks. Then regenerate the asn1
dissector sources and make sure everything still builds. There are a
handful of cases I skipped as too complex, but this covers most of the
asn1 dissectors.
2021-07-26 15:30:11 +00:00
João Valverde 925e01b23f Remove duplicate format_size() function
We have two format_size()s, with and without wmem scoped memory.
Move the wmem version to wsutil and add a convenience macro to
use g_malloc()ed memory.
2021-07-26 14:56:11 +00:00
João Valverde 133b0c583f Move epan/wmem/wmem_scopes.h to epan/
This header was installed incorrectly to epan/wmem_scopes.h.

Instead of creating additional installation rules for a single
header in a subfolder (kept for backward compatibility) just
rename the standard "epan/wmem/wmem.h" include to
"epan/wmem_scopes.h" and fix the documentation.

Now the header is installed *correctly* to epan/wmem_scopes.h.
2021-07-26 14:56:11 +00:00
João Valverde 7f9c1f5f92 Move wmem to wsutil
This allows wmem to be used from other libraries, namely wsutil.
It is often the case that a funtion exists in wsutil and cannot
be used with a wmem scope, requiring some code duplication or
extra memory allocations, or vice-versa, code in epan cannot be
moved to wsutil because it has a wmem dependency.

To this end wmem is moved to wsutil. Scope management remains part
of epan because those scope semantics are specific to dissection.
2021-07-26 14:56:11 +00:00
João Valverde 8310665ae7 Normalize some dissector includes 2021-07-26 14:56:11 +00:00
João Valverde 6a619212c3 Resync ASN.1 dissector sources 2021-07-26 14:09:37 +00:00
Guy Harris 436a9fabcb btatt: fix reported dissector bug.
For better or worse, currently, if you have a field that is broken into
bitfields, the top-level field must be integral, so the entire field's
value is shown.  A case could be made that FT_NONE should be supported,
but that's not the case now.

Fixes issue #17505.
2021-07-25 13:56:40 -07:00
Gerald Combs 120b4c7e78 [Automatic update for 2021-07-25]
Update manuf, services enterprise numbers, translations, and other items.
2021-07-25 09:29:17 +00:00
Martin Mathieson a975ef7203 check_typed_item_calls.py: Add a check for all-zeroes mask
When the mask value is 0x0, it effectively means there is no
mask, and that all bits count.

Fix found instances and replace them with 0x0.
2021-07-24 10:58:15 +00:00
Gtker c8fa2c461f WOWW: Make undecryptable server messages stop decryption
Since it is (more or less) impossible to know exactly how many messages
are in a PDU we don't know how many times to increment the session key
index, meaning we might decrypt incorrectly.
To prevent this we freeze the decryption of server messages when we meet
an undecryptable message.
2021-07-24 07:42:00 +00:00
Gtker 3ed1fb4ab5 WOWW: Make additional messages appear under the proto subtree 2021-07-24 07:42:00 +00:00
Gtker c27ec08229 WOWW: Add ability to decrypt multiple messages in PDU
Without this the session key gets out of sync and the remaining messages
from that party are "encrypted".
2021-07-24 07:42:00 +00:00
Gtker 5331468770 WOWW: Make headers need decryption tree into map
In the future it will be necessary to index with a 64 bit int instead of
a 32 bit one.
2021-07-24 07:42:00 +00:00
Gtker a8aebb8947 WOWW: Change decrypted headers tree to map
In the future it will be necessary to use a bigger key than 32 bits,
making it easier to use a map instead.
2021-07-24 07:42:00 +00:00
Gtker 5b69cae53d WOWW: Add type for decrypted header 2021-07-24 07:42:00 +00:00
Gtker d5f7f80d7b WOWW: Make tree only take the data that belongs to it
Previously, any remaining data would be highlighted as belonging to the
first opcode.
2021-07-24 07:42:00 +00:00
Gtker 022b4f857f WOWW: Move tree building of headers into seperate function
This will help when dealing with several headers and bodies inside the
same packet.
2021-07-24 07:42:00 +00:00
Gtker 4473fe487f WOWW: Move adding of tree items to be closer to tree logic 2021-07-24 07:42:00 +00:00
Gtker bb6fcfdedb WOWW: Fix allocs with hardcoded values 2021-07-24 07:42:00 +00:00
Gtker db24903e4a WOWW: Refactor decryption logic
This removes unnecessary empty else blocks and makes for easier reading.
2021-07-24 07:42:00 +00:00
Gtker 26bec7e580 WOWW: Refactor header decryption logic slightly 2021-07-24 07:42:00 +00:00
Dr. Lars Völker 8fa1a58e60 DoIP: Add better check of length field
This prevents illegal length field values to trigger asserts in
tcp_dissect_pdus as well as adding expert info for this case.

Closes: #17498
2021-07-23 12:06:08 +00:00
Dylan Ulis e9843baf6c CMS: Correct RFC 4108 Attributes
There was an extra '9' in each of the OIDs. The OIDs were already
correct in CMSFirmwareWrapper.asn (in the same directory)
2021-07-23 08:30:58 +00:00
Dylan Ulis 1be58f3644 CIP Motion: Match spec data naming
1. Move some fields under additional tree nodes, to match the
   struct names in the spec.
2. Parse data in order. Previously, some sections were parsed
   out of order, which is confusing in the tree output.
3. Improve comments/documentation to match wording in the spec
4. Remove temp_data variables and replace with actual names.
2021-07-23 08:15:00 +00:00
Richard Sharpe e2bcdd331a ieee80211: Fix the handling of Ranging NDP Announcements. 2021-07-23 07:40:12 +00:00
Guy Harris b5a442a979 rpcap: add support for IPv6 addresses in findalldevs replies.
Also add support for various old-server-code address family values, and
toss in a big comment explaining the whole findalldevs reply address
mess.
2021-07-22 16:36:36 -07:00
Evan Huus 05e7c6ac59 mp4: handle missing timescale
Avoid various divide-by-zeros when there are durations with no timescale
set. Also fix a rare potential memory leak while I'm here.
2021-07-22 16:35:30 +00:00
Martin Mathieson a39f31318b eCPRI: don't show UINT32 type of 4-byte hdr subtree. 2021-07-21 19:22:02 +00:00
Jaap Keuter 5c8ec13dfc MKA: Don't just pretend to dissect version 3, implement the addition 2021-07-21 20:28:34 +02:00
Evan Huus 8ee8808876 First pass pinfo->pool conversion, part 2
Automated find/replace of wmem_packet_scope() with pinfo->pool in all
files where it didn't cause a build failure.
2021-07-21 09:54:57 -04:00
Joakim Karlsson 9ed273e5da JSON: correction of 3gpp ueEpsPdnConnection 2021-07-21 13:09:42 +00:00
Martin Mathieson c9a7b4f8ba Add some comments and long text to eCPRI dissector.
Looking at the handover between eCPRI and ORAN FH CUS
dissectors.  Not sure that preference for calling
ORAN and eCPRI's cursory handling of message types
0 and 2 are still appropriate.
2021-07-21 12:53:41 +00:00
Joakim Karlsson 75f53899a9 GTPv2: Add dissect of EN-DC SON Configuration IE in F-Container 2021-07-21 11:49:10 +00:00
Gerald Combs 539ad8a91b CMake: Remove unneeded GLIB2_LIBRARIES.
GLib is part of wsutil's link interface, so we don't need to link to it
explictly.
2021-07-21 10:05:21 +00:00
Evan Huus d6d7dd1e56 First pass pinfo->pool conversion
Automated find/replace of wmem_packet_scope() with pinfo->pool in all
files where it didn't cause a build failure.

I also tweaked a few of the docs which got caught up.
2021-07-21 05:38:29 +00:00
Gtker bb25eca4eb WOWW: Rename 'index' variables to 'idx'
As discussed on the PR:
https://gitlab.com/wireshark/wireshark/-/merge_requests/3707#note_631240408
2021-07-20 20:46:58 +00:00
Gtker 9161ba62eb WOWW: Remove template comments 2021-07-20 20:46:58 +00:00
Gtker 2c8d57db61 WOWW: Make saved original values use struct 2021-07-20 20:46:57 +00:00
Gtker cade03373e WOWW: Update documentation 2021-07-20 20:46:57 +00:00
Gtker b9a6268819 WOWW: Add better support out of order parsing 2021-07-20 20:46:57 +00:00
Gtker 3f4ac5539b WOWW: Move header decryption into separate function 2021-07-20 20:46:57 +00:00
Gtker e37f6599b0 WOWW: Remove and move declarations 2021-07-20 20:46:57 +00:00
Gtker 57f32d974e WOWW: Add all remaining opcodes for 1.12.x
From Mangos Zero:
e45aa74e0f/src/game/Server/Opcodes.h (L53)
2021-07-20 20:46:57 +00:00
Gtker 9e767608f7 WOWW: Make session key deduction work
Detailed description in the comment at the top of the file.
2021-07-20 20:46:57 +00:00
Gtker 92e62a74fd WOWW: Add working decryption 2021-07-20 20:46:57 +00:00
Gtker e1b3796419 WOWW: Add protocol
The protocol is a continuation of the WOW protocol occuring between the
world server and the client (as opposed to the login server and the
client).

The first two opcodes are unencrypted and perform setup for the
encryption.
The encryption was setup in the WOW protocol through SRP6.
Using the session key for encryption like this is not part of the SRP6
protocol.
All other opcodes are encrypted using the session key, which will need
to be deduced first.
2021-07-20 20:46:57 +00:00
Gtker 894b1eec6a WOW: Make username and realm names display as UTF-8
Both CHALLENGE and REALM_LIST are UTF-8 strings:

https://wowdev.wiki/CMD_AUTH_LOGON_CHALLENGE_Client

https://wowdev.wiki/CMD_REALM_LIST_Server
2021-07-20 20:46:57 +00:00
David Perry dc7089e831 Carry drop count/packet ID/queue ID as options on packet block 2021-07-19 21:25:40 +00:00
Developer Alexander 1f12e1d267 json: fix buffer overflow in string_unescape()
Fixes a potential buffer overflow issue in string_unescape() with a redesign
to be more robust against invalid input.

It makes use of wmem_strbuf API now.

Closes #17475
2021-07-18 20:02:52 +00:00
Gerald Combs 96c29704c8 [Automatic update for 2021-07-18]
Update manuf, services enterprise numbers, translations, and other items.
2021-07-18 09:29:30 +00:00
Evan Huus f54493278f Delete various unused fields
Discovered during the build failure of
https://gitlab.com/wireshark/wireshark/-/merge_requests/3695
2021-07-17 16:35:41 -04:00
Jaap Keuter 490017ea7f XML: don't try to hide the UTF-8 Byte Order Mark
Closes #17489
2021-07-17 08:52:42 +00:00
Developer Alexander 2051cadf99 can: Optimized column info for better readability
Column info is tuned for better readability. It containes CAN ID and Length.
The same applies to protocol item within protocol tree.

Entire packet data (payload) should not be printed to column info by default.
So this behaviour is removed.
2021-07-17 07:15:27 +00:00
Dr. Lars Völker 27c72d1edc LIN: Fix ID parsing (bugfix) 2021-07-16 17:56:46 +02:00
Dr. Lars Völker 73bb25bbc9 BLF: fix clang warnings 2021-07-16 14:45:21 +00:00
Dr. Lars Völker c22846d898 ISO15765: Add support for the new CAN API
This patch allows to register single IDs for CAN.
2021-07-16 10:09:44 +00:00
Arkady Gilinsky 4742371c97 oampdu: Add Network port declaration and it's parsing to GetRequest packets
* Declarations were added according to CableLab specification

Signed-off-by: Arkady Gilinsky <8351139-ark-g@users.noreply.gitlab.com>
2021-07-16 09:44:54 +00:00
Dr. Lars Völker 4cb4217dfd TECMP: Adding a filter for Channel ID names
This patch allows adding a channel name column or use a filter for it.
2021-07-16 09:28:45 +00:00
Dr. Lars Völker e0055d0698 Signal-PDU: Add support for the new CAN API
This patch directly registers configured CAN IDs.
2021-07-16 09:12:18 +00:00
Dr. Lars Völker 102a952533 CAN: Adding support for more specific tables (2)
This patch changes TECMP, 1722, and caneth to use the new
socketcan_call_subdissectors method.
2021-07-16 08:27:11 +00:00
Jaap Keuter fba16c88f4 JUNIPER: Set proper item length for protocol layer 2021-07-16 08:10:34 +00:00
Dr. Lars Völker 796819c955 BLF: Support for BLF file format
This patch adds first support for the BLF file format.
2021-07-16 07:37:43 +00:00
Evan Huus f58850d207 tcp: switch packet_scope to pinfo->pool
Per mailing list discussion:
https://www.wireshark.org/lists/wireshark-dev/202107/msg00030.html

Long-term we want to get rid of the wmem_*_scope globals in favour of
passing wmem pools around. Step one is to replace all reasonable uses of
wmem_packet_scope() with pinfo->pool which has effectively the same
lifespan. This converts the TCP dissector as a proof of concept. TCP is
a common enough protocol this should stress-test the idea fairly well.
2021-07-15 18:14:16 +00:00
Arkady Gilinsky 96c0700c62 wireshark(HEAD): oampdu: Fix: do not stop GetReq packet parsing for Object 0
* The next_byte variable is taken before the pointer moved forward, this lead
   to stop parsing get request packets when object is 0. This commit fixes it.

Signed-off-by: Arkady Gilinsky <8351139-ark-g@users.noreply.gitlab.com>
2021-07-15 13:01:38 +00:00
Martin Mathieson 458d870a66 ORAN FH CUS: Fix C-Section dissection.
Some fields are present or not depending upon the section
type - fix reserved/beamId error.
2021-07-15 11:44:21 +01:00
Developer Alexander 2a1ebd1e91 can: more specific dissector tables for CAN IDs and extended IDs
Introduces two new dissector tables can.id and can.extended_id to enable a
more precise control of subdissectors dependent on the can id which is often
used to identify the the payload.

Since standard CAN IDs and extended IDs can be used in the same network and
their ranges overlap it is necessary to have two different dissector tables.

Existing Decode as dissector table can.subdissector stays as is to prevent a
breaking change. But new dissector tables can.id and can.extended_id get
priority over can.subdissector since they are more specific. Id they get a
match can.subdissector won't be called.

New dissector tables can.id and can.extended_id are accessible in lua scripts
via DissectorTable:add() while can.subdissector unfortunately is not.

For related Discussion see MR !3405
2021-07-15 07:29:46 +00:00
J M cbed7130de DoIP: Add TLS handover for encrypted communication 2021-07-15 06:40:22 +00:00
Stefan Metzmacher 94ac641efa packet-kerberos: implement PAC Ticket checksum verification
We use some private functions from MIT kerberos:
- krb5_free_enc_tkt_part()
- decode_krb5_enc_tkt_part()
- encode_krb5_enc_tkt_part()
but we already do that for krb5int_c_mandatory_cksumtype(),
which is newer than the above functions.

We use all of them only under HAVE_KRB5_PAC_VERIFY,
so we don't seem to need additional configure tests.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-07-15 04:52:30 +00:00
Stefan Metzmacher 8cd877fc4d packet-kerberos: always get the true length from decrypt_krb5_data_asn1()
Otherwise the child_tvb blobs may contain to much data.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2021-07-15 04:52:30 +00:00
Alexis La Goutte 0ea7692ec4 sv: fix typo ConfRef => ConfRev
Reported by Robert Sandholzer (#17486)
2021-07-14 17:46:39 +00:00
Martin Mathieson 1f9f287fba ISO15765: Make a function static. 2021-07-14 13:29:33 +01:00
Martin Mathieson 560f271d27 ISIS-LSP: Fix spelling of "algorithm" 2021-07-14 10:56:24 +00:00
Dr. Lars Völker 95dc4f52bc LIN: Adding support for LIN dissection
This patch adds support for LIN (Local Interconnect Network) as
well as support for:
- Signal PDUs on LIN
- ISO 15765 (ISO TP) on LIN
- TECMP transported LIN is handle like LIN

LIN is a simple automotive fieldbus to connect for example simple
sensors and actuators to an electronic control unit.
2021-07-14 09:31:06 +00:00
Gerald Combs ff60fcf92d CMake: Adjust wsutil includes and linking.
Mark wsutil's includes SYSTEM PRIVATE. This exposed a lot of targets
that were indirectly picking up include paths via the wsutil target, so
add direct includes where needed. The G.722 and G.726 codecs were
implicilty including tiffio.h; find it explicitly instead.

Mark some of wsutil's libraries PRIVATE, but leave commonly-used ones
PUBLIC.

Ping #17477.
2021-07-14 03:56:05 +00:00
Chuck Craft a7d927a9e9 prefs_register_protocol_obsolete protocols with only obsolete prefs
Related to #17465 and !3526
2021-07-13 23:12:04 +00:00
bookding 175d75aa03 MySQL: Add support for session track gitds & transaction info 2021-07-13 21:43:41 +00:00
Martin Mathieson eb2015a373 DCT2000: Support a format for MAC-NR PDUs inside comment lines 2021-07-13 17:22:01 +01:00
Richard Sharpe 893ec461f2 ieee80211: Correctly handle trigger frames when there is no padding. 2021-07-13 07:10:15 -07:00