Commit Graph

45877 Commits

Author SHA1 Message Date
Bernhard Dick cac1709e8d DECT-MITEL-ETH: Add more field dissection
Add dissection for
* MAC_ENC_KEY_REQ
* MAC_ENC_EKS_IND
* MAC_HO_FAILED_IND
2022-11-28 15:04:15 +00:00
Bernhard Dick 15edf3b3ce DECT-MITEL-ETH: Add Layer field and Mt 2022-11-28 15:04:15 +00:00
Bernhard Dick 534e594a34 DECT-MITEL-RFP: Begin of OMM/RFP protocol
This is the begin of a basic dissection of the proprietary protocol used
by the Mitel OMM/RFP communicatino over TCP. Currently no decryption is
supported so there is the need of external decryption.
2022-11-28 15:04:15 +00:00
Bernhard Dick d4a4d8ebc0 DECT-MITEL-ETH: Add IP encapsulated behaviour
The ETH protocol has an two byte field that is only used when
transported over RAW Ethernet and a length indicator in that case.
Those two fields are not present if the ETH protocol is encapsulated
in the OMM/RFP communication protocol.
To make this dissector also useable when used after dissecting
DECT-MITEL-RFP distinguishing between both packet structures has
been included.
2022-11-28 15:04:15 +00:00
Bernhard Dick a31c5923e1 DECT-MITEL-ETH: Unify naming
This commit unifies the naming within the dissector for the DECT over
Ethernet protocol within the Mitel DECT base stations (RFPs).
2022-11-28 15:04:15 +00:00
Pascal Quantin 849e0fae46 S1AP: restore g09914cca
It was reverted by mistake in g47a1b0f9
2022-11-28 14:06:18 +00:00
Jim Young 963877e921 discard: Implement dissector for RFC 863 2022-11-28 13:24:17 +00:00
AndersBroman 47a1b0f9da S1AP: Wrong ie id used on RequestTypeAdditionalInfo 2022-11-28 09:34:15 +01:00
Ales Povalac 60168c1c70 LoRaWAN: support for Class-B and v1.0.4 specification 2022-11-28 07:07:53 +00:00
Gerald Combs c3d02eeb38 [Automatic update for 2022-11-27]
Update manuf, services enterprise numbers, translations, and other items.
2022-11-27 16:47:44 +00:00
easonweii 927ea482ba H224:Resolve some client IDs parsing problems.
There are some problems in the parsing of Extended Client IDs and Non-Standard Client IDs in the previous code, which are now fixed.
Related #18655
2022-11-27 09:18:16 +00:00
João Valverde d42ff693d9 HSP+HFP: Fix invalid UTF-8 string truncation
Fixes #18656.
2022-11-26 11:11:36 +00:00
João Valverde 27ea011dd3 802.11: Remove artificial string truncation
The wmem_strbuf_new_label() creates a new buffer with a length limit
in octets. With multibyte strings this is likely to generate invalid
UTF-8 errors.

Remove the artificial limit on the value size. The
function proto_tree_add_string() sets the value, and truncating
that to an arbitrary limit is not really correct.

The display label will be truncated to a preset length by the UI.
This mechanism uses ws_label_strcpy() and is designed to avoid
the invalid truncation.

While here use wmem_strbuf_get_str() instead of wmem_strbuf_finalize().

Accepted best practice is to let the scope free the memory.
Removing the finalize call avoids an unnecessary realloc.

Fixes #18653.
2022-11-25 18:06:57 +00:00
Eason Wei 9d01610729 H224: Fix the missing Q.922 header in H.224 dissector 2022-11-24 15:48:46 +00:00
Kevin Albertson 30d829d429 use proto_tree_add_checksum 2022-11-24 09:21:51 +00:00
Kevin Albertson 3f8ae9a08d mongo: add Checksum field 2022-11-24 09:21:51 +00:00
Matan Perelman 15b3deff27 lapdm: Fix reused fragment id reassembly
Fixes #18676
2022-11-23 15:48:22 +00:00
John Thacker 26dda2ba78 H264, H265: Fix overflow value of se(v)
For signed exponential Golomb, fix a typo when testing if
value was even or odd that resulted in a no-op. This was
mapping all overflows to G_MININT32 instead of half of them
to G_MAXINT32.
2022-11-23 14:47:01 +00:00
John Thacker e6d81e8731 ANSI IS-637 A: Use tvb_new_octet_aligned for addresses
Use tvb_new_octet_aligned when adding addresses (strings or bytes)
that are not byte aligned. That is not only clearer code, but also
prevents attempting to add unvalidated strings.

