aboutsummaryrefslogtreecommitdiffstats
path: root/packet-time.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2000-05-11 08:18:09 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2000-05-11 08:18:09 +0000
commit292e38e2c61edcd14bfa30ca3c72bacda1bcbe32 (patch)
treedb4edef02456a48d0f6d505166ac7d70f6c0f644 /packet-time.c
parent162800efb308901e0c302517be01226130e39b19 (diff)
Add tvbuff class.
Add exceptions routines. Convert proto_tree_add_*() routines to require tvbuff_t* argument. Convert all dissectors to pass NULL argument ("NullTVB" macro == NULL) as the tvbuff_t* argument to proto_tree_add_*() routines. dissect_packet() creates a tvbuff_t, wraps the next dissect call in a TRY block, will print "Short Frame" on the proto_tree if a BoundsError exception is caught. The FDDI dissector is converted to use tvbuff's. svn path=/trunk/; revision=1939
Diffstat (limited to 'packet-time.c')
-rw-r--r--packet-time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-time.c b/packet-time.c
index 5a564112af..d60e6a32c3 100644
--- a/packet-time.c
+++ b/packet-time.c
@@ -5,7 +5,7 @@
* Craig Newell <CraigN@cheque.uq.edu.au>
* RFC2347 TIME Option Extension
*
- * $Id: packet-time.c,v 1.4 2000/04/08 07:07:40 guy Exp $
+ * $Id: packet-time.c,v 1.5 2000/05/11 08:15:53 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -56,14 +56,14 @@ dissect_time(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
if (tree) {
- ti = proto_tree_add_item(tree, proto_time, offset, END_OF_FRAME, NULL);
+ ti = proto_tree_add_item(tree, proto_time, NullTVB, offset, END_OF_FRAME, NULL);
time_tree = proto_item_add_subtree(ti, ett_time);
- proto_tree_add_text(time_tree, offset, 0,
+ proto_tree_add_text(time_tree, NullTVB, offset, 0,
pi.srcport==37? "Type: Response":"Type: Request");
if (pi.srcport == 37) {
guint32 delta_seconds = pntohl(pd+offset);
- proto_tree_add_text(time_tree, offset, 4,
+ proto_tree_add_text(time_tree, NullTVB, offset, 4,
" %u seconds since midnight 1 January 1900 GMT",
delta_seconds);
}