I am trying the x2ap protocol with rasn. I first compiled the x2ap.asn file.
There are several issues in the compiled rust file.
-
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.
-
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.
-
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
I am trying the
x2approtocol with rasn. I first compiled thex2ap.asnfile.There are several issues in the compiled rust file.
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.
A variable
PrivateIEIDis not imported(use) in modulex2_ap__pdu__contents. Please see line 25585, 25590 in compiled file. I guess the generated anonymous struct may have impact.In line 25774, struct
RRCTransferhas asequence ofmemberprotocol_ieswith typeSequenceOf<RRCTransferProtocolIEs>, but in line 25763,pub struct RRCTransferProtocolIEs(pub SequenceOf<AnonymousRRCTransferProtocolIEs>)becomes anothersequence of. This doublesequence ofleads to decoding panic. I guess the generated anonymous struct may have impact.x2ap.zip
x2ap_asn.zip