Hi,

Can someone help me in resolving below issue or give some pointers
to documentation.

Thank you,
Chandra

>  -----Original Message-----
> From:         Konduru, Chandra  
> Sent: Thursday, June 21, 2001 5:28 PM
> To:   '[EMAIL PROTECTED]'
> Subject:      Question on nested CHOICE types
> 
> Hi,
> 
> I have the following definition:
> 
> MY_DEF DEFINITIONS IMPLICIT TAGS ::=
> 
> BEGIN
> 
> SGSN_PDP_RECORD ::= SET
> {
>       ...
>       servedPdpAddr   [10] PDP_Address
>       ...
> }
> 
> PDP_Address ::= CHOICE
> {
>       ipAddr          [0] IP_Addr,
>       etsiAddr        [1] OCTET STRING (SIZE(1..20))
> }
> 
> IP_Addr ::= CHOICE
> {
>       -
>       - No context-specific tags for IP_Addr
>       -
>       ipBinAddr       IP_Bin_Addr,
>       ipTxtAddr       Ip_Txt_Addr
> }
> 
> IP_Bin_addr ::= CHOICE
> {
>       ipBinV4Addr     [0] OCTET STRING,
>       ipBinV6Addr     [1] OCTET STRING
> }
> 
> IP_Txt_addr ::= CHOICE
> {
>       ipTxtV4Addr     [2] OCTET STRING,
>       ipTxtV6Addr     [3] OCTET STRING
> }
> 
> END
> 
> Here MY_DEF is using global IMPLICIT tags.
> My question is while encoding the PDP_Address (which has 
> ipAddr->ipBinAddr->ipBinV4), what tag I should use to encode 
> ipAddr. We don't have universal tag for CHOICE. But can we 
> have context specific tag for the CHOICE?
> And if any context specific tag is present for CHOICE,
> do we need to encode the tag for CHOICE?
> 
> pdpAddr(implicit tag 10)
>       ipAddr(implicit tag 0)
>               ipBinAddr(no tag)
>                       ipBinV4Addr(implicit tag0)
> 
> Is the above tagging correct for encoding pdpAddr?
> 
> Any help is appreciated.
> If possible, can you please give elaborate explanation for the above
> example or in general. 
> 
> -Chandra

Reply via email to