Hi,
I think you can get rid of:
#include "packet-wlancertextn.h"
#include "packet-x509af.h"
#include "packet-x509ce.h"
#include "packet-x509sat.h"
In the template file.
I’m not to familiar with the make files on linux but I think you need to add hi2 to makefile.am and makefile.nmake
In the asn1 dir. At least on windows if you run nmake –f makefile.nmake hi2 in the asn1 dir it would generate the dissector
And copy it to epan/dissectors (packet-hi2.[ch]) you don’t need a .h file unless you are exporting stuff.
Then to compile the resulting dissector you need to add it to makefile.common in epan/dissectors and run make
In the top dir.
Hope this helps
Anders
Från: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] För Larry LeCrabe
Skickat: den 27 juli 2009 16:06
Till: wireshark-dev@xxxxxxxxxxxxx
Ämne: Re: [Wireshark-dev] Problems when trying to compile anew ASN.1dissector
Hi Anders, and thank you for replying so fast !
The protocol i'm wishing to implement is ETSI 201 671 - HI2Operations
At the end of the hi2.asn file, I have copy/pasted only the 6 required definitions from 3GPP 33.108 rather to import the whole stuff.
I was planning to do the same for EN 301 040, but we don't use TETRA, so I commented the import directive and associated definitions throughout the asn1 declaration.
Please note that the hi2.asn is surely the cleanest of the whole zipfile, the others are certainly more suspicious...
Good luck !
Franck.
From: a.broman@xxxxxxxxx
To: wireshark-dev@xxxxxxxxxxxxx
Date: Mon, 27 Jul 2009 15:10:45 +0200
Subject: Re: [Wireshark-dev] Problems when trying to compile a new ASN.1dissector
Hi,
Which ETSI protocol is it?
Could you zip your asn1/ folder and attach it?
Regards
Anders
Från: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] För Larry LeCrabe
Skickat: den 27 juli 2009 14:27
Till: wireshark-dev@xxxxxxxxxxxxx
Ämne: [Wireshark-dev] Problems when trying to compile a new ASN.1dissector
Hi there,
I'm wishing to compile a new ASN.1 dissector, but I'm completely screwed with Asn2wrs...
What I have done since the beginning :
- Read the asn2wrs wiki at 'http://wiki.wireshark.org/Asn2wrs'
- Copy/Paste the ETSI ASN.1 description into a text file (Hopefully, no need to replace odd keywords!)
- Edit a conformance file, using wlancertexn.cnf as reference, but definitively not understanding what I was editing...
- Edit a template file, still using wlancertexn as reference... and still not understanding...
- Looking for a 'Makefile.common' located in the asn1/ directory, and a 'Makefile' from another asn.1 dissector, but they *do not* exist in any source version of wireshark I have tried... so I have edited all the Makefile.* to add a subdir in the list for my dissector.
- Trying to './configure' then 'make', but when 'make' comes to my dissector, it desperately fails indicating my dissector is "defined but not used"...
I know I am doing it like an asshole, but it is the only way I know today.
May someone helps me ?
Thanks you,
Franck.
Votre correspondant a choisi Hotmail et profite d'un stockage quasiment illimité. Créez un compte Hotmail gratuitement !
Discutez sur Messenger où que vous soyez ! Mettez Messenger sur votre mobile !