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

Wireshark-dev: Re: [Wireshark-dev] Is there anyway to control what will be display in the "prot

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Fri, 04 Apr 2008 12:42:08 -0400

yenan wrote:
> 
> 
>  > Date: Fri, 14 Mar 2008 17:42:35 -0400
>  > From: jeff.morriss.ws@xxxxxxxxx
>  > To: wireshark-dev@xxxxxxxxxxxxx
>  > Subject: Re: [Wireshark-dev] Is there anyway to control what will be 
> display in the "protocol column"?
>  >
> Thans
> I tried
> col_set_writable(pinfo->cinfo, FALSE); 
> This will keep Protocol column without overwirte, what about others? 
> such as INFO ,Source and Dest. Columns?

That should mark all the columns as not writable, at least as I
understand it.

> I tried col_set_writable(pinfo->src, FALSE)....etc, none of them worked, 
> and I searched them from internet , seems there is very little information!

You shouldn't be calling col_set_writable(pinfo->src, FALSE) because the
first argument to that function is the column_info structure (which is
common to all the columns).