Default Tagging mode is IMPLICIT


Record              ::=  SET {

Name [0] OCTET STRING

address [1] My-Address

}



My-Address       ::= Address



Address            ::= CHOICE  --willl tag for BinaryAddress or
TextRepresentedAddress Will be present while encoding the address in
default

{

            BinaryAddress   BinaryAddress,

            TextRepresentedAddress            TextRepresentedAddress

}



--if tag would have been given for BinaryAddress and
TextRepresentedAddress then explicit tagging (which is being used)
must have been included



BinaryAddress   ::= CHOICE

{

            V4Address                                [0] OCTET STRING (SIZE(4)),

            V6Address                                [1] OCTET STRING (SIZE(16))

}

TextRepresentedAddress            ::= CHOICE

{

            TextV4Address                          [2] IA5String (SIZE(7..15)),

            TextV6Address                          [3] IA5String (SIZE(15..45))

}



Thanks

Piyush
_______________________________________________
Asn1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to