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 |
One Answer:
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. answered 07 Jun '11, 02:01 Jaap ♦ |