Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T titan.EclipsePlug-ins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 102
    • Issues 102
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse Titan
  • titan.EclipsePlug-ins
  • Issues
  • #419
Closed
Open
Issue created Jun 08, 2021 by Adam Knapp@aknappqwtMaintainer

Use of octetstring and bitstring in LENGTHTO (Java side)

Related forum topic:

https://www.eclipse.org/forums/index.php/m/1842035/

Request detail

Hello,

I'm currently implementing a NAS encoder based on 3GPP TTCN files. However it specifies length fields as octetstrings, such as Type4Length_Type and Type6Length_Type (which are the typedefs of octetstrings).

For example in the following structure:

  type record ESM_MessageContainer {                            /* 24.301 cl. 9.9.3.15 */
    IEI8_Type                   iei                   optional,   /* present in case of TLV; omit in case of LV */
    Type6Length_Type            iel,
    octetstring                 esmPdu                            /* ESM PDU without NAS security header*/
  };

Here the field 'iel' specifies the length of 'esmPdu'.

But, Titan doesn't allow to use non-integer field in LENGTHTO variant with the following error:

error: The LENGTHTO field must be an integer or union type instead of 'octetstring'

Is there any chance to have a fix for this issue (to be able to use octetstring in LENGTHTO) ?

Edited Jul 06, 2022 by Adam Knapp
Assignee
Assign to
Time tracking

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent