Ethereal-dev: Re: [Ethereal-dev] VJ compressed PPP packets ??

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

From: Guy Harris <guy@xxxxxxxxxx>
Date: Wed, 28 Feb 2001 14:36:58 -0800 (PST)
> I haven't looked at the packet window routines to see
> how they handle their tvbuffs, that is, do they make
> their own, or do they use the same one that the main GUI
> is using.

The packet window routines do

  DataPtr->pd = g_malloc(DataPtr->frame->cap_len);
  memcpy(DataPtr->pd, cfile.pd, DataPtr->frame->cap_len);
  DataPtr->protocol_tree = proto_tree_create_root();
  proto_tree_is_visible = TRUE;
  DataPtr->edt = epan_dissect_new(&DataPtr->pseudo_header, DataPtr->pd, DataPtr->frame,
		DataPtr->protocol_tree);

so they don't directly create tvbuffs, but it creates them indirectly -
"epan_dissect_new()" does it for them.