Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Switch/case like syntax in ASN.1

2 views
Skip to first unread message

zeal...@gmail.com

unread,
Jan 12, 2007, 9:15:26 AM1/12/07
to
I want to use ASN.1 to describe a PDU. I want to use switch/case like
syntax similar to C language. Is there any equivalence in ASN.1?

Thanks in advance.

Lev Walkin

unread,
Jan 12, 2007, 11:16:05 AM1/12/07
to
zeal...@gmail.com wrote:
> I want to use ASN.1 to describe a PDU. I want to use switch/case like
> syntax similar to C language. Is there any equivalence in ASN.1?

Yes, the name is CHOICE

--
Lev Walkin

zeal...@gmail.com

unread,
Jan 30, 2007, 2:14:41 AM1/30/07
to
In my PDU, if type-identifier-in-accept is 1 or 2, then ip-address-
ipv4 is present, anything else ip-address-ipv4 is absent. How to
describe such a PDU?

On 1月13日, 上午12时16分, Lev Walkin <v...@lionet.info> wrote:
> zeals...@gmail.com wrote:
> > I want to use ASN.1 to describe a PDU. I want to useswitch/case like

Lev Walkin

unread,
Jan 30, 2007, 4:14:28 AM1/30/07
to zeal...@gmail.com
zeal...@gmail.com wrote:
> In my PDU, if type-identifier-in-accept is 1 or 2, then ip-address-
> ipv4 is present, anything else ip-address-ipv4 is absent. How to
> describe such a PDU?

Consider using the as...@asn1.org mailing list for ASN.1 related questions.

--
Lev

0 new messages