Commit Graph

1169 Commits

Author SHA1 Message Date
Pascal Quantin c0c939c4f3 NGAP: fix dissection NAS PDU IE broken in b801ea0191 2023-02-01 15:33:37 +00:00
João Valverde b801ea0191 MinGW: Fix -Wclobbered 2023-01-17 15:04:40 +00:00
Pascal Quantin 2dd8345895 NR RRC: upgrade dissector to v17.3.0 2023-01-17 14:47:25 +01:00
Pascal Quantin da0c933aa8 LTE RRC: upgrade dissector to v17.3.0 2023-01-16 13:59:13 +00:00
Pascal Quantin 84f3a094d4 LPP: upgrade dissector to v17.3.0 2023-01-16 12:31:55 +00:00
Gerald Combs c14eb1767c E2AP: Use tvb_memcpy instead of memcpy(...tvb_get_ptr()) 2023-01-12 18:09:07 +00:00
Pascal Quantin ce9689da01 F1AP: upgrade dissector to v17.3.0 2023-01-11 16:57:49 +01:00
Pascal Quantin b1482084b3 E1AP: upgrade dissector to v17.3.0 2023-01-11 15:24:47 +00:00
Pascal Quantin c15189981e NRPPa: upgrade dissector to v17.3.0 2023-01-11 16:06:33 +01:00
Pascal Quantin 56dfcccc48 XnAP: upgrade dissector to v17.3.0 2023-01-11 15:06:06 +01:00
Pascal Quantin 20a8a8eb0f NGAP: upgrade dissector to v17.3.0 2023-01-11 10:42:15 +00:00
Pascal Quantin f2cdd8bbc3 M2AP: upgrade dissector to v17.0.1 2023-01-11 10:17:49 +00:00
Pascal Quantin 4f7c3ab16a X2AP: upgrade dissector to v17.3.0 2023-01-11 09:50:18 +01:00
Pascal Quantin 0611f92317 S1AP: upgrade dissector to v17.3.0 2023-01-11 09:06:10 +01:00
Uwe Heuert 44189659ea code cleaning 2023-01-03 07:44:19 +00:00
Uwe Heuert 8429ed971f prevent unused function 2023-01-03 07:44:19 +00:00
Uwe Heuert eb05f77b71 BSI TR-03109 required extensions 2023-01-03 07:44:19 +00:00
Joakim Karlsson 23427cc9ba LCS-AP: Update to 3GPP TS 29.171 V17.2.0 2022-12-30 02:03:33 +00:00
Martin Mathieson 369993d72c E2AP: Use gnbid to share RAN Function ID mappings 2022-12-22 19:18:18 +00:00
John Thacker 4672e73900 NBAP: Add UEID to HS-DSCH flows added from RadioLinkReconfiguration
A few HS-DSCH conversations are created when calling add_hsdsch_bind,
such as when a RadioLinkReconfigurationPrepare procedure has
a id-HSDSCH-MACdFlows-to-Add element. This method should add
the CommunicationContextID to the conversation just like the
other ways of creating the conversation. This provides a UEID
for a unique key for RLC reassembly.
2022-12-15 12:13:36 +00:00
John Thacker 925904d6ce pkixqualified: Clear the oid at the start of each QCStatement
Clear the object_identifier_id global at the beginning of
each QCStatement, in case the statementId BER has errors and
does not put a value in the ptr. (call_ber_oid_callback correctly
handles being passed a NULL.)

Fix #18552.
2022-12-14 15:51:09 +00:00
Martin Mathieson eba1f048b3 E2AP: Use S-NSSAI field in KPM 2022-12-04 13:38:12 +00:00
João Valverde 32f88ad22c wmem: Remove strbuf max size parameter
This parameter was introduced as a safeguard for bugs
that generate an unbounded string but its utility for
that purpose is doubtful and the way it is being used
creates problems with invalid truncation of UTF-8
strings.

Rename wmem_strbuf_sized_new() with a better name.
2022-12-03 01:54:52 +00:00
Joakim Karlsson 5b8cb733fa asn2wrs: disable line directive by default
To debug with line directive build with -DENABLE_DEBUG_A2W=ON flag
2022-11-30 11:03:09 +00:00
Pascal Quantin 849e0fae46 S1AP: restore g09914cca
It was reverted by mistake in g47a1b0f9
2022-11-28 14:06:18 +00:00
AndersBroman 47a1b0f9da S1AP: Wrong ie id used on RequestTypeAdditionalInfo 2022-11-28 09:34:15 +01: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
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
João Valverde 7ce4b153ae X509IF: Fix null pointer dereferencing.
Fixes #18652.
2022-11-17 01:09:07 +00:00
João Valverde fc28bb0502 X509IF: Remove another fixed length buffer 2022-11-16 20:27:35 +00:00
João Valverde 59ee5247dc X509IF: Fix string truncation
Use a wmem_strbuf_t to avoid a truncation in the middle of a
multibyte character with a fixed length buffer.

