Ethereal-dev: [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: "Anders Broman (AL/EAB)" <anders.broman@xxxxxxxxxxxx>
Date: Wed, 16 Feb 2005 12:02:27 +0100
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>> 

Attachment: GSMMAP.asn
Description: GSMMAP.asn