From Michael Mann via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6377, with...
[obnox/wireshark/wip.git] / doc / README.stats_tree
index 1ea57c4c197473604234401dbb27b40b4962ef4f..0d6d6f507d3f35bd95631faada6643e90396b406 100644 (file)
@@ -89,7 +89,7 @@ extern void udp_term_stats_tree_init(stats_tree* st) {
 
 /* 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 */
 {
@@ -119,8 +119,8 @@ G_MODULE_EXPORT void plugin_register_tap_listener(void) {
     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) */
 
 }
@@ -143,18 +143,18 @@ stats_tree_parent_id_by_name( st, parent_name)
 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, ...)