aboutsummaryrefslogtreecommitdiffstats
path: root/packet-frame.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-09-22 09:06:10 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-09-22 09:06:10 +0000
commitf99d0f9eddf7d57b0a93889124da7c50397ccea4 (patch)
tree1b5fb14921da205d406dbd25538d0443ed1dc6ca /packet-frame.c
parent44b43087916fd4dfa0ade967eb749dd73ff2f2e2 (diff)
Add filterable field for REF TIME frames so it is easy to search for them
svn path=/trunk/; revision=8511
Diffstat (limited to 'packet-frame.c')
-rw-r--r--packet-frame.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/packet-frame.c b/packet-frame.c
index 2e08d60889..cd61a3d5a9 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.38 2003/09/12 04:52:55 sahlberg Exp $
+ * $Id: packet-frame.c,v 1.39 2003/09/22 09:06:10 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -45,6 +45,7 @@ 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 hf_frame_ref_time = -1;
static int proto_short = -1;
int proto_malformed = -1;
@@ -131,6 +132,10 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree_add_boolean_hidden(fh_tree, hf_frame_marked, tvb, 0, 0,pinfo->fd->flags.marked);
+ if(pinfo->fd->flags.ref_time){
+ proto_tree_add_item(fh_tree, hf_frame_ref_time, tvb, 0, 0, FALSE);
+ }
+
ts.secs = pinfo->fd->abs_secs;
ts.nsecs = pinfo->fd->abs_usecs*1000;
@@ -270,6 +275,10 @@ proto_register_frame(void)
{ &hf_frame_marked,
{ "Frame is marked", "frame.marked", FT_BOOLEAN, 8, NULL, 0x0,
"Frame is marked in the GUI", HFILL }},
+
+ { &hf_frame_ref_time,
+ { "This is a Ref Time frame", "frame.ref_time", FT_NONE, 0, NULL, 0x0,
+ "This frame is a Reference Time frame", HFILL }},
};
static gint *ett[] = {
&ett_frame,