Since we're aligning the fields properly, get rid of the extra
fields for the MSB of the first field and LSB of the last field.

Fix #18664
2022-11-23 07:01:19 -05:00
Richard Sharpe b8a50617d7 ieee80211: Fix an CLang warning about dead code in my recent MR. 2022-11-23 07:10:27 +00:00
Martin Mathieson 793365d0e0 Fix some issues seen with cppcheck 2022-11-22 20:55:24 +00:00
John Thacker ec353e89f3 SIP: Extract entire Call-ID without truncating
RFC 3261 does not put a limit on the maximum size of Call-ID.
(Some implementations do, such as at 256 bytes.) Truncating
it can produce invalid UTF-8 if there's also errors that
turn into UTF-8 replacement characteres.

A reduced size is still used for the hash table lookup.

Add an expert info warning if Call-ID is missing, as it's
a mandatory field.

Fix #18620.
2022-11-22 16:21:42 +00:00
Alexis La Goutte 6dcfb07b7d BGP: Fix (reader_)offset for IGMP
fix typo (offset => reader_offset)

Close #18660
2022-11-22 13:04:18 +00:00
Martin Gallo fdc211984f SAPMS: Added SAP MS as main dissector 2022-11-22 09:27:10 +00:00
Martin Gallo 82b5201f79 SAPRouter: Added SAP Router as main dissector 2022-11-21 15:01:59 +00:00
Richard Sharpe 43fb308437 Zieee80211: Provide compressed feedback matrices for VHT as well as HE.
!18574
2022-11-21 03:37:07 +00:00
Richard Sharpe ee4703094f ieee80211: Beamforming fixes 2022-11-21 03:37:07 +00:00
John Thacker 06b4a84901 XNAP: Use bitmask for E-UTRA and NR cell identities
Instead of using tvb_get_bits and proto_tree_add_uint,
use a bitmask in the field info and proto_tree_add_item.

This means that when epan/print.c writes PDML or JSON,
the value written is the correctly masked value (PDML also
includes the unmasked value.)

When proto_tree_add_uint is used, the value written to
PDML and JSON is the original value from the packet buffer,
not properly shifted.
2022-11-21 00:57:12 +00:00
John Thacker b10e26d742 NGAP: Use bitmask for NRCellIdentity and EUTRACellIdentity
Using a bitmask in the field definition allows us to use
proto_tree_add_item, which means that when print.c writes
PDML and JSON, the value written is the correctly masked
value (PDML also includes the unmasked value.)

When functions like proto_tree_add_uint are used instead,
the value written to PDML and JSON is the original value
from the packet buffer, not properly shifted.
2022-11-20 23:57:12 +00:00
Gerald Combs f9e0e555e0 [Automatic update for 2022-11-20]
Update manuf, services enterprise numbers, translations, and other items.

services failed.
2022-11-20 16:46:55 +00:00
John Thacker 09914cca33 S1AP: Use bitmask for cellIdentity
Instead of using tvb_get_bits32 and proto_tree_add_uint,
use a bitmask in the field info and proto_tree_add_item.

This means that when epan/print.c writes PDML or JSON,
the value written is the correctly masked value (PDML also
includes the unmasked value.)

When proto_tree_add_uint is used, the value written to
PDML and JSON is the original value from the packet buffer,
not properly shifted.
2022-11-20 12:56:08 +00:00
John Thacker 92208e4330 HTTP2: Ensure that the unescaped header value is valid encoding
It's possible, in the case of errors, for the result of
g_uri_unescape_string not to be valid UTF-8, either if originally
some other encoding was percent-encoded, or if there were errors.
Check for it.

