[Wireshark-dev] FW: ASN.1 .cnf File Documentation

2009-02-23 Thread Behdad Forghani
Hello, Is there a document on the format.cnf files used by asn2wrs program? Thanks, Behdad ___ Sent via:Wireshark-dev mailing list Archives:http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wire

[Wireshark-dev] Adding a Protocol as SCTP Payload

2009-02-23 Thread Behdad Forghani
Hello, I decided to be lazy and ask this question before I dig in deeper. I am trying to get SCTP DATA to decode as S1AP based on PPID in Wireshark 1.1.2. I am doing it on Fedora 10. I added : #define S1AP_PAYLOAD_PROTOCOL_ID 18 To sctpppids.h I added : dissector_add("sctp.ppi", S1AP_PA

Re: [Wireshark-dev] Dissector Generator

2009-02-19 Thread Behdad Forghani
Behalf Of Guy Harris Sent: Thursday, February 19, 2009 5:50 PM To: Developer support list for Wireshark Subject: Re: [Wireshark-dev] Dissector Generator On Feb 19, 2009, at 2:41 PM, Gerald Combs wrote: > Behdad Forghani wrote: >> I am thinking of developing a notation along with code

[Wireshark-dev] Dissector Generator

2009-02-19 Thread Behdad Forghani
Hello, I am thinking of developing a notation along with code generator and Eclipse integration to specify protocol PDUs and then generate Wireshark dissectors automatically, thus reducing the time to hand code dissectors and errors. Before, I do that, I wanted to make sure that I am not reinve

Re: [Wireshark-dev] Calling C++ files from C dissector

2009-02-02 Thread Behdad Forghani
Let's say you want to write a function x with C calling function to call a function called y in a C++ libarary. In file x.cpp, declare extern "C" void x() { y(); } In Wireshark call x. Link Wireshark, x and library together. -Original Message- From: wireshark-dev-boun...@wireshark.org [m

Re: [Wireshark-dev] Calling C++ files from C dissector

2009-02-02 Thread Behdad Forghani
You need to declare your function to use C calling convention using extern "C" declaration and then you can link it into your code. -Original Message- From: wireshark-dev-boun...@wireshark.org [mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of gogr...@wi.rr.com Sent: Monday, Februar