Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: Re: [Ethereal-dev] asn2eth problems with bitfields with dashed ("-") names

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Tomáš Kukosa <tomas.kukosa@xxxxxxxxxxx>
Date: Wed, 16 Feb 2005 13:45:56 +0100 (CET)
Hi,
  I will fix it today.

> Hi,
> Asn2eth create hf fields with dashed names for bitfields with dashed names
> causing compie to fail.
>
> Odb-GeneralData ::= BIT STRING {
>   allOGCallsBarred(0),
>   internationalOGCallsBarred(1),
>   internationalOGCallsNotToHPLMNCountryBarred(2),
>   premiumRateInformationOGCallsBarred  (3 ),
>   premiumRateEntertainementOGCallsBarred  (4 ),
>   ssAccessBarred  (5 ),
>   interzonalOGCallsBarred  (6 ),
>   interzonalOGCallsNotToHPLMNCountryBarred  (7 ),
>   interzonalOGCallsAndIntOGCallsNotToHPLMNCountryBarred  (8 ),
>   allECTBarred  (9 ),
>   chargeableECTBarred  (10 ),
>   internationalECTBarred  (11 ),
>   interzonalECTBarred  (12 ),
>   doublyChargeableECTBarred  (13 ),
>   multipleECTBarred  (14 ),
>   allPacketOrientedServicesBarred  (15 ),
>   roamerAccessToHPLMN-AP-Barred  (16 ),
>   roamerAccessToVPLMN-AP-Barred  (17 ),
>   roamingOutsidePLMNOG-CallsBarred  (18 ),
>   allIC-CallsBarred  (19 ),
>   roamingOutsidePLMNIC-CallsBarred  (20 ),
>   roamingOutsidePLMNICountryIC-CallsBarred  (21 ),
>   roamingOutsidePLMN-Barred  (22 ),
>   roamingOutsidePLMN-CountryBarred  (23 ),
>   registrationAllCF-Barred  (24 ),
>   registrationCFNotToHPLMN-Barred  (25 ),
>   registrationInterzonalCF-Barred  (26 ),
>   registrationInterzonalCFNotToHPLMN-Barred  (27 ),
>   registrationInternationalCF-Barred  (28 )}
>
>
> Generates hf fields with:
> static int hf_gsm_map_Odb_GeneralData_roamerAccessToHPLMN-AP-Barred = -1;
>
> packet-gsm_map.c(695) : error C2143: syntax error : missing '{' before '-'
> packet-gsm_map.c(695) : error C2059: syntax error : '-'
>
>
>  <<GSMMAP.asn>>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>