Ethereal

[Ethereal-dev] tap
Google
 
Web Ethereal.com

Home | Introduction | Documentation | Lists | FAQ | Development | Wiki | Bugs

Ethereal-dev: February 2003


Hi!

Using TAPs, I would like to get the some information (parameters) about the packet. So if my protocol_packet function looks like:

rtp_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt _U_, void *pri)

and the protocol is RTP how do I get for example the SSRC field value.
I'm trying with edt->tree... but the compiler doesn't agree.

Do I need to do the whole stuff like:

proto_registrar_get_byname("rtp.ssrc");
for (ptree_node = g_node_first_child(protocol_tree);
   ptree_node != NULL;
   ptree_node = g_node_next_sibling(ptree_node)) {
....


or (as in README.tapping) "in order to use the tapping system, very little knowledge of ethereal internals is required"


Thanks a lot for any help,
Miha





Powered by MHonArc 2.6.10