Ethereal-dev: RE: [Ethereal-dev] append data to a buffer

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

From: "Anders Broman (AL/EAB)" <anders.broman@xxxxxxxxxxxx>
Date: Thu, 30 Mar 2006 11:35:34 +0200
Hi,
Loock in /epan/sigcomp-udvm.c line:2745 how it can be done, I don't
remember if readme.developer describes it as well.

		/* At least something got decompressed, show it */
		decomp_tvb =
tvb_new_real_data(out_buff,output_address,output_address);
		/* Arrange that the allocated packet data copy be freed
when the
		 * tvbuff is freed. 
		 */
		tvb_set_free_cb( decomp_tvb, g_free );

		tvb_set_child_real_data_tvbuff(message_tvb,decomp_tvb);
		add_new_data_source(pinfo, decomp_tvb, "Decompressed
SigComp message");
		/*
 
Brg
Anders

-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of
adalbert.20.keil@xxxxxxxxxxxxxxx
Sent: den 30 mars 2006 11:30
To: ethereal-dev@xxxxxxxxxxxx
Subject: [Ethereal-dev] append data to a buffer

hi,
i am programming a plug-in and in doing so i have to extract data from
the tvbuffer by using tvb_get_letohs.
in the extracted data some bits must be deleted and the bits of a byte
must be mirrored. i am doing that with normal c instructions.
then i want to show the modified data in the tree, but how could i
append it to a buffer. i think i have to take a virtual one, but i can
not discover, how i append the modified data to a buffer.

Thanks in advance,
Andy
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig.
Jetzt gleich testen! http://f.web.de/?mc=021192

_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev