Commit Graph

208 Commits

Author SHA1 Message Date
Vadim Yanitskiy 9896b1d65d GSM A RR: add missing 10.5.2.82 Extended TSC Set IE 2021-04-30 04:51:45 +00:00
Martin Mathieson b1838bb950 Make more dissector non-statics static. 2021-02-09 10:55:50 +00:00
Martin Mathieson 765ce11b3f Fix value_string consecutive repeated strings
Detected by adding another check under
ENABLE_CHECK_FILTER to look for consecutive labels likely
to have been left as copy/paste errors.  Change to proto.c probably too messy
to merge.
2021-01-14 09:21:15 +00:00
Vadim Yanitskiy 5d8105752d GSMTAP: dissect SRO/SRR (SACCH Repetition) bit in L1 SACCH header
For more details, see 3GPP TS 44.004:

 - section 6.1 "Physical layer protocol fields and procedures",
 - figures 7.1.1-2 "SACCH downlink block format",
 - figures 7.2.1-2 "SACCH uplink block format".
2021-01-12 19:14:13 +00:00
Vadim Yanitskiy 732591237b GSM A RR: fix wrong cause value in gsm_a_rr_RR_cause_vals
Also, take a chance to correct the comment: section 6.11.0 does
not exit in 3GPP TS 44.018.  In version 15.4.0 Release 15 of
the referenced document it is 10.5.2.31 (table 10.5.2.31.1).
2020-10-29 09:27:13 +00:00
Alexander Couzens c1889e3cd5 gsm_a_rr: move TARGET PCID into the correct subtree 2020-09-15 10:30:08 +00:00
Alexander Couzens f33e1c13fa gsm_a_rr: correct spare bits of Channel Description
ETSI 44.018: 10.5.2.5: spare bits are 3+4 and not 5+6. The counting
in the spec might be confusing, because bits start at 8 not at 1.
2020-09-10 22:37:41 +00:00
Vadim Yanitskiy b4284772b3 GSM RR: properly handle CSN.1 Null breakpoints in IA Rest Octets
In CSN.1, the message may be safely cropped at specific parts
of its definition called Null breakpoints or rather "message
escape" labels (see 3GPP TS 44.060, section 11.1.3.3).

These labels usually preceed the optional protocol extensions,
added in newer releases of 3GPP specifications.  The following
IA Rest Octets (see 3GPP TS 44.018, section 10.5.2.16) sample
illustrates that:

  IA Rest Octets
      H... .... = First Discriminator Bit: High
      .H.. .... = Second Discriminator Bit: High
      ..0. .... = Discriminator Bit: Packet Assignment
      ...1 .... = Discriminator Bit: Packet Downlink Assignment
      Packet Downlink Assignment
          .... 0000  0000 0000  0000 0000  0000 0000  0001 .... = TLLI: 0x00000001
          .... 1... = TFI Assignment (etc): Present
          .... .000  00.. .... = TFI_Assignment: 0
          ..0. .... = RLC_Mode: RLC acknowledged mode
          ...0 .... = Alpha: Not Present
          .... 0000  0... .... = Gamma: 0 dB (0)
          .0.. .... = Polling: no action is required from MS
          ..0. .... = TA_Valid: the timing advance value is not valid
          ...0 .... = Timing Advance Index: Not Present
          .... 0... = TBF Starting Time: Not Present
          .... .0.. = P0: Not Present
          .... ..L. = Additions in R99: Not Present
          .... ...L = Additions in Rel-6: Not Present
  [Malformed Packet: GSM CCCH]
      [Expert Info (Error/Malformed): Malformed Packet (Exception occurred)]
          [Malformed Packet (Exception occurred)]
          [Severity level: Error]
          [Group: Malformed]

In GSM, the maximum length of a MAC block (on xCCH channels) is
limited to 23 bytes, so the message was cut in the middle, and
the Rel-7, Rel-10, and Rel-13 additions did not fit.  Although,
the message is still correct according to the specifications,
so we should not consider it as "Malformed".

Change-Id: I6920c87d3a3247f4342fea69a8bb40c28316f422
Reviewed-on: https://code.wireshark.org/review/37912
Reviewed-by: Harald Welte <laforge@gnumonks.org>
Reviewed-by: Pau Espin Pedrol <pespin@sysmocom.de>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-21 04:34:37 +00:00
Vadim Yanitskiy 39b4d2eb3e A-bis/RSL: fix dissection of Mobile Allocation in CHANnel ACTIVation
According to 3GPP TS 48.058 (version 15.0.0), section 9.3.5,
3GPP TS 44.018 "Mobile Allocation" IE shall for compatibility
reasons be included but empty, i.e. the length shall be zero.

It does not mean that the Mobile Allocation IE should not be
decoded by Wireshark though. Some BSC implementations may still
be sending it with length greather than 0.

Let's expose de_rr_mob_all() and use it in dissect_rsl_ie_ch_id().
If the length is greather than 0, raise a protocol warning.

Change-Id: Idd0f2b3cd1e684f2c812b566fde71a1cc727c2c4
Signed-off-by: Vadim Yanitskiy <vyanitskiy@sysmocom.de>
Reviewed-on: https://code.wireshark.org/review/37575
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-02 06:18:27 +00:00
Vadim Yanitskiy 1699e50102 GSM/RR: fix wrong field name in SI2quater dissector
Change-Id: I99e3c86268b0e800a468eca47298db488933ef9a
Signed-off-by: Vadim Yanitskiy <vyanitskiy@sysmocom.de>
Reviewed-on: https://code.wireshark.org/review/37657
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2020-07-02 04:58:27 +00:00
Pau Espin 469b0b2765 GSM RR: Fix wrong expert warning about missing P1 Rest Octets
3GPP TS 04.08 sec 9.1.22 "Paging request type 1" states that "P1 Rest
Octets" is (M)andatory, but then in the same table states its length
ranges from 0 to 17, which means it can actually be missing on some
cases:
"The sum of the length of this IE and the L2 Pseudo Length of the
message equals 22."

So that happens (l2 plen = 22) for instance when 2 IMSIs are provided in
a Paging Request Type 1 message. In that case, we shouldn't be warning
about the packet being malformed having the IE missing, since it's
actually expected.

The l2 Pseudo Length is shifter 2 bits because that's how it's defined
in the spec (sec 10.5.2.19).

Change-Id: I3dcb1d23c7d6fd2f1e370462481086516f24c7bb
Reviewed-on: https://code.wireshark.org/review/37361
Reviewed-by: Vadim Yanitskiy <axilirator@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Harald Welte <laforge@gnumonks.org>
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2020-06-02 19:33:04 +00:00
Pau Espin c189393f06 GSM A RR: Fix wrong description for Access Technologies Request presence field
Reference: 3GPP TS 44.018 version 13.3.2 Release 13, section 10.5.2.16

Change-Id: I813275d5fb3e87485b855770c97e566d6c2288ed
Reviewed-on: https://code.wireshark.org/review/35605
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-12-30 19:13:20 +00:00
Pau Espin cff06caa1e GSM A RR: Fix typos in PS IR field
Change-Id: I521633fe2533983e403eb694b544c377d4b3ae9f
Reviewed-on: https://code.wireshark.org/review/35597
Reviewed-by: Vadim Yanitskiy <axilirator@gmail.com>
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-12-30 15:37:14 +00:00
Harald Welte 99ce98fe02 gsm_a_rr: Support for APDU ID ETWS
According to 3GPP TS 44.018 V15.3.0 APDU ID 1 is ETWS.

Change-Id: I6dceeb45c82f4f5c75fc46fea85d22ec9c4855e6
Note: ETWS is the Earthquake and Tsunami Warning System.
Reviewed-on: https://code.wireshark.org/review/34465
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-09-13 06:19:58 +00:00
Vasil Velichkov b31d1168f7 GSM RR: Change the TMSI/PTMSI field name
Use hf_gsm_a_tmsi instead of hf_gsm_a_rr_tmsi_ptmsi. This allows easy
filtering of all messages that contains a given TMSI/PTMSI using a
filter with only one field name instead of two.

Change-Id: I356865ebdac9691abd8d14d44aac7ccf4e22e70c
Reviewed-on: https://code.wireshark.org/review/33990
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-05 13:36:08 +00:00
Guy Harris 20800366dd HTTPS (almost) everywhere.
Change all wireshark.org URLs to use https.

Fix some broken links while we're at it.

Change-Id: I161bf8eeca43b8027605acea666032da86f5ea1c
Reviewed-on: https://code.wireshark.org/review/34089
Reviewed-by: Guy Harris <guy@alum.mit.edu>
2019-07-26 18:44:40 +00:00
Harald Welte 32fa74c08f GSUP: Add dissection of BSSMAP, RR and SM cause values
This is achieved by calling the respective dissector functions
from other dissectors, which requires them to be exported.

Change-Id: Ifd01da8e5ff4ac3f3f3179b842e3a7223629b234
Reviewed-on: https://code.wireshark.org/review/33121
Reviewed-by: fixeria <axilirator@gmail.com>
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-05-10 07:19:09 +00:00
Gerald Combs 8d3ac3af86 epan: Convert our PROTO_ITEM_ macros to inline functions.
Convert our various PROTO_ITEM_ macros to inline functions and document
them.

Change-Id: I070b15d4f70d2189217a177ee8ba2740be36327c
Reviewed-on: https://code.wireshark.org/review/32706
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-04-04 04:03:38 +00:00
Michael McTernan e901d722e0 GSM A RR: fix Frequency List Variable Bitmap IE dissection
Bug: 15549
Change-Id: Iacd69b718cef2a26084fbb3e34c1e51f7424cf2b
Reviewed-on: https://code.wireshark.org/review/32377
Petri-Dish: Pascal Quantin <pascal@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal@wireshark.org>
2019-03-10 18:06:59 +00:00
Anders Broman 9c04f07f88 GSM RR: Align Channel mode text.
Change-Id: I83fd6306f7fed85389ccdaab55082658065d580b
Reviewed-on: https://code.wireshark.org/review/32357
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-03-08 14:12:04 +00:00
Anders Broman 325287765c GSM A RR:Update channel mode interpretation to TS 44.018
v15.4.0(2018-12)

Bug: 15581
Change-Id: I462a49b8b069748c8621f3d664ac94f305545b80
Reviewed-on: https://code.wireshark.org/review/32353
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-03-08 11:24:53 +00:00
Vadim Yanitskiy 20b214f3ca [GSM A RR]: fix: properly dissect APDU Flags for Application Info
According to 3GPP TS 04.08, section 10.5.2.49, the APDU Flags field
is coded together with APDU ID, and occupies bits 1-3 (mask 0x70):

0 1 2 3
S T F L
. . . *  Last Segment
. . * .  First Segment
. * . .  C/R, if L=0 only, otherwise spare and set to 0
* . . .  Spare (0)

Instead of parsing all bits together as a set of integer values,
let's parse each flag individually. Moreover, the previous
definition was missing some possible bit combinations, so
this change also fixes that problem.

Change-Id: Id71fae9ef06572c1ad17aafe0be3dfb66e081b7d
Reviewed-on: https://code.wireshark.org/review/28948
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-08-04 13:57:58 +00:00
Vadim Yanitskiy 2d865f2708 [GSM A RR]: fix APDU ID/Flags parsing for Application Info
According to 3GPP TS 04.08, table 9.1.53.1, Application Information
message has two mandatory fields encoded in a single octet:

  - APDU ID (section 10.5.2.48) M V 1/2,
  - APDU Flags (section 10.5.2.49) M V 1/2.

For some reason, they were dissected incorrectly:

GSM A-I/F DTAP - Application Information
  Protocol Discriminator: Radio Resources Management messages (6)
    .... 0110 = Protocol discriminator: Radio Resources Management messages (0x6)
    0000 .... = Skip Indicator: No indication of selected PLMN (0)
  DTAP Radio Resources Management Message Type: Application Information (0x38)
  APDU ID
    .... 0000 = APDU ID: RRLP (GSM 04.31) LCS (0x0)
  Missing Mandatory element APDU ID, rest of dissection is suspect
    [Expert Info (Error/Protocol): Missing Mandatory element APDU ID,
                                   rest of dissection is suspect]
    [Missing Mandatory element APDU ID, rest of dissection is suspect]
      [Severity level: Error]
      [Group: Protocol]
  APDU Flags
    0000 .... = APDU Flags: Unknown (0x0)
  APDU Data
    [...]

Change-Id: Ibb248104289da8e602ac15da15ae9e8eadb42c42
Reviewed-on: https://code.wireshark.org/review/28947
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2018-08-04 07:10:43 +00:00
Vasil Velichkov 1bbbbdcf46 [GSM A RR]: Fix Feature Indicator (10.5.2.76)
In 3GPP TS 44.018 version 14.4.0 Release 14 both Immediate assigment
extended (9.1.19) and Immediate assignment reject (9.1.20) have Feature
Indicator (10.5.2.76) half octet right after the Page Mode (10.5.2.26)

The Feature Indicator is part of GSM_A_PDU_TYPE_RR and not
GSM_A_PDU_TYPE_COMMON so previously it was not decoded correctly in the
Immediate assigment extended

Change-Id: I117d1ee42d43d01d77da67eea506c28ca0ae3056
Reviewed-on: https://code.wireshark.org/review/28263
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-06-13 15:44:23 +00:00
AndersBroman 9788199a61 [GSM A RR] RXLEV-SUB-SERVING-CELL displayed with wrong bitmask.
https://ask.wireshark.org/question/1757/gsm-measurement-report-decoding-problem/?answer=1759#post-id-1759

Change-Id: I67f0aaffb1c7b7f4307d5017a2f3858528e3ace6
Reviewed-on: https://code.wireshark.org/review/25962
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-21 17:15:03 +00:00
Dario Lombardo fe219637a6 dissectors: use SPDX identifiers.
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a
Reviewed-on: https://code.wireshark.org/review/25756
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-12 16:49:58 +00:00
Pau Espin a3a906d663 packet-rsl.c: Use value-string in RXLEV and RXQUAL fields
RXLEV and RXQUAL fields in RSL "Uplink Measurements" use same scale
format (0-63, 0-7) as RXLEV and RXQUAL in RR. RXQUAL value-string is
moved to packet-gsm_a_common.c in order to use it in both protocols.

Change-Id: Idadd9505225353fec76b9605e2045a5222669475
Reviewed-on: https://code.wireshark.org/review/24663
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2017-11-30 16:28:39 +00:00
Pascal Quantin 03f9bd4091 MAC LTE: upgrade dissector to v14.3.0
Change-Id: Icd3b12b7d89df2050b9365b9b173949a7cdc455a
Reviewed-on: https://code.wireshark.org/review/22928
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2017-08-02 17:34:19 +00:00
Ivan Nardi 1d657acf2d gsm-a, nas-eps: enhance handling of missing mandatory i.e.
When a mandatory information element is missing, try to report an expert info,
instead of throwing a fatal malformed exception (or of reporting nothing at all).

According to TS 24.007 11.2.3, a mandatory i.e. may be part of the imperative part
of the message, so that expert info should be at PI_ERROR level

