Skip to content

Issues when compile x2ap asn file. #72

@yorkz1994

Description

@yorkz1994

I am trying the x2ap protocol with rasn. I first compiled the x2ap.asn file.

There are several issues in the compiled rust file.

  1. Some import(use) variables cannot be found because they are information objects in other module. Please see line 891-892, 15088-15091 in compiled file for the errored variables.

  2. A variable PrivateIEID is not imported(use) in module x2_ap__pdu__contents. Please see line 25585, 25590 in compiled file. I guess the generated anonymous struct may have impact.

  3. In line 25774, struct RRCTransfer has a sequence of member protocol_ies with type SequenceOf<RRCTransferProtocolIEs>, but in line 25763, pub struct RRCTransferProtocolIEs(pub SequenceOf<AnonymousRRCTransferProtocolIEs>) becomes another sequence of. This double sequence of leads to decoding panic. I guess the generated anonymous struct may have impact.
    x2ap.zip
    x2ap_asn.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions