Commit Graph

77515 Commits

Author SHA1 Message Date
Andreas Schultz c694a6f548 PFCP: fix Redirect Information IE
Redirect Information is an extensible IE. It was extended with the
Other Redirect Server Address in version 15.6.0, before that version
not including the Other Redirect Server Address was not an error.

Change-Id: I645862d99f62979996ec7faa8f08e2c39a3cf302
Reviewed-on: https://code.wireshark.org/review/36642
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-31 11:26:33 +00:00
Andreas Schultz 74aeb50b30 PFCP: fix End-Time IE
Change-Id: Ib268de91d88fc7364cea111b6d8558bae7bfcf89
Reviewed-on: https://code.wireshark.org/review/36641
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-31 11:26:21 +00:00
Martin Mathieson aacb52a31e TCP: Don't scale calculated window size using preference if no scaling signalled
Bug: 15841
Bug: 15959
Change-Id: If548b0a12f11c50f72e0957746525ed0fa591f15
Reviewed-on: https://code.wireshark.org/review/36637
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-03-31 08:25:06 +00:00
Gerald Combs da04d89f1e wslua: Update the ByteArray and Tvb docs.
Add content from https://wiki.wireshark.org/LuaAPI/ByteArray and
https://wiki.wireshark.org/LuaAPI/Tvb. Update as needed.

Remove an extraneous trailing semicolon.

Change-Id: I857b748821c21413ecb563c150525575fc9b947a
Reviewed-on: https://code.wireshark.org/review/36635
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-31 04:13:01 +00:00
Gerald Combs ed3fe162bd wslua: Update the Int64 docs.
Add content from https://wiki.wireshark.org/LuaAPI/Int64. Update as
needed.

Change-Id: I6a5f8c1cdeddee6d552fde940224704daca980b5
Reviewed-on: https://code.wireshark.org/review/36639
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-31 04:12:48 +00:00
Gerald Combs 99798d2c1c wslua: Update the Dir and Utils docs.
Add content from https://wiki.wireshark.org/LuaAPI/Utils. Update as
needed.

Change-Id: I2bf04d053a1edd5e05779c5a41e5ae0fbcb71b54
Reviewed-on: https://code.wireshark.org/review/36638
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-31 04:12:35 +00:00
Gerald Combs 3069129fe5 Qt+wslua: Add back progress bar titles.
As part of the Qt migration we dropped support for showing progress bar
titles. Add them back.

Fix the title and task arguments in wslua.

Change-Id: I76f008ff1f73e868a9b3833d24d355513692ae8b
Reviewed-on: https://code.wireshark.org/review/36612
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-31 04:11:56 +00:00
Gerald Combs 6f59b8e84d wslua: Cross-reference and title case fixes.
Use lua_class_DissectorTable instead of lua_class_DissectorTables.

Use title case for each module.

Change-Id: Ie855022ee59a857c8ced7c3e6ba070ab494fa017
Reviewed-on: https://code.wireshark.org/review/36634
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-30 16:42:18 +00:00
Gerald Combs e53cb23b1f wslua: Update the packet information docs.
Add content from https://wiki.wireshark.org/LuaAPI/Pinfo and update as
needed.

Change-Id: Ia0b61b529c2a83d6dca8244916154cdc86289a79
Reviewed-on: https://code.wireshark.org/review/36628
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-30 16:08:37 +00:00
Ameya Deshpande 404bedbf39 USB: GitHub link update
Change-Id: Ief4bf1d9e3bc8419f3a99187267dbb0064273c20
Reviewed-on: https://code.wireshark.org/review/36631
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-30 10:54:37 +00:00
Gerald Combs 48407df448 wslua: Update the TreeItem docs.
Add content from https://wiki.wireshark.org/LuaAPI/TreeItem and update
as needed.

