Commit Graph

1009 Commits

Author SHA1 Message Date
Pascal Quantin 5cf2a61938 XnAP: upgrade dissector to v16.7.0 2021-10-04 20:13:51 +00:00
Pascal Quantin 1292ee5cef NRPPa: upgrade dissector to v16.5.0 2021-10-04 19:57:11 +00:00
Pascal Quantin 8faede569b NGAP: upgrade dissector to v16.7.0 2021-10-04 19:40:15 +00:00
Anders Broman 120aab63e3 NR-RRC:Make it possible to use dissctor handles for more cases. 2021-10-04 14:48:40 +00:00
Pascal Quantin c51073bc80 X2AP: upgrade dissector to v16.7.0 2021-10-04 14:30:28 +02:00
Pascal Quantin 1f7de4c724 S1AP: upgrade dissector to v16.7.0 2021-10-04 13:55:09 +02:00
Martin Mathieson 58a9b77fb8 F1AP: Don't export PDUs as L7
This is because exporting as L3 (should be L4) over SCTP works
well enough.
2021-10-01 21:09:09 +00:00
Pascal Quantin 728061fa17 NR RRC: upgrade dissector to v16.6.0 2021-10-01 14:36:49 +00:00
Pascal Quantin 35826bbb95 LTE RRC: upgrade dissector to v16.6.0 2021-10-01 15:05:02 +02:00
Pascal Quantin 4010502a82 LPP: upgrade dissector to v16.6.0 2021-09-29 07:58:16 +00:00
Anders Broman a757a93208 GSM MAP Update to 3GPP TS 29.002 V17.1.0 (2021-06) 2021-09-28 10:17:55 +02:00
Anders Broman d7a8a55d2a GSM MAP: Dissect message noteSubscriberPresent. 2021-09-28 04:59:19 +00:00
Tomasz Moń 7b82110092 USB HID: Parse bit fields with correct bit order
Implement little endian support for tvb_get_bits family of functions.
The big/little endian refers to bit numbering within an octet. In big
endian, the most significant bit is considered bit 0, while in little
endian the least significant bit is considered bit 0.

Add encoding parameters to proto tree bits format family functions.
Specify ENC_BIG_ENDIAN in all dissectors using these functions except in
USB HID that requires ENC_LITTLE_ENDIAN to work correctly.

When formatting bits values, always display most significant bit on the
leftmost position regardless of the encoding. This results in no gaps
between octets and makes the displayed value comprehensible.

Close #4478
Fix #17014
2021-09-26 18:16:28 +02:00
Guy Harris bfc7708f63 SV / IEC 61850: Accommodate Ethernet trailers
IEC 61850 is directly over Ethernet, so use set_actual_length
like other such protocols so that the Ethernet dissector has a
chance to detect and dissect trailers / FCS.

And do it in the template from which packet-sv.c is generated, rather
than in packet-sv.c, so that it doesn't get overwritten if somebody
regenerates the sv dissector.
2021-09-15 14:27:29 -07:00
Evan Huus 059c7906c0 h225: fix tvblist used uninitialized
6caf24e966 uncovered a bug
in the h225 dissector where h245_list was used in a path that wasn't
guaranteed to be initialized. It wasn't causing fuzz errors before
because the memory was at least being zeroed, although that state was
still technically invalid.

Initialize and call the tvb_lists in dissect_h225_h225_RasMessage, which
is the other h225 entrypoint, just like dissect_h225_H323UserInformation
(the other dissector entrypoint) was already doing.
2021-09-10 15:24:48 -04:00
Evan Huus 6caf24e966 tvblist: explicitly scope memory
Allocate the root node in the same pool as the list itself, and make
that pool explicit so we can pass the pinfo scope instead of using the
global packet pool.
2021-09-08 01:37:07 +00:00
Anders Broman 062994e089 GSM MAP: Handle Version 1 of ResetArg
Closes #17549
2021-09-02 09:36:44 +00:00
Dr. Lars Völker 3f92ae9db9 IEEE1609dot2: fix missing import (BUGFIX)
Closes #17568
2021-09-01 20:09:56 +02:00
Tomas Kukosa 033068916d ITS: use custom value format for CPM elements 2021-09-01 06:44:20 +00:00
Evan Huus cdfab0d6e9 tvbuff: convert helper methods to pinfo->pool
A few of them just needed scratch memory, so allocate and free it
manually after doing any exception-raising checks.

