/* this one will be called with every udp packet */
extern int udp_term_stats_tree_packet(stats_tree *st, /* st as it was passed to us */
- packet_info *pinfo, /* we'll fetch the addreses from here */
+ packet_info *pinfo, /* we'll fetch the addresses from here */
epan_dissect_t *edt _U_, /* unused */
const void *p) /* we'll use this to fetch the ports */
{
stats_tree_register("udp", /* the proto we are going to "tap" */
"udp_terms", /* the abbreviation for this tree (to be used as -z udp_terms,tree) */
st_str_udp_term, /* the name of the menu and window (use "/" for sub menus)*/
+ udp_term_stats_tree_packet, /* the per packet callback */
udp_term_stats_tree_init, /* the init callback */
- ip_hosts_stats_tree_init, /* the per packet callback */
NULL ); /* the cleanup callback (in this case there isn't) */
}
Node functions
==============
-All the functions that opearate on nodes return a parent_id
+All the functions that operate on nodes return a parent_id
stats_tree_create_node(st, name, parent_id, with_children)
Creates a node in the tree (to be used in the in init_cb)
name: the name of the new node
parent_id: the id of the parent_node (NULL for root)
with_children: TRUE if this node will have "dynamically created" children
- (i.e. it will be a candidate parrent)
+ (i.e. it will be a candidate parent)
stats_tree_create_node_by_pname(st, name, parent_name, with_children);
- As before but creates a node using it's parent's name
+ As before but creates a node using its parent's name
stats_tree_create_range_node(st, name, parent_id, ...)