fix doxygen generation
[obnox/wireshark/wip.git] / tap-protohierstat.c
index ba2c0bf2e9ef3167f29cb9b89c1eb30a7ed69229..bc074c4c37bbc720a3c9f7cfdda4cef9d298f29d 100644 (file)
@@ -1,7 +1,7 @@
 /* tap-protohierstat.c
  * protohierstat   2002 Ronnie Sahlberg
  *
- * $Id: tap-protohierstat.c,v 1.4 2003/11/24 22:11:53 guy Exp $
+ * $Id$
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -38,7 +38,7 @@
 #include "epan/packet_info.h"
 #include "epan/epan_dissect.h"
 #include "epan/proto.h"
-#include "tap.h"
+#include <epan/tap.h>
 #include "register.h"
 
 typedef struct _phs_t {
@@ -84,17 +84,17 @@ protohierstat_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, void *d
        if(!edt->tree){
                return 0;
        }
-       if(!edt->tree->children){
+       if(!edt->tree->first_child){
                return 0;
        }
 
-       for(tree=edt->tree->children;tree;tree=tree->next){
+       for(tree=edt->tree->first_child;tree;tree=tree->next){
                fi=PITEM_FINFO(tree);
 
                /* first time we saw a protocol at this leaf */
                if(rs->protocol==-1){
-                       rs->protocol=fi->ptr_u.hfinfo->id;
-                       rs->proto_name=fi->ptr_u.hfinfo->abbrev;
+                       rs->protocol=fi->hfinfo->id;
+                       rs->proto_name=fi->hfinfo->abbrev;
                        rs->frames=1;
                        rs->bytes=pinfo->fd->pkt_len;
                        rs->child=new_phs_t(rs);
@@ -104,7 +104,7 @@ protohierstat_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, void *d
 
                /* find this protocol in the list of siblings */
                for(tmprs=rs;tmprs;tmprs=tmprs->sibling){
-                       if(tmprs->protocol==fi->ptr_u.hfinfo->id){
+                       if(tmprs->protocol==fi->hfinfo->id){
                                break;
                        }
                }
@@ -115,8 +115,8 @@ protohierstat_packet(void *prs, packet_info *pinfo, epan_dissect_t *edt, void *d
                                ;
                        tmprs->sibling=new_phs_t(rs->parent);
                        rs=tmprs->sibling;
-                       rs->protocol=fi->ptr_u.hfinfo->id;
-                       rs->proto_name=fi->ptr_u.hfinfo->abbrev;
+                       rs->protocol=fi->hfinfo->id;
+                       rs->proto_name=fi->hfinfo->abbrev;
                } else {
                        rs=tmprs;
                }