Fixes #18543.
2022-11-16 20:27:35 +00:00
Pascal Quantin 6b41ad918b PCAP: upgrade dissector to v17.0.0
In their infinite wisdom, 3GPP succeeded to make non backward compatible
ASN.1 description
Closes #18646
2022-11-15 16:04:54 +01:00
Martin Mathieson 07627f0230 E2AP: peek at RAN function name using tvb_get_stringz_enc 2022-11-05 12:27:44 +00:00
Martin Mathieson c6a0b9b64a E2AP: Add some missing IEs 2022-11-02 16:56:12 +00:00
Pascal Quantin a1c55f2356 GOOSE: add back goose.floating_point filter
Let's add it as a hidden filter for IEEE 754 single precision floating point

Closes #18491
2022-11-01 19:25:02 +00:00
Pascal Quantin dbc688ccb9 F1AP: upgrade dissector to v17.2.0 2022-11-01 12:02:09 +00:00
Martin Mathieson 2e98ceb0d1 E2AP: Following ans2wrs.py fix, can now extend RANParameter-ID range 2022-10-31 23:01:23 +00:00
Martin Mathieson 0b83d51e75 E2AP: Add a comment for constant value taken from later spec 2022-10-28 10:41:06 +01:00
Guy Harris 86af1d6707 e2ap: fix a compiler warning due to a strange maxofRICrequestID value.
The minimum and maximum length arguments to
dissect_per_constrained_set_of() are currently both ints.

According to O-RAN.WG3.E2AP-v02.03, section 9.3.7 "Constant
definitions", maxofRICrequestID is 1024, not 2^32-1; however, we were
specifying it as 2^32-1 (4294967295).

2^32-1 won't fit into an int, and Apple clang version 14.0.0
(clang-1400.0.29.102) warns about that:

    ./asn1/e2ap/e2ap.cnf:647:54: error: implicit conversion from 'long' to 'int' changes value from 4294967295 to -1 [-Werror,-Wconstant-conversion]
                                                      1, maxofRICrequestID, FALSE);
                                                         ^~~~~~~~~~~~~~~~~
    ./asn1/e2ap/packet-e2ap-val.h:7:40: note: expanded from macro 'maxofRICrequestID'
    #define maxofRICrequestID              4294967295
                                           ^~~~~~~~~~

The handling of MIN and MAX should be done with separate "minimum is
MIN" and "maximum is MAX" flags, and we might want either to have
asn2wrs.py reject attempts to have constraints with integer minimum and
maximum values outside the range [-2^31, 2^31-1], make the types for
sizes unsigned, or allow 64-bit constraints (and still limit the
constraint values, so we don't have to dive down a bignum rathole).

But, for now, we just change maxofRICrequestID to match what the 2022-10
version of the spec, 2.03, appears to say.

(I can't find the 2.01 version online, so I don't know whether it was
1024 in 2.01, or if it was changed in 2.02 or 2.03.)
2022-10-27 23:57:51 -07:00
Martin Mathieson d46e7f90f2 E2AP 2.01 2022-10-27 20:26:11 +00:00
AndersBroman 5c53de8f47 X2AP: Make it possible to dissct private IEs 2022-10-22 21:40:23 +02:00
AndersBroman 533eb735e3 Camel: Dissect TimeAndTimezone
Closes #18485
2022-10-21 14:05:03 +00:00
Stig Bjørlykke cac6a8452b h248: Add missing dot in H.248 protocol name
Add the missing dot in H.248 protocol name and dissector table.

Closes #18513
2022-10-20 13:20:01 +00:00
João Valverde bd0102fc64 LDAP: Validate DNS name string encoding 2022-10-20 12:03:52 +00:00
Joakim Karlsson 0f46eef597 gtpv2: Update to 3GPP TS 29.274 V18.0.0 2022-10-06 21:19:49 +00:00
Joakim Karlsson de0a1f2626 gprscdr: Update to 3GPP TS 32.298 V17.4.0
Only documentation changes
2022-10-06 16:00:22 +00:00
Pascal Quantin 4dcafcf976 NR RRC: upgrade dissector to v17.2.0 2022-10-05 08:50:43 +02:00
Pascal Quantin 1ef5af31ce LTE RRC: upgrade dissector to v17.2.0 2022-10-04 17:34:17 +00:00
Pascal Quantin 34eebaeb10 LPP: upgrade dissector to v17.2.0 2022-10-04 14:59:37 +00:00