Skip to content
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

Named constants not being saved and used #189

Open
Dave-Krch opened this issue Nov 25, 2024 · 0 comments
Open

Named constants not being saved and used #189

Dave-Krch opened this issue Nov 25, 2024 · 0 comments

Comments

@Dave-Krch
Copy link

Dave-Krch commented Nov 25, 2024

In my specification i have something like this:

defVal INTEGER ::= 255

TestInt ::= INTEGER

Test4Seq ::= SEQUENCE {
    a TestInt DEFAULT defVal
}

which is valid ASN1 Syntax and default value of a in the sequence should be 255. But asn1tools does not set the default value.

Also when defining integer with named constant values, like this:

DeltaLongitude ::= INTEGER {oneMicrodegreeEast (10), oneMicrodegreeWest (-10), unavailable(131072)} (-131071..131072)

The values are not compiled from the asn1 specification either.

Is this known limitation or am I missing something in the asn1 code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant