aboutsummaryrefslogtreecommitdiffstats
path: root/packet.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1998-12-04 05:59:14 +0000
committerGuy Harris <guy@alum.mit.edu>1998-12-04 05:59:14 +0000
commit7dd4f76f59579f4ac1ae8343d5e049ce3fe8191f (patch)
tree0a0c6d9499666e278cafdcbcf3098c8051059909 /packet.h
parent5274503f24eed25a020c3a004be4d7d9d61cd0e0 (diff)
downloadwireshark-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/packet.h b/packet.h
index ab7a71f1b6..d5c1a53da2 100644
--- a/packet.h
+++ b/packet.h
@@ -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);