Ethereal-dev: [Ethereal-dev] tap

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

From: Miha Jemec <m.jemec@xxxxxxxxxxx>
Date: Thu, 06 Feb 2003 15:38:28 +0100
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