• Bi-Ruei, Chiu's avatar
    Fix duplicate 'asn_VAL_23_ignore' generated from RANAP ASN.1 · 5bdb5555
    Bi-Ruei, Chiu authored
    Information object set RANAP-ELEMENTARY-PROCEDURES is a union of
    RANAP-ELEMENTARY-PROCEDURES-CLASS-1 and RANAP-ELEMENTARY-PROCEDURES-CLASS-2.
    
    Each time _asn1f_assign_cell_value() parses an object, value of an
    incremented counter is assigned to '_type_unique_index' field for
    distinquishing different items.
    
    However, these two information object sets have their own counters.
    It has chance that generated variables have the same name and also the same
    '_type_unique_index'. And they collide if they join up into one set.
    
    S1AP's ASN.1 is lucky without this problem, while RANAP has.
    
    By adding the number of items of the first set to '_type_unique_index' field
    of items of the second set can solve this issue.
    5bdb5555
asn1p_class.c 6.63 KB