Wireshark-dev: [Wireshark-dev] Asn2wrs problem

From: Tapas Chatterjee <tapas.chatterjee@xxxxxxxxxxx>
Date: Wed, 20 May 2009 16:44:42 +0530

Hi All,

I have faced some problem during modifying the dissector body which is generated by

Asn2wrs compiler.My problem is as mentioned below.

The IE filed  description in the .asn file are

IntraDomainNasNodeSelector ::=                  SEQUENCE {

    version                                     CHOICE {

       release99                                   SEQUENCE {

           cn-Type                                     CHOICE {

               gsm-Map-IDNNS                               Gsm-map-IDNNS,

               ansi-41-IDNNS                               Ansi-41-IDNNS

           }

       },

       later                                       SEQUENCE {

           futurecoding                                BIT STRING (SIZE (15))

       }

    }

}

Here when .c file is generated the dissector code of the latter field look like

 

Int dissect_rua_T_later(tvbuff_t  *tvb _U_ ,int offset………..)

{

//Need to add some code here

Offset=dissect_per_sequence(tvb,offset,…..)

return offset;

}

 

I have modified the .cnf file as

#.FN_HDR later

//My part of code

#.END

But after run the command make copy_file in the generated .c file my part of the code

is not reflected. Could any one tell me what is the reason and how can I add my part of the code in the dissector?

BR,

Tapas

 



"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."