diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-09-15 06:13:21 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-09-15 06:13:21 +0000 |
commit | bcf4001ef0ce01d625cf530414e25e0534397b90 (patch) | |
tree | 100cc9ce71c7075023b15772cac93f4bf570584d /proto.h | |
parent | b1f5853f414131cae6c3eaabfde3d9f843265c09 (diff) | |
download | wireshark-bcf4001ef0ce01d625cf530414e25e0534397b90.tar.gz wireshark-bcf4001ef0ce01d625cf530414e25e0534397b90.tar.bz2 wireshark-bcf4001ef0ce01d625cf530414e25e0534397b90.zip |
Changed (again) the way that the FT_BOOLEAN field type works internally.
Dissector code can add FT_BOOLEAN fields to the proto_tree and pass TRUE
or FALSE values (non-zero and zero values). The display filter language,
however, treats the checking for the existence of a FT_BOOLEAN field as
the checking for its truth. Before this change, packet-tr.c was the only
dissector using FT_BOOLEAN fields, and it only added the field to the
proto_tree if the TRUE; the dissector was determining the difference between
the check for existence and the check for truth.
I made this change because packet-ppp.c added some FT_BOOLEAN fields and
added them to the tree regardless of truth value, It's more natural just to
do it this way and let the display filter code worry about whether to
check for existence or truth. So that's how it works now.
svn path=/trunk/; revision=679
Diffstat (limited to 'proto.h')
-rw-r--r-- | proto.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,7 +1,7 @@ /* proto.h * Definitions for protocol display * - * $Id: proto.h,v 1.11 1999/09/12 14:34:20 deniel Exp $ + * $Id: proto.h,v 1.12 1999/09/15 06:13:21 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -104,7 +104,6 @@ typedef struct field_info { char *representation; /* for GUI tree */ int visible; union { - gboolean boolean; guint32 numeric; struct timeval time; /* the whole struct, not a pointer */ gdouble floating; |