diff options
author | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-08-27 19:27:22 +0000 |
---|---|---|
committer | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-08-27 19:27:22 +0000 |
commit | 149adee57ceac2e0959f4801c3b03c51ca7d70ab (patch) | |
tree | fb82ebc4ac88f355879fa4605ed4bcdd73b847c7 /packet-tr.c | |
parent | a0a2ad1cbe6dfdc75eda56c5797efb6d3d1e9932 (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
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@591 f5534014-38df-0310-8fa8-9805f1628bb7
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); |