Change-Id: I59ae271bb6b77d3df1bf53e175a4eccbcf9049f6
Reviewed-on: https://code.wireshark.org/review/36630
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 08:55:42 +00:00
Gerald Combs 87be7fa23c wslua: Update the dissector docs.
Add content from https://wiki.wireshark.org/LuaAPI/Dissector,
https://wiki.wireshark.org/LuaAPI/Pref, and
https://wiki.wireshark.org/LuaAPI/Proto. Update as needed.

Change-Id: I74a167feb9db0fcdb723501e4692da020db1ab2c
Reviewed-on: https://code.wireshark.org/review/36629
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 08:55:19 +00:00
Prince Paul c4f7a9798b ASTERIX: Add support to dissect CAT011
Added support to dissect ASTERIX CAT011 Version 1.2
Online specification:
https://www.eurocontrol.int/publication/cat011-eurocontrol-specification-surveillance-data-exchange-part-8-category-011

- Fixed typos

Change-Id: I6b3fc7127cf401c7537880e84bb2c4d372dfebc1
Reviewed-on: https://code.wireshark.org/review/36620
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 07:07:41 +00:00
Orgad Shaneh fa1599a22a ACDR: Dissect LIX2X3 packets when the corresponding bit is enabled
Change-Id: Idac44fcb8667c9441d51678545b25ac8ba861526
Reviewed-on: https://code.wireshark.org/review/36623
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 07:05:55 +00:00
Orgad Shaneh b2e13cd782 ACDR: Remove unused udp dissector table
+ reorder dissectors to group DSP ones

Change-Id: I574eb6b1af76296b86307cd3c54bc2a16a9277a1
Reviewed-on: https://code.wireshark.org/review/36622
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 07:05:21 +00:00
Orgad Shaneh 0bbc8f7293 ACDR: Fix T38 over UDP dissection
The media type was not registered in the protocol data.

Simplify media type registration, and remove the special handling
for VoiceAI json.

Change-Id: I5ac6454d1a7a44005c50b0d03f57abfca0181196
Reviewed-on: https://code.wireshark.org/review/36621
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 07:05:12 +00:00
Gerald Combs 23a947073b wslua: Update the Listener docs.
Add content from https://wiki.wireshark.org/LuaAPI/Listener and update
as needed.

Add an example that dumps valid listener names.

Change-Id: I009eaa83c645b5ad78b560acb249a3060b2784ba
Reviewed-on: https://code.wireshark.org/review/36624
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 07:00:39 +00:00
Gerald Combs 1a3e64db39 wslua: Update the GUI docs.
Add content from https://wiki.wireshark.org/LuaAPI/GUI and update as
needed.

Separate some of our Asciidoctor output with newlines.

Change-Id: I2b8b9449c94bd69095fbd4b65ea415cd4d525c30
Reviewed-on: https://code.wireshark.org/review/36613
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-30 06:56:44 +00:00
Dario Lombardo 77b0dc6931 gitlab/travis: remove nopcap tests.
Lack of capture support is such a rare case, it is not worth spending
too much CI cycles testing it for every build.

Change-Id: Ia9be2b6ba21d0b198e65d746483282ef66cadb84
Reviewed-on: https://code.wireshark.org/review/36626
Reviewed-by: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-03-29 20:36:32 +00:00
Martin Mathieson ea2ca383a9 When using preference for window scaling, show same way as signalled.
Bug: 16153
Change-Id: Ic9a334d0970e609e56deb17987eb081a45746aa7
Reviewed-on: https://code.wireshark.org/review/36610
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-03-29 16:26:20 +00:00
Gerald Combs 1af213e4c4 [Automatic update for 2020-03-29]
Update manuf, services enterprise numbers, translations, and other items.

