Hi, OPERATION is not a predefined asn1 type, in GSM MAP operation is from: : IMPORTS OPERATION FROM Remote-Operations-Information-Objects { joint-iso-itu-t remote-operations(4) informationObjects(5) version1(0)} :
And is used as: sendRoutingInfo OPERATION ::= { --Timer m -- The timer is set to the upper limit of the range if the GMSC supports pre-paging. ARGUMENT SendRoutingInfoArg RESULT SendRoutingInfoRes ERRORS { systemFailure | : I'm not sure what you are trying to achieve... Regards Anders ________________________________________ Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För [EMAIL PROTECTED] Skickat: den 24 december 2007 11:46 Till: wireshark-dev@wireshark.org Ämne: Re: [Wireshark-dev] Compilation error in asn.1 file Hi , There has to be a PDU added before DEFINITIONS in the .asn file. I dont have it but used it from existing asn files, though it is different for each file. After that I am getting the following error: __main__.ParseError: LexToken(ASSIGNMENT,'::=',1,468) I think it is giving a problem at the following assingnment : XXX ::= OPERATION Here , I want to know whether the keyword OPERATION is in the standard asn.1 notation , or some changes are required here? //Tarani ________________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Anders Broman Sent: Monday, December 24, 2007 3:52 PM To: 'Developer support list for Wireshark' Subject: Re: [Wireshark-dev] Compilation error in asn.1 file Hi, >tsrp.cnf:65: UserWarning: Duplicated FN_PARS for Command. Previous one is at tsrp.cnf:57 Is a problem in the .cnf file >__main__.ParseError: LexToken(DEFINITIONS,'DEFINITIONS',1,199) Is a problem in the .asn file Line 199? Regards Anders ________________________________________ Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För [EMAIL PROTECTED] Skickat: den 24 december 2007 06:38 Till: wireshark-dev@wireshark.org Ämne: [Wireshark-dev] Compilation error in asn.1 file Hi , I have written .asn and .cnf files for my dissector. I have created a nominal template.c and template .h files as I suppose the asn2wrs compiler would generate the functions and declarations. I also suppose I should add the variable declarations and function definitions after the compilation. I am getting the following error while compiling : python ../../tools/asn2wrs.py -b -e -p tsrp -c tsrp.cnf -s packet-tsrp-template tsrp.asn ASN.1 to Wireshark dissector compiler tsrp.cnf:65: UserWarning: Duplicated FN_PARS for Command. Previous one is at tsrp.cnf:57 #.FN_BODY Command Result VAL_PTR = ¶meter_tvb Traceback (most recent call last): File "../../tools/asn2wrs.py", line 4875, in ? eth_main() File "../../tools/asn2wrs.py", line 4831, in eth_main ast.extend(yacc.parse(f.read(), lexer=lexer, debug=pd)) File "/home/eth/plugin_dev/wireshark_tsrp/wireshark/tools/yacc.py", line 334, in parse tok = self.errorfunc(errtoken) File "../../tools/asn2wrs.py", line 4705, in p_error raise ParseError(str(t)) __main__.ParseError: LexToken(DEFINITIONS,'DEFINITIONS',1,199) make: *** [packet-tsrp.c] Error 1 I am not sure the error is pertaining to .asn, .cnf or the template files.Can somebody please help. BR, Tarani _______________________________________________ Wireshark-dev mailing list Wireshark-dev@wireshark.org http://www.wireshark.org/mailman/listinfo/wireshark-dev