ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] in linux works......in windows not!??

From: Bill Meier <wmeier@xxxxxxxxxxx>
Date: Thu, 15 Jul 2010 17:47:11 -0400
Manthos S. wrote:
Dear experts,

i wanted to append something to the Info-Column of my dissector. I did it
with:

        if(check_col(pinfo->cinfo, COL_INFO))
          col_set_str(pinfo->cinfo, COL_INFO, " something");

..and in linux worked perfect! I checked it out to my repository, booted
with windows, made svn update, compiled in windows, copied the
.dll......but  no result.(???)
No errors or warnings at all!
What could be the reason?

1. Is " something" a permanently allocated string ??

From the source ...
/* Use this if "str" points to something that will stay around (and thus
   needn't be copied). */
void
col_set_str(column_info *cinfo, const gint el, const gchar* str)

2. if (check_col()) is no longert needed since the check is done in col_set_str.

How could i launch wireshark from the console in the same thread like linux
for debugging?



See the wireshark wiki for info on using the Windows VC debugger.

Essentially: you open Wireshark exe as a "project" in the VC IDE and then set breakpoints and etc.