A few others were returning memory, and needed conversion to accept a
wmem scope argument.
2021-09-01 03:54:52 +00:00
Tomas Kukosa 2dc8b74afc IEEE1609dot2: fix psid-collective-perception-service value 2021-08-31 16:55:52 +00:00
Tomas Kukosa 3bd885d42e IEEE1609dot2: use custom formatters for better readability
fix Ubuntu build
2021-08-31 16:55:52 +00:00
Tomas Kukosa 16b1cdb23f IEEE1609dot2: use custom formatters for better readability 2021-08-31 16:55:52 +00:00
Tomas Kukosa 522414a091 ITS: use custom value format for DSRC element DeltaTime 2021-08-25 16:29:23 +00:00
Anders Broman d884af52e9 F1AP: Make it possible to exort F1AP PDUs 2021-08-25 10:19:37 +00:00
Evan Huus 678541878c h248: convert to pinfo->pool
This one was non-trivial in places and involved converting a few methods
to use strbufs to simplify.
2021-08-24 12:43:52 +00:00
Evan Huus e8f967f162 asn1: convert more dissectors to pinfo->pool
Just h248 left of the asn1 templates, and it's gonna be tricky.
2021-08-24 12:16:15 +00:00
Dario Lombardo 8bcd077eb0
kerberos: add missing parameter. 2021-08-21 22:52:35 +02:00
Pascal Quantin e20e6e30d7 LPPe: upgrade dissector to OMA-TS-LPPe-V1_0-20200630-D
Closes #17531
2021-08-20 18:19:23 +02:00
Evan Huus eda26f9e5f wmem: convert more asn1 dissectors to pinfo->pool
We prefer pinfo->pool over the global wmem_packet_scope() now. Convert a
few more asn1 dissectors. After this commit, just three asn1 dissectors
remain.
2021-08-19 15:07:44 +00:00
Martin Mathieson c0faa8f1da Some more dissector spellings. 2021-08-08 22:21:38 +01:00
Martin Mathieson aaf79b62d7 F1AP stats 2021-08-06 09:31:15 +00:00
João Valverde 7b845e7194 wsutil: rename bytestring_to_str() -> bytes_to_str_punct() 2021-07-29 17:23:05 +00:00
Tomas Kukosa ab1b496194 ITS: use custom value format for DSRC elements Angle and Heading 2021-07-28 07:08:26 +00: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 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
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
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
Pascal Quantin 20f38c06ea LPP: upgrade dissector to v16.5.0 2021-07-07 18:09:24 +00:00
Pascal Quantin 204642089a NR RRC: upgrade dissector to v16.5.0 2021-07-07 17:37:07 +00:00
Pascal Quantin ce9b01f059 LTE RRC: upgrade dissector to v16.5.0 2021-07-07 17:34:28 +02:00
Pascal Quantin 1c3739c360 NGAP: fix dissection of gNB/ng-eNB transparent container 2021-07-07 14:27:58 +00:00
Pascal Quantin aa5df68171 NR RRC: fix dissection of MeasTriggerQuantityOffset element 2021-07-04 12:03:45 +02:00
Pascal Quantin 8f69254638 E1AP: upgrade dissector to v16.6.0 2021-07-02 10:57:29 +00:00
Isaac Boukris 5f8a932338 kerberos: fix compilation without kerberos
regressed_by: 38810b76

Reported-By: @crondaemon <Dario Lombardo>.
2021-07-02 10:32:18 +00:00
Pascal Quantin 498f5bf7d1 F1AP: upgrade dissector to v16.6.0 2021-07-02 10:10:23 +00:00
Pascal Quantin 95bc8cf328 XnAP: upgrade dissector to v16.6.0 2021-07-02 09:35:09 +00:00