Wireshark-dev: Re: [Wireshark-dev] Is there anyway to control what will be display in the "prot
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).