Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: [Wireshark-dev] 0.99.8 col_append_str fails

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: Jason Dick <jasonkdick@xxxxxxxxx>
Date: Sun, 2 Mar 2008 12:01:15 -0800 (PST)

I am writing a dissector for a custom protocol and found that I am unable to add additional information to the INFO column.  See the following code:

if (check_col(pinfo->cinfo, COL_INFO)) {
  col_append_str(pinfo->cinfo, COL_INFO, "  more info");
}

It appears that after the initial setting of the column, pinfo->cinfo is no longer writable.  That is 

col_get_writable(pinfo->cinfo) 

always returns false.  It still returns false even after I run:

col_set_writable(pinfo->cinfo, 1);

Has anyone else run across this?  I thought I had this working for another dissector on 0.99.6 but I don't have that code with me right now.

Thanks for any thoughts, comments, ideas -- Jason






      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

  • Follow-Ups:
    • Re: [Wireshark-dev] 0.99.8 col_append_str fails
      • From: Maynard, Chris
  • Prev by Date: Re: [Wireshark-dev] NBAP: dissection of Private Messages
  • Next by Date: Re: [Wireshark-dev] UTC time display
  • Previous by thread: Re: [Wireshark-dev] NBAP: dissection of Private Messages
  • Next by thread: Re: [Wireshark-dev] 0.99.8 col_append_str fails
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation