summaryrefslogtreecommitdiff
path: root/packet-frame.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-05-03 21:38:20 +0000
committerGuy Harris <guy@alum.mit.edu>2002-05-03 21:38:20 +0000
commit7aba39031eb3133e95dd344c31bcfd73f3b33389 (patch)
treed05ca0007d7cd98c7a0c11bbe0d26d888902708c /packet-frame.c
parent04ad5f17ea8881ecdeb89f52ae2d68767485d4d4 (diff)
downloadwireshark-7aba39031eb3133e95dd344c31bcfd73f3b33389.tar.gz
From Didier Gautheron: add a "frame.marked" hidden field, set if the
frame is marked, so that you can use Find Frame to find the next marked frame, and can filter the display to show only marked frames. Update the documentation to note that "frame.marked" is set on marked frames. svn path=/trunk/; revision=5377
Diffstat (limited to 'packet-frame.c')
-rw-r--r--packet-frame.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/packet-frame.c b/packet-frame.c
index b0ac92ee3f..c385f5253a 100644
--- a/packet-frame.c
+++ b/packet-frame.c
@@ -2,7 +2,7 @@
*
* Top-most dissector. Decides dissector based on Wiretap Encapsulation Type.
*
- * $Id: packet-frame.c,v 1.24 2002/04/13 00:02:55 guy Exp $
+ * $Id: packet-frame.c,v 1.25 2002/05/03 21:38:18 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -43,6 +43,8 @@ static int hf_frame_packet_len = -1;
static int hf_frame_capture_len = -1;
static int hf_frame_p2p_dir = -1;
static int hf_frame_file_off = -1;
+static int hf_frame_marked = -1;
+
static int proto_short = -1;
int proto_malformed = -1;
static int proto_unreassembled = -1;
@@ -97,6 +99,7 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
cap_len = tvb_length(tvb);
pkt_len = tvb_reported_length(tvb);
+ proto_tree_add_boolean_hidden(tree, hf_frame_marked, tvb, 0, 0,pinfo->fd->flags.marked);
ti = proto_tree_add_protocol_format(tree, proto_frame, tvb, 0, -1,
"Frame %u (%u on wire, %u captured)", pinfo->fd->num, pkt_len, cap_len);
@@ -235,6 +238,9 @@ proto_register_frame(void)
{ "File Offset", "frame.file_off", FT_INT32, BASE_DEC, NULL, 0x0,
"", HFILL }},
+ { &hf_frame_marked,
+ { "Frame is marked", "frame.marked", FT_BOOLEAN, 8, NULL, 0x0,
+ "Frame is marked in the GUI", HFILL }},
};
static gint *ett[] = {
&ett_frame,