Fix #18658.
2022-11-20 11:44:39 +00:00
João Valverde 79c3a77752 Add macros to control lemon diagnostics
Rename flex macros using parenthesis (mostly a style issue):

DIAG_OFF_FLEX -> DIAG_OFF_FLEX()
DIAG_ON_FLEX  -> DIAG_ON_FLEX()

Use the same kind of construct with lemon generated code using
DIAG_OFF_LEMON() and DIAG_ON_LEMON(). Use %include and %code
directives to enforce the desired order with generated code
in the middle in between pragmas.

Fix a clang-specific pragma to use DIAG_OFF_CLANG().

DIAG_OFF(unreachable-code) -> DIAG_OFF_CLANG(unreachable-code).

Apparently GCC is ignoring the -Wunreachable flag, that's why
it did not trigger an unknown pragma warning. From [1}:

  The -Wunreachable-code has been removed, because it was unstable: it
  relied on the optimizer, and so different versions of gcc would warn
  about different code.  The compiler still accepts and ignores the
  command line option so that existing Makefiles are not broken.  In some
  future release the option will be removed entirely. - Ian

[1] https://gcc.gnu.org/legacy-ml/gcc-help/2011-05/msg00360.html
2022-11-20 10:11:27 +00:00
João Valverde f3a96bc18c IAX2: Fix UTF-8 string encoding
Fixes #18651.
2022-11-18 11:32:13 +00:00
John Thacker 8037ecf93f mip6: Use ENC_APN_STR 2022-11-18 10:59:19 +00:00
João Valverde 45c15019ac AT: Fix UTF-8 string encoding
Fixes #18650.
2022-11-18 10:11:00 +00:00
João Valverde 6bc87f01da T.30: Fix UTF-8 encoding
Fixes #18649.
2022-11-18 10:10:07 +00:00
Martin Mathieson 709d65883f Fix some cppcheck issues 2022-11-18 10:07:57 +00:00
John Thacker 45cc56746b aol: Token encoding
The token is a 2 character ASCII string. Treat it as such.

Fix #18616.
2022-11-17 14:22:05 +00:00
Ferry Huberts 7a29f10d6d locamation-im: restore showing the eol character in the hex dump
This got lost in b00725c945.

Showing the eol character is important to us.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2022-11-17 12:35:23 +00:00
Ferry Huberts 16107683c6 locamation-im: line numbers are never used for split lines, lose them
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
2022-11-17 12:35:23 +00:00
João Valverde 2443df7318 Disable another -Wunreachable lemon warning 2022-11-17 11:21:41 +00:00
João Valverde cfbe898dcc CMake: Disable -Werror for flex generated files 2022-11-17 10:23:12 +00:00
Martin Mathieson 7efa4cb9a4 ORAN FH CUS: More changes to line up samples properly for Mod Compr 2022-11-17 09:33:42 +00:00
John Thacker b00725c945 locamation-im: Fix encoding
Add strings with proto_tree_add_item or tvb_get_string_enc;
avoid using tvb_get_raw_bytes_as_string.

Use UTF-8 as the encoding to future-proof, according to
Locomation.

Use tvb_find_line_end() to split the lines, which does almost
all the needed logic and simplifies the code.

Fix #18632
2022-11-17 03:04:48 +00:00
João Valverde 09718fb9b3 CMake: Move clang warnings
Move clang warnings to normal set. Let the CMake compatibility
check control the warning.

Fix or work-around -Wunreachable warnings in the code.
2022-11-17 01:35:16 +00:00
João Valverde 7ce4b153ae X509IF: Fix null pointer dereferencing.
Fixes #18652.
2022-11-17 01:09:07 +00:00
João Valverde c37bb02484 Regenerate ASN.1 dissectors 2022-11-17 01:08:47 +00:00
Dario Lombardo baaf60cb34
ptp: prevent divide by zero.
Check for valid values before use.

Fix: #18635.
2022-11-16 22:25:42 +01:00
João Valverde fc28bb0502 X509IF: Remove another fixed length buffer 2022-11-16 20:27:35 +00:00