[Wireshark-dev] Beginner article for custom dissector now on Code Project

2007-07-01 Thread Ken Thompson
I've recently published a beginner article on creating a custom dissector. This article would not of been possible without the developers guide. Note: The article is designed for the Win32 environment. http://www.codeproject.com/useritems/custom_dissector.asp Regards Ken

Re: [Wireshark-dev] Beginner article for custom dissector now on Code Project

2007-07-01 Thread ronnie sahlberg
You need to terminate the value_string with a {0,NULL} entry to tell wireshark where it ends. Othervise you risk reading beyond the end which will cause a segfault. On 7/1/07, Ken Thompson [EMAIL PROTECTED] wrote: I've recently published a beginner article on creating a custom dissector. This

Re: [Wireshark-dev] Beginner article for custom dissector now on Code Project

2007-07-01 Thread Jaap Keuter
Hi Ken, Did a quick review of your article. These are the point you could improve. 8--- 7.0 Your Dissector Code You can use a text editor of your choice to open the packet-yourprotocol.c. Let's take it line by line: #ifdef HAVE_CONFIG_H # include config.h #endif #include