diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-08-27 19:27:22 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-08-27 19:27:22 +0000 |
commit | b53d4ba179ba1cb9e8bb78449b92b0d5c23a5b4c (patch) | |
tree | fb82ebc4ac88f355879fa4605ed4bcdd73b847c7 /packet-tr.c | |
parent | a14aa01462f11a1a45e755117049c3d49093b87c (diff) |
Changed packet-tr.c to insert tr.sr, a FT_BOOLEAN field, only if tr.sr
is true. The test for truth now becomes a test for existence. The dfilter
grammar no longer recognizes 'true' and 'false', since you can now check
a boolean field via:
tr.sr
or by its negation:
!tr.sr
svn path=/trunk/; revision=591
Diffstat (limited to 'packet-tr.c')
-rw-r--r-- | packet-tr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-tr.c b/packet-tr.c index 62ab02f32e..fa7023f763 100644 --- a/packet-tr.c +++ b/packet-tr.c @@ -2,7 +2,7 @@ * Routines for Token-Ring packet disassembly * Gilbert Ramirez <gram@verdict.uthscsa.edu> * - * $Id: packet-tr.c,v 1.22 1999/08/27 19:15:38 gram Exp $ + * $Id: packet-tr.c,v 1.23 1999/08/27 19:27:11 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@unicom.net> @@ -434,7 +434,9 @@ dissect_tr(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { proto_tree_add_item(tr_tree, hf_tr_dst, offset + 2, 6, trn_dhost); proto_tree_add_item(tr_tree, hf_tr_src, offset + 8, 6, trn_shost); - proto_tree_add_item_hidden(tr_tree, hf_tr_sr, offset + 8, 1, source_routed); + + if (source_routed) + proto_tree_add_item_hidden(tr_tree, hf_tr_sr, offset + 8, 1, source_routed); /* non-source-routed version of src addr */ proto_tree_add_item_hidden(tr_tree, hf_tr_src, offset + 8, 6, trn_shost_nonsr); |