Change-Id: Id399c236f2923db36540bbda0d29d666548f7cbd
Reviewed-on: https://code.wireshark.org/review/22134
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2017-06-15 11:48:11 +00:00
Ivan Nardi 0c5c2a393c packet-gsm_a_rr: add missing ie in Paging Response message
"Additional update parameters" info element is not dissect in Paging Response message. See TS 44.018 9.1.25

Change-Id: Ia3aec7809be9b5e8318bb7e04326bc85f77d34bd
Reviewed-on: https://code.wireshark.org/review/21914
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2017-06-03 15:38:55 +00:00
Michael Mann e108df022f packet-gsm_a_rr.c: proto_tree_add_uint -> proto_tree_add_bits_item
Change-Id: Iacf9328ddaa51f9459fd19752bcde70d9312e425
Reviewed-on: https://code.wireshark.org/review/21746
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2017-05-24 16:49:51 +00:00
Michael Mann cfa50019b6 gsm_rr_csn_flag -> proto_tree_add_bits_item when not using return value (CID-281350).
When flags aren't used in flow control decisions, the function is
effectively proto_tree_add_bits_item, so make it so.

Change-Id: Ic82e734ddd24d41fe7c36e435cc941ed872c3b03
Reviewed-on: https://code.wireshark.org/review/14773
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-03-06 11:29:08 +00:00
AndersBroman fd2bd2b154 [GSA RR] Dissect System Information Type 21
Change-Id: I85535dfdb7b064ba81f44ed08c3b1e84e7204e9e
Reviewed-on: https://code.wireshark.org/review/19954
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2017-02-05 13:23:41 +00:00
Pascal Quantin 5dde07c8fd GSM A / NAS-EPS: detect missing mandatory information elements
Current code is not able to detect missing mandatory information elements
because the macro will return once the end of the payload is reached.
Remove this check from all mandatory IE macros, and put it at the beginning
of optional IE ones. It should allow to detect any missing mandatory IE
while still stopping message dissection in case optional IEs are not
present.

Change-Id: Ie820740e25c1d03ee3462fa4a913c3a7870fcc2d
Reviewed-on: https://code.wireshark.org/review/19816
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2017-02-01 08:58:14 +00:00
AndersBroman bba62e296b [GSM A RR] Fix dissection of c1_delta.
Change-Id: I500b3e0abd4368511842ff795b91d1ebbbf46bbc
Reviewed-on: https://code.wireshark.org/review/18869
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-11-18 14:10:16 +00:00
Yurii Lysyi 06464b7db1 [GSM A RR] Some updates from rel 13,
Change-Id: Ib847ec3d019b3a8ba0f8e5502fcbe80aa47c266b
Reviewed-on: https://code.wireshark.org/review/16873
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-08-04 09:57:37 +00:00
Anton Thomasson 4679f5d513 GSM RR: add dissection of EC-GSM-IoT ccch control messages
Change-Id: Ib40f78a0d1822bf216af0911f9672c750a78b265
Reviewed-on: https://code.wireshark.org/review/15813
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-06-13 16:03:29 +00:00
Pascal Quantin b9368fcdb8 GSM A RR: fix dissection of GPRS Cell Options IE
As seen in the capture given in https://www.wireshark.org/lists/wireshark-users/201605/msg00007.html
The extension length is not always equal to ll the options defined for a given release

Change-Id: I68ba57dd384122eed1f1ff36cc8acc7ef029fcd0
Reviewed-on: https://code.wireshark.org/review/15290
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2016-05-08 20:50:51 +00:00
Jaap Keuter 01faf39794 Remove constant variable (CID-280372)
This copied and stripped code has this variable which does
not change. Remove this constant variable and the conditional
statements related.

Change-Id: I0741ef0ef8b8d1cbd52fc521bc6a91ad06c8b597
Reviewed-on: https://code.wireshark.org/review/14594
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-03-24 00:04:55 +00:00
Jaap Keuter 040f5e5c1b Remove some dead code in copied code (CID-280297)
The copied function retained features from its parent,
which cannot be reached. Might as well remove them and
replace with proper assert.

