This is our old Q&A Site. Please post any new questions and answers at

what this code does. win which file the COL_INFO is defined. if (check_col(pinfo->cinfo, COL_INFO)) { col_add_fstr(pinfo->cinfo, COL_INFO, "%d > %d Info Type:[%s]", pinfo->srcport, pinfo->destport, val_to_str(type, packettypenames, "Unknown Type:0x%02x")); }

asked 07 Jun '11, 01:56

sagu072's gravatar image

accept rate: 0%

In which file the COL_INFO is defined

That's what your search function is for.

The code itself is meant to fill the Information column in the packet list of the Wireshark window and Tshark output.

The call to check_col() is deprecated, but can be used to see if the column is visible. The call to col_add_fstr() is to set the text.

permanent link

answered 07 Jun '11, 02:01

Jaap's gravatar image

Jaap ♦
accept rate: 14%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 07 Jun '11, 01:56

question was seen: 2,050 times

last updated: 07 Jun '11, 02:01

p​o​w​e​r​e​d by O​S​Q​A