Wireshark-dev: Re: [Wireshark-dev] Possible bug with check_col?
From: didier <dgautheron@xxxxxxxx>
Date: Thu, 28 Sep 2006 18:53:17 +0200
Hi,
Le mercredi 27 septembre 2006 à 09:08 -0600, Brian Vandenberg a écrit :
>   I'm writing a dissector that relies on the http dissector.  The 
> server's I'll be monitoring use ssl, so there's a requirement to use the 
> ssl dissector to decrypt the packets and hand them off to the http 
> dissector.
> 
>   Requests & responses are both treated properly during dissection, so 
> that isn't an issue.  That is, with one caveat:  for some reason, the 
> following code never causes the columns to be changed in my dissector, 
> and it also seems to fail to do the same thing in the http dissector:
> 
> if (check_col (pinfo->cinfo, COL_PROTOCOL))
>   col_set_str (pinfo->cinfo, COL_PROTOCOL, "ABBRV");
> 
> if (check_col (pinfo->cinfo, COL_INFO))
>   col_set_str (pinfo->cinfo, COL_INFO, "Some info");
> 
IIRC there's a call to 
 col_set_writable(.., FALSE)
somewhere in dissector-http.c

Didier