Change-Id: I63838d6011420d6c4473b127da52e7f304376172
Reviewed-on: https://code.wireshark.org/review/14531
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-03-23 11:42:58 +00:00
Michael Mann 1e60d63c8c Create call_data_dissector() to call data dissector.
This saves many dissectors the need to find the data dissector and store a handle to it.

There were also some that were finding it, but not using it.
For others this was the only reason for their handoff function, so it could be eliminated.

Change-Id: I5d3f951ee1daa3d30c060d21bd12bbc881a8027b
Reviewed-on: https://code.wireshark.org/review/14530
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-03-20 17:38:03 +00:00
Michael Mann 9bcac48403 Manually add protocol dependencies derived from find_dissector.
Started by grepping call_dissector_with_data, call_dissector_only and call_dissector and traced the handles passed into them to a find_dissector within the dissector.  Then replaced find_dissector with find_dissector_add_dependency and added the protocol id from the dissector.
"data" dissector was not considered to be a dependency.

Change-Id: I15d0d77301306587ef8e7af5876e74231816890d
Reviewed-on: https://code.wireshark.org/review/14509
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-03-20 12:48:48 +00:00
João Valverde fa56b68f4f GSM RR A: Add variable to avoid some warnings [-Wbad-function-cast]
Change-Id: Ia811293c2524d03104a04a16753381f75afdd6b2
Reviewed-on: https://code.wireshark.org/review/13891
Petri-Dish: João Valverde <j@v6e.pt>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-02-11 06:17:21 +00:00
Michael Mann 31a54708f4 new_register_dissector -> register_dissector for dissector directory.
Change-Id: Ie39ef054a4a942687bd079f3a4d8c2cc55d5f22c
Reviewed-on: https://code.wireshark.org/review/12485
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-12-09 12:38:06 +00:00
Michael Mann 2bbbb4879c register_dissector -> new_register_dissector
Change-Id: Ic368dd8e83cf39e0c934da0ae2744778e2d54ce6
Reviewed-on: https://code.wireshark.org/review/12050
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-11-23 13:09:55 +00:00
Michael Mann 828254042a Eliminate proto_tree_add_text from GSM dissectors.
Change-Id: I36a3d15a4fa86847a83d1dbea40111d36d7cfd61
Reviewed-on: https://code.wireshark.org/review/10036
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-08-15 06:49:38 +00:00
Jean Thomas f6934d27bc Add decoding of following GSM A RR messages:
- Talker indication
- Uplink release
- VGCS uplink grant

Change-Id: I969ada857b71fb3d89efc44a18159c8aa39eef54
Reviewed-on: https://code.wireshark.org/review/9753
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-07-23 10:17:33 +00:00
Jean Thomas ccdd4be568 GSM A RR: fix GSM H/L bits management
Bug: 11347
Change-Id: Iec48d52fd1f9c0669a7ef0cd95bf403025d477ae
Reviewed-on: https://code.wireshark.org/review/9562
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-07-08 19:24:35 +00:00
cff339 f11def94b1 GSM A RR: fix 'packet channel description' dissection
It should support decoding 'MA_NUMBER_IND' and 'CHANGE_MARK_1'.

Signed-off-by: cff339 <cff339@gmail.com>

Change-Id: I634f326b4741b8853a631e6da2e9c056f60781ef
Reviewed-on: https://code.wireshark.org/review/8458
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
2015-05-14 10:28:11 +00:00
Lars Sundström e32832441c Add dissection of E-UTRAN Description in Cell selection indicator after
release of all TCH and SDCCH IE

Change-Id: I552c436fe8bea5971863fd7ba023a86aa08f2f0c
Reviewed-on: https://code.wireshark.org/review/7700
Petri-Dish: Michael Mann <mmann78@netscape.net>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-16 15:46:36 +00:00