diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2004-05-14 15:55:37 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2004-05-14 15:55:37 +0000 |
commit | 1314808bd5d98b729bde9c3d29a80ef281ec1507 (patch) | |
tree | 02e55a22250cdb40f5ec55f50e4219a510d7cb16 /epan/proto.h | |
parent | 161d88c50abe36264b6d8733518e5aa7352ade98 (diff) | |
download | wireshark-1314808bd5d98b729bde9c3d29a80ef281ec1507.tar.gz |
add support to link from specially marked fields to related packets,
a doubleclick will follow the link
svn path=/trunk/; revision=10892
Diffstat (limited to 'epan/proto.h')
-rw-r--r-- | epan/proto.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/epan/proto.h b/epan/proto.h index e80c844d3d..b02464dcc7 100644 --- a/epan/proto.h +++ b/epan/proto.h @@ -1,7 +1,7 @@ /* proto.h * Definitions for protocol display * - * $Id: proto.h,v 1.66 2004/05/10 23:13:55 ulfl Exp $ + * $Id: proto.h,v 1.67 2004/05/14 15:55:37 ulfl Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -163,6 +163,9 @@ typedef struct field_info { /** The protocol field should be displayed as "generated by Ethereal", * used in field_info.flags. */ #define FI_GENERATED 0x0002 +/** The protocol field should be displayed as a link to another packet, + * used in field_info.flags. */ +#define FI_LINK 0x0004 /** convenience macro to get field_info.flags */ #define FI_GET_FLAG(fi, flag) (fi->flags & flag) @@ -206,6 +209,12 @@ typedef proto_node proto_item; /** mark this protocol field as generated by Ethereal (and not read from the packet data) */ #define PROTO_ITEM_SET_GENERATED(proto_item) \ ((proto_item) ? FI_SET_FLAG(proto_item->finfo, FI_GENERATED) : 0) +/** is this protocol field a link to another packet? */ +#define PROTO_ITEM_IS_LINK(proto_item) \ + ((proto_item) ? FI_GET_FLAG(proto_item->finfo, FI_LINK) : 0) +/** mark this protocol field as a link to another packet */ +#define PROTO_ITEM_SET_LINK(proto_item) \ + ((proto_item) ? FI_SET_FLAG(proto_item->finfo, FI_LINK) : 0) typedef void (*proto_tree_foreach_func)(proto_node *, gpointer); |