diff options
author | Guy Harris <guy@alum.mit.edu> | 1998-12-04 05:59:14 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1998-12-04 05:59:14 +0000 |
commit | 7dd4f76f59579f4ac1ae8343d5e049ce3fe8191f (patch) | |
tree | 0a0c6d9499666e278cafdcbcf3098c8051059909 /packet.h | |
parent | 5274503f24eed25a020c3a004be4d7d9d61cd0e0 (diff) | |
download | wireshark-7dd4f76f59579f4ac1ae8343d5e049ce3fe8191f.tar.gz wireshark-7dd4f76f59579f4ac1ae8343d5e049ce3fe8191f.tar.bz2 wireshark-7dd4f76f59579f4ac1ae8343d5e049ce3fe8191f.zip |
When dissecting DNS or NBNS queries or replies, add the item to the tree
for the queries or replies first, then create and add the subtree and
populate it, and, when that's done, set the length of the item
appropriately; if you add the subtree later, the subtree's top-level
node appears to have level 0, rather than 1 greater than the tree of
which it's a subtree, which causes those trees not to print correctly.
svn path=/trunk/; revision=122
Diffstat (limited to 'packet.h')
-rw-r--r-- | packet.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,7 @@ /* packet.h * Definitions for packet disassembly structures and routines * - * $Id: packet.h,v 1.26 1998/11/20 05:58:42 gram Exp $ + * $Id: packet.h,v 1.27 1998/12/04 05:59:14 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -486,6 +486,7 @@ GtkWidget* add_item_to_tree(GtkWidget *, gint, gint, gchar *, ...) #else GtkWidget* add_item_to_tree(GtkWidget *, gint, gint, gchar *, ...); #endif +void set_item_len(GtkWidget *, gint); gchar* val_to_str(guint32, const value_string *, const char *); gchar* match_strval(guint32, const value_string*); gint check_col(frame_data *, gint); |