-
Notifications
You must be signed in to change notification settings - Fork 11
Issue when trying to compile asn1 files for s1ap protocol #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for your issue. I could not reproduce your exact issue with the asn sources from the wireshark repo. However, while our online compiler does produce bindings, I noticed that they still contain some errors that we will need to look into. Unfortunately, the mobile telephony standards are notoriously complicated. I will add the S1AP to our test set, so that we can generate working bindings ASAP. |
@yochayKen seems to be trying to compile a more recent version of S1AP, where |
Apparently there are also two different types with basically the same name, |
In my opinion, the compiler should catch naming conflicts in the linking and validation phase. If we only preserve underscores, we still get naming conflicts for edge cases like |
Underscores are illegal in ASN.1 identifiers I think. So |
You're right, I remembered the identifier rules wrong. I'm still not sure whether we should throw rust's camel case convention overboard. On the one hand, I like the hyphen-to-underscore conversion because, glancing over a spec, it is visually very close to the original names (and JER also uses it). On the other hand, we are neither following rust's naming convention, nor are we conserving the original names. I've seen that other compilers like asn1c have configuration options for leaving the decision regarding identifier transformations up to the user. Perhaps that's the way to go. What do you think? |
Since
|
FWIW I think that it should follow Rust conventions, and not provide as an option. asn1c provides that option because there is no standard convention in C/C++, there are multiple valid conventions. In Rust there is only one valid convention. |
Hello everyone!
I'm having an issue when I'm trying to compile asn1 files of s1ap protocol through the CLI tool. I'm using the files from the Wireshark repository.
The error message that I'm getting is:
Encountered error while parsing MatchingError(Tag) - Error matching ASN syntax while parsing:SONInformationReply-ExtIEs S1AP-PROTOCOL-EXTENSION
Which appears in the S1AP-IEs.asn file.
Another issue that I get:
Encountered error while parsing MatchingError(Tag) - Error matching ASN syntax while parsing:S1AP-ELEMENTARY-PROCEDURES-CLASS-1 S1AP-ELEMENTARY-PROCEDURE
from S1AP-PDU-Descriptions.asn file.
Thanks for anyone who can help!
The text was updated successfully, but these errors were encountered: