It turns out the protocol tree parent link was used, so we need it in
our new scheme. svn path=/trunk/; revision=9172
This commit is contained in:
parent
f0b9d12b6a
commit
fa1de9d824
|
@ -1,7 +1,7 @@
|
|||
/* proto.c
|
||||
* Routines for protocol tree
|
||||
*
|
||||
* $Id: proto.c,v 1.124 2003/12/04 10:59:34 guy Exp $
|
||||
* $Id: proto.c,v 1.125 2003/12/04 19:53:53 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -1851,6 +1851,7 @@ proto_tree_add_node(proto_tree *tree, field_info *fi)
|
|||
(tfi->tree_type >= 0 && tfi->tree_type < num_tree_types));
|
||||
|
||||
PROTO_NODE_NEW(pnode);
|
||||
pnode->parent = tnode;
|
||||
pnode->finfo = fi;
|
||||
pnode->tree_data = PTREE_DATA(tree);
|
||||
|
||||
|
@ -2110,6 +2111,7 @@ proto_tree_create_root(void)
|
|||
|
||||
/* Initialize the proto_node */
|
||||
PROTO_NODE_NEW(pnode);
|
||||
pnode->parent = NULL;
|
||||
pnode->finfo = NULL;
|
||||
pnode->tree_data = g_new(tree_data_t, 1);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* proto.h
|
||||
* Definitions for protocol display
|
||||
*
|
||||
* $Id: proto.h,v 1.52 2003/12/04 10:59:34 guy Exp $
|
||||
* $Id: proto.h,v 1.53 2003/12/04 19:53:54 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -131,6 +131,7 @@ typedef struct _proto_node {
|
|||
struct _proto_node *first_child;
|
||||
struct _proto_node *last_child;
|
||||
struct _proto_node *next;
|
||||
struct _proto_node *parent;
|
||||
field_info *finfo;
|
||||
tree_data_t *tree_data;
|
||||
} proto_node;
|
||||
|
|
Loading…
Reference in New Issue