Change-Id: I9749944a6e128698a124912d52614da72f6d2370
Reviewed-on: https://code.wireshark.org/review/36615
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-29 08:17:32 +00:00
Swapnil Roy ca41f28cb5 NAS 5GS: S-NSSAI dissection fixed
Change-Id: I482220232cdbde1e7c90e21af5f7bf4809aa13d2
Reviewed-on: https://code.wireshark.org/review/36603
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-28 17:11:55 +00:00
Guy Harris fd88bfa348 Write the if_hardware option, if available, to pcapng files when capturing.
Change-Id: Ib9ff78d148a2364c84d84b4a9b020b3d783654a3
Reviewed-on: https://code.wireshark.org/review/36602
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-03-28 03:34:18 +00:00
Guy Harris 5e77ab8b95 Remove space that snuck in during editing.
Change-Id: Iea196ecb3c236c5257ce57fcff1401a6386c95f9
Reviewed-on: https://code.wireshark.org/review/36601
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-03-28 02:43:06 +00:00
Guy Harris f9cf25f7df Add support for IDB option 15 - if_hardware, for hardware description.
While we're at it, use decimal, rather than hex, for option numbers;
they're given in decimal in the pcapng spec.

And fix a typo.

Change-Id: I2a6e857a29d5bcb6533b8f5aef00711dd57e6df5
Reviewed-on: https://code.wireshark.org/review/36600
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-03-28 02:39:44 +00:00
Pau Espin f9fdf327ce CSN.1: Optimize update of remaining_bits_len dissecting CSN_UINT_ARRAY
No need to decrement it every loop. Furthermore, when more types are
supported, same line can be reused.

Change-Id: Ic61c2e839d8dcb0e035172d706978a18b16520df
Reviewed-on: https://code.wireshark.org/review/36592
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-27 16:38:34 +00:00
Pau Espin 543c55b2c0 CSN.1: verify enough bits present to decode whole CSN_UINT_ARRAY
Change-Id: I01620f6ec698ec681ec1b413a160c14ff517fc3f
Reviewed-on: https://code.wireshark.org/review/36591
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-27 16:04:16 +00:00
Pau Espin 64ffd4512b CSN.1: Properly verify CSN_BITMAP length
Change-Id: Ia1ee5dbd46d4ac88d62670d5a534b4cce8c09b4b
Reviewed-on: https://code.wireshark.org/review/36593
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-27 16:02:10 +00:00
Martin Mathieson c67b607274 QUIC: For gboolean fields, use FALSE/TRUE rather than 0/1.
Change-Id: I7135c60f402081e129658b8189e317c7806ad1bb
Reviewed-on: https://code.wireshark.org/review/36596
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-03-27 09:44:25 +00:00
Stig Bjørlykke db1d0402f2 bluetooth: Update Assigned Numbers
Change-Id: I71e5550a261e958ce74330b6d286fe8a11585e9a
Reviewed-on: https://code.wireshark.org/review/36594
Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
2020-03-27 07:48:06 +00:00
Dario Lombardo 39ee56ec33 github: fix job names.
Change-Id: I26e77b4677bfcb0537d0dbf99472594765f3954e
Reviewed-on: https://code.wireshark.org/review/36595
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2020-03-27 06:24:19 +00:00
Pau Espin 560836f0e5 GSM RLC/MAC: fix typo in comment
Change-Id: Ie86ab874f0a9b053f442368f0cfd05080c406474
Reviewed-on: https://code.wireshark.org/review/36589
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-26 21:46:57 +00:00
Pau Espin 9d14dfb82f GSM RLC/MAC: Drop extra empty line
Change-Id: Ifcb2efb550e44cd7603a6cec28609c9179c3419e
Reviewed-on: https://code.wireshark.org/review/36590
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-26 21:46:40 +00:00
Vadim Yanitskiy 9f1b91a4a0 csn1: fix: do not return 0 if no more bits left in the buffer
The csnStreamDissector() shall not return 0 prematurely if no more
bits left in the input buffer. Otherwise some malformed packets
may not be displayed by Wireshark as such, confusing the user(s).

There are two possible cases:

  a) The number of remaining bits is negative - this is an error
     in any case. Return CSN_ERROR_NEED_MORE_BITS_TO_UNPACK.

  b) The number of remaining bits is zero - this might be an error
     or not depending on particular CSN.1 definition. We don't
     know in advance without entering the parsing loop.

