Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Ethereal-dev: [Ethereal-dev] cinfo null when tree is not. How to update COL_INFO?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Andy Howell <AndyHowell@xxxxxxxxxxxxx>
Date: Wed, 23 Jul 2003 10:49:20 -0500
Hello,

   In my dissector, I am trying to set COL_INFO using:

     if(tree)
           if (check_col(pinfo->cinfo, COL_INFO))
               col_set_str(pinfo->cinfo, COL_INFO, "This is my  message");

pinfo->cinfo is always null, so I can't set the column.
Do I need to save cinfo when the dissector is called with tree = NULL?

Thanks,

   Andy