Ethereal-dev: Re: [Ethereal-dev] colinfo

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Mon, 17 Nov 2003 10:25:42 +0100
Erwin Rol wrote:
> I wrote a dissector (RDM) that dissects a packet that is encapsulated in
> another packet (Art-Net). The Art-Net packet writes the Art-Net RDM info
> in the columns but as soon as it calls the RDM dissector that info is
> over written by the RDM dissector. Is there away to prevent a dissector
> (called with call_dissector) from printing its info into the columns ?
> 
> - Erwin 
> -- 
>        Erwin Rol Software Engineering - http://www.erwinrol.com/
> 
> 
> 
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
> 



gboolean save_info; 
    
/* dont update the INFO or PROTOCOL fields of the summary */ 
           save_info=col_get_writable(pinfo->cinfo); 
           col_set_writable(pinfo->cinfo, FALSE); 

           :
           :

           col_set_writable(pinfo->cinfo, save_info); 

Then the sub�dissector cannot write anything, but if you want it to be able to add information but not clear the information already written then you can use col_set_fence.

	col_set_fence(pinfo->cinfo,COL_INFO);