Thank you for your help, I've managed to do everything.
Regards,
Emile
-----Original Message-----
From: ethereal-dev-bounces@xxxxxxxxxxxx
[mailto:ethereal-dev-bounces@xxxxxxxxxxxx] On Behalf Of Lars Ruoff
Sent: mercoledì 3 marzo 2004 17.52
To: Ethereal development
Subject: Re: [Ethereal-dev] Accessing parent protocol header values
inproto_tree.
> |I need a value that is in a lower level protocols header.
> |Example:
> |IP->UDP->RTP->H.263, from the H.263 dissector i need to know
> |the rtp.marker value stored in the RTP header;
> |which is the best way?
> |Should I search the proto_tree with a g_node_find() function,
> |or is there a better way I am missing?
>
> You may want to use the private_data member (data type: void *) of the
> packet_info struct. You can define a data structure in the RTP
dissector
> source, and share that with the H.263 dissector. You have to ensure
that
you
> then always initialize the private_data member of the packet_info
structure,
> so that your H.263 dissector doesn't try accessing invalid data
though.
...and that data structure already exists:
see struct _rtp_info in packet-rtp.h
and it is always initialized by the rtp dissector.
Lars Ruoff.
_______________________________________________
Ethereal-dev mailing list
Ethereal-dev@xxxxxxxxxxxx
http://www.ethereal.com/mailman/listinfo/ethereal-dev