In case a) everything is simple, while in case b) we should not
make precipitate decicions. Some CSN.1 definitions have names
like 'M_*_OR_NULL', what basically means that they're optional
and can be ignored or omitted.

Most of the case statements do check whether the number of remaining
bits is enough to unpack a value, so let's leave the final decicion
up to the current handler (pointed by pDescr) if no more bits left.

This is a port of the original patch [1] for OsmoPCU [2].

[1] https://gerrit.osmocom.org/c/osmo-pcu/+/17394
[2] https://osmocom.org/projects/osmopcu/

Change-Id: If35d62b1cb81e8b2909401684c3b801cb79f1294
Reviewed-on: https://code.wireshark.org/review/36588
Reviewed-by: Pau Espin Pedrol <pespin@sysmocom.de>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2020-03-26 21:43:48 +00:00
Martin Mathieson ac78d8658d HiSLIP misc changes
- Add some missing vendors
- Rename field (controltype -> controlcode)
- Show 'prologue' field (could be controlled by pref, but not many fields..)
- Remove some _U_ decorations

Change-Id: I91f06b806cbf6d037d0503256ad90809abdaf937
Reviewed-on: https://code.wireshark.org/review/36587
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2020-03-26 16:15:36 +00:00
Prince Paul 49a2de66da ASTERIX: Bugfix in CAT010
1. Add missing sparebits in I010_020 and I010_070
2. Correct scaling factor for I010_042 to 1 m instead of 0.5

Thanks to Marko Hrastovec <marko.hrastovec@gmail.com> for the suggestions.

Change-Id: I22f360f9b687c4b38b36bb2d5dd81db36536497c
Reviewed-on: https://code.wireshark.org/review/36586
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2020-03-26 14:18:19 +00:00
Orgad Shaneh 2f6a692fcd TPNCP: Fix dissection of acTOpenOrUpdateSBCSession
Struct Layout:
struct acTOpenOrUpdateSBCSession
{
  int CidA;
  int CidB;
  int ChannelACommandSeqNumber;
  int ChannelBCommandSeqNumber;
  acMediationLevel  AudioMediationLevel;
  int SourceDirection;
  int DestinationDirection;
  acAudioTranscodingMode AudioTranscodingMode;
  acSBCConnectionType SBCConnectionType;
  acTSBCChannelConfiguration ChannelAConfiguration;
  acTSBCChannelConfiguration ChannelBConfiguration;
};

acTSBCChannelConfiguration size can vary, so Channel B might be
incorrectly dissected.

Fix by recognizing the first field of acTSBCChannelConfiguration and
dividing the remaining size by 2, giving each channel the same byte
count.

Change-Id: I961394523fc307fa214d36c3eae5589f788fc6df
Reviewed-on: https://code.wireshark.org/review/36584
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-26 11:13:10 +00:00
Martin Kaiser 778555795e Add a dissector for the USB printer class.
Start dissecting the class-specific control messages.

Change-Id: I21e97777c9fc0396a8c0c575ba21909f58bbb577
Reviewed-on: https://code.wireshark.org/review/36539
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Petri-Dish: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-26 09:05:17 +00:00
Guy Harris 464d5688cc Don't build code to handle capturing if we don't have pcap.
Only build the capture information dialog if we're going to support
capturing; otherwise, that dialog never pops up.

Don't include ui/capture.h in ui/qt/wireshark_application.cpp if we
don't have pcap, either; it's not needed, and breaks compilation.

Change-Id: If9a52239fd2c81c37663be8044ecd67f4569d61b
Reviewed-on: https://code.wireshark.org/review/36585
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-03-26 08:33:50 +00:00
Guy Harris 30bad8e627 Have callback function pointers in a capture_session structure.
Instead of having programs that use the capchild library define
functions with known names, with the library routines calling back
routines with those names, have function pointers for those callbacks in
the capture_session structure, and have capture_session_init() set them.

Make the callback routines in TShark and in the ui library static.

Change-Id: Ia1ba6119c5ef7708e0f87b8420f200136ba41eae
Reviewed-on: https://code.wireshark.org/review/36583
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-03-25 23:16:06 +00:00
Guy Harris 3662a69036 Maintain cf->state, because file cleanup depends on it.
If we're capturing to multiple files, whenever we are told about a new
file, we must close the old file, so we don't leak file descriptors and
wtap structures.

Have cf_close() handle the work of closing, the way it does in file.c,
and, when we *open* a file, set the state in capture_file to
FILE_READ_IN_PROGRESS.

Bug: 16457
Change-Id: I04a01c30571b7e3575dee5e7252a59bb1ee8abbc
Reviewed-on: https://code.wireshark.org/review/36580
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
2020-03-25 20:59:37 +00:00
Pau Espin 439005cc2c rlcmac: Introduce MS Radio Access Capabilities 2 to fix related spare bits
There's two variants for the Ms Radio Access Capabilities.
* The usual encoding with spare bits (usually to fill up to octet boundary)
as defined in TS 24.008 Table 10.5.146
And there's too:
* MS Radio Access Capabilities 2 IE from TS44.060 section 12.30, which is
the same but removing all spare bits, and which is used in messages like
Packet Resource Request and Additional MS RAC messages.

The later is used basically for messages having extra IEs after the MS
Radio Access capabilities IE, since they are encoded immediatelly
afterwards.

So this patch does:
* Adds the expected spare bits (M_PADDING) to MS_Radio_Access_capability_t
* Creates a new MS_Radio_Access_capability2_t without padding
* Updates code to use the new "2" version where needed.

The new MS_Radio_Access_capability_t with padding is disabled since it's
not used in wirehsark because it's using an ad-hoc decoder for that TS
24.008 IE: see packet-gsm_a_gm.c de_gmm_ms_radio_acc_cap()

Port from osmo-pcu.git e50ce6e45c4509805807d599cadf1a1b23d37f63
Related: https://osmocom.org/issues/4463

Change-Id: Ie2844bd94437c8d7a50787cc7c8c4d81a4fc48ba
Reviewed-on: https://code.wireshark.org/review/36574
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-25 20:16:50 +00:00
Pau Espin 69a47691cd rlcmac: Fix bug receiving RA cap
It seems the assumptions regarding maximum number of RA capabilitites
in one message were wrong. Doing some rough calculations, each RA
capabilitiy value (without extensions) can take around 20ish bits, which
means for a message containing up to 52 bytes that quite a lot of
different values could be theoretically fed in. Let's be safe and
increase the array size to be able to handle all different access
technologies listed in See TS 24.008 table 10.5.146 following
restrictions:
* "The MS Radio Access capability is a type 4 information element, with a maximum length of 52 octets."
* "Among the three Access Type Technologies GSM 900-P, GSM 900-E and GSM 900-R only one shall be present."
* "the mobile station should provide the relevant radio access
  capability for either GSM 1800 band OR GSM 1900 band, not both".

Port from osmo-pcu.git 7faa5da209d0ef48fe593603c217615f09fb61fb.
Related: https://osmocom.org/issues/4463

Change-Id: Ief5189f88ba0e4970847567c9a15b1ada8b9df4b
Reviewed-on: https://code.wireshark.org/review/36573
Reviewed-by: Harald Welte <laforge@gnumonks.org>
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-25 17:18:15 +00:00
Pau Espin badbc3c609 rlcmac: Don't pass array element to CSN1 descriptors
This way the macros can be used to access the arrays themselves and
calculate its static size to enable validation lateri on.

In the case of Packet_Access_Reject_t, modify the description to use a
M_REC_TARRAY_1 object to get rid of access to 2nd element. The new
description is the correct one, since the first element is mandatory
according to TS 44.060 Table 11.2.1.

Port from osmo-pcu.git 81b40cbaf3070f70954663f68375100128bdc77e.

Change-Id: I48fc257305af799beb6a48ffc6d11b73026bff51
Reviewed-on: https://code.wireshark.org/review/36571
Reviewed-by: Harald Welte <laforge@gnumonks.org>
Reviewed-by: Vadim Yanitskiy <axilirator@gmail.com>
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-25 17:18:04 +00:00
Pau Espin f6ef53e3ed csn1: Validate recursive array max size during decoding
This way if CSN1 encoded bitstream contains more elements than what the
defintion expects it will fail instead of overflowing the decoded
buffer.

Example: RA Capabilities struct (recursive array) sent by a real android phone
when attaching to the network. Then SGSN sends it back and osmo-pcu would crash
similar to this:
*** stack smashing detected ***: terminated
 Process terminating with default action of signal 6 (SIGABRT): dumping core
at 0x4C62CE5: raise (in /usr/lib/libc-2.31.so)
by 0x4C4C856: abort (in /usr/lib/libc-2.31.so)
by 0x4CA62AF: __libc_message (in /usr/lib/libc-2.31.so)
by 0x4D36069: __fortify_fail (in /usr/lib/libc-2.31.so)
by 0x4D36033: __stack_chk_fail (in /usr/lib/libc-2.31.so)
by 0x124706: testRAcap2(void*) (RLCMACTest.cpp:468)

Port from osmo-pcu.git efad80bfbffb2a35d2516e56dc40979f19c6c370
Related: https://osmocom.org/issues/4463

Change-Id: I6bdd6960141829491aebbfdaab548c41d4a3bc9f
Reviewed-on: https://code.wireshark.org/review/36572
Reviewed-by: Harald Welte <laforge@gnumonks.org>
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-03-25 16:51:35 +00:00
Alexis La Goutte 7b8ea03c64 lltd: fix typo found by lintian (Phyiscal => Physical)
Change-Id: I697ea60c2a31b18175f2e57fd7721888d5f99668
Reviewed-on: https://code.wireshark.org/review/36568
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-25 15:13:10 +00:00
Alexis La Goutte 9f5be6f7eb fix typo found by lintian (Uknown => Unknown)
Change-Id: I50ae0d1595cc42b3432f4611009c9c48b4cdde70
Reviewed-on: https://code.wireshark.org/review/36567
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-25 15:13:03 +00:00
Prince Paul a7a44755f1 ASTERIX: Add support to dissect CAT010
Add support to dissect ASTERIX CAT010 Version 1.10

Change-Id: I82f59555e75c03fc4bd2819b2455f7fd6fa08384
Reviewed-on: https://code.wireshark.org/review/36560
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
2020-03-25 15:02:05 +00:00
Peter Wu 7579d98448 gitlab-ci: upgrade to Clang 10, drop special -Wframe-larger-than case
Requires an updated wireshark/wireshark-ubuntu-dev image:
https://github.com/wireshark/wireshark-ubuntu-dev-docker/pull/2

Remove -Wframe-larger-than while at it. The default size in our CMake
config is 32k. Clang should not significantly go over it. If so, then it
has to be solved there, and not in the Gitlab config.

Change-Id: I3891fcbd9dec8e5a4597404aa8131f28a1755a02
Reviewed-on: https://code.wireshark.org/review/36369
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2020-03-25 14:41:13 +00:00
Orgad Shaneh 31f933121b TPNCP: Use security_cmd_offset value
The layout of OpenSecureChannel command is:
struct acTOpenSecureChannelSendCmd
{
    int CID;
    struct acTOpenChannelCmd OpenChannelCmd;
    struct acTOpenSecureChannelCmd SecureChannelCmd;
};

OpenChannelCmd contains a field that stores the offset of
SecureChannelCmd (rtp_authentication_algorithm) from the beginning of
OpenChannelCmd (cmd_rev_lsb).

Support both forward and backward compatibility (added or missing fields).

Change-Id: If277996aa7fb94fef55ae34fed5a307728ebdf7c
Reviewed-on: https://code.wireshark.org/review/36566
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-03-25 14:00:30 +00:00