aboutsummaryrefslogtreecommitdiffstats
path: root/packet-x11.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-04-14 22:08:51 +0000
committerGuy Harris <guy@alum.mit.edu>2002-04-14 22:08:51 +0000
commiteecf03cb8404d9931d2c9d6fd77b894f3a6d402e (patch)
treed4288624bdad689941c1be08ec1fde4ee45d11ad /packet-x11.c
parentebc22d3550f78ac8467fa0e6acf4c4f6e26177a6 (diff)
Display Boolean bitfields that control whether other fields show up in a
message regardless of whether they're set or clear, so you can see not only what flags are set, but also what flags aren't set. (The previous checkin only affected bitfields that don't control whether other fields show up in a message.) svn path=/trunk/; revision=5158
Diffstat (limited to 'packet-x11.c')
-rw-r--r--packet-x11.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-x11.c b/packet-x11.c
index 8f2629b7db..b4a5f8c13c 100644
--- a/packet-x11.c
+++ b/packet-x11.c
@@ -2,7 +2,7 @@
* Routines for X11 dissection
* Copyright 2000, Christophe Tronche <ch.tronche@computer.org>
*
- * $Id: packet-x11.c,v 1.35 2002/04/14 21:44:48 guy Exp $
+ * $Id: packet-x11.c,v 1.36 2002/04/14 22:08:51 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -629,11 +629,11 @@ static struct maskStruct {
#define FIELD32(name) (field32(tvb, offsetp, t, hf_x11_##name))
#define BITFIELD(TYPE, position, name) {\
+ int unused;\
+ int save = *offsetp;\
+ proto_tree_add_item(lastMask._tree, hf_x11_##position##_##name, tvb, lastMask._offset, \
+ lastMask._zone, little_endian); \
if (lastMask._value & proto_registrar_get_nth(hf_x11_##position##_##name) -> bitmask) {\
- int unused;\
- int save = *offsetp;\
- proto_tree_add_item(lastMask._tree, hf_x11_##position##_##name, tvb, lastMask._offset, \
- lastMask._zone, little_endian); \
TYPE(name);\
unused = save + 4 - *offsetp;\
if (unused)\