Re: [Wireshark-dev] How can I register a link layer protocol?

2012-03-05 Thread Armando Vázquez
I did so by using this function: void proto_register_myprotocol(void) { ... register_dissector("MY_PROTOCOL", dissect_myprotocol, proto_my_protocol); } Armando Vázquez Ramírez On Mon, Mar 5, 2012 at 11:07 AM, Jeff Morriss wrote: > For this to work your dissector needs to be

Re: [Wireshark-dev] How can I register a link layer protocol?

2012-03-05 Thread Armando Vázquez
Hi Alex, The plugin you attached is meant to open filetypes different than pcap, right? I don't understand how to use this knowledge with my problem. I'm using a pcap file, thing is I want wireshark to dissect a protocol in the link layer which is not included in wireshark. Arman

Re: [Wireshark-dev] How can I register a link layer protocol?

2012-03-05 Thread Armando Vázquez
advice me. What could be wrong? Thanks so much for aiding me Armando Vázquez Ramírez ___ Sent via:Wireshark-dev mailing list Archives:http://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://wireshark.org/

Re: [Wireshark-dev] How can I register a link layer protocol?

2012-03-03 Thread Armando Vázquez
using the GUI and editing the DLT_User is the same as using the function dissector_add_uint(), am I right? If so, why isn't working? should I change something else in pcap-common.c or wtap.c or wtap.h? Armando Vázquez Ramírez On Sat, Mar 3, 2012 at 6:27 AM, ashish goel wrote: > Hi Arm

[Wireshark-dev] How can I register a link layer protocol?

2012-03-02 Thread Armando Vázquez
Hi guys, I've read the developers guide, README.developer, wiretap plugin wiki and found no answer. Here is my problem. I'm trying to use Wireshark for dissecting a pcap capture of a protocol that it's not currently defined in wireshark. So I started writing a plugin, but I haven't been able to de