Thanks for your reply,
I am reading some N number of packets. One line of header followed by the
hex dump. I could see the hex dump in the third window and dissection is
done
whenever packet is selected from the packet list pane.
1. I want to know Where the memory will be allocated for all the (hex
dump)bytes read by the ethereal of several packets so that whenever i call
dissection a tvbuff is created and we could get the hexbytes from that
tvbuff?.
2. whether memory will be allocated for all the raw bytes at the time of
reading the packets itself ? If so in which part of the code the alloocation
of memory is done?
regards
harsha
----- Original Message -----
From: "Jaap Keuter" <jaap.keuter@xxxxxxxxx>
To: "Ethereal development" <ethereal-dev@xxxxxxxxxxxx>
Sent: Friday, March 04, 2005 4:29 PM
Subject: Re: [Ethereal-dev] Regarding Memory allocation
>
>
> On Fri, 4 Mar 2005, harshas wrote:
>
> > Hello ,
> > I want to append some information in the info column of the
> > ethereal.Ethereal
> > is already displaying some info I want to add some more info to it.I
tried
> > with column append string routine like this.
> > if (check_col(pinfo->cinfo,COL_INFO))
> > col_append_str(pinfo->cinfo,COL_INFO," xxx ");
> > I could not print anything. Please tell me is their any other method to
> > append the
> > info in the column info.
> > Regards
> > harsha
> >
>
> >From README.developer
>
> If you're setting it to a string you've constructed, or will be
> appending to the column later, use "col_add_str()".
>
> So it all depends on how you _start_ filling the column. If it's already
> filled using col_set_str(pinfo->cinfo, COL_INFO, "Blah"); you'll need to
> clear it first, like so:
>
> col_clear(pinfo->cinfo, COL_INFO);
>
> Good luck,
> Jaap
>
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>