aboutsummaryrefslogtreecommitdiffstats
path: root/packet-l2tp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-05-31 05:09:07 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-05-31 05:09:07 +0000
commite41a093685c520e2a86e4391a3e39168b13f7d24 (patch)
treeb451d4a712d9b914022ba872296e70e55b8d9bc5 /packet-l2tp.c
parentd3cf6abccf0b2b9fbcac9e89a2c3a889c4289eb1 (diff)
Add routines for adding items to a protocol tree that take arguments of
a particular type, rather than taking a varargs list, along the lines of the "proto_tree_add_XXX_format()" routines. Replace most calls to "proto_tree_add_item()" and "proto_tree_add_item_hidden()" with calls to those routines. Rename "proto_tree_add_item()" and "proto_tree_add_item_hidden()" to "proto_tree_add_item_old()" and "proto_tree_add_item_hidden_old()", and add new "proto_tree_add_item()" and "proto_tree_add_item_hidden()" routines that don't take the item to be added as an argument - instead, they fetch the argument from the packet whose tvbuff was handed to them, from the offset handed to them. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2031 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-l2tp.c')
-rw-r--r--packet-l2tp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-l2tp.c b/packet-l2tp.c
index 7daefb6aa9..f5b9032c53 100644
--- a/packet-l2tp.c
+++ b/packet-l2tp.c
@@ -7,7 +7,7 @@
* Laurent Cazalet <laurent.cazalet@mailclub.net>
* Thomas Parvais <thomas.parvais@advalvas.be>
*
- * $Id: packet-l2tp.c,v 1.9 2000/05/11 08:15:17 gram Exp $
+ * $Id: packet-l2tp.c,v 1.10 2000/05/31 05:07:15 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -336,7 +336,7 @@ dissect_l2tp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree)
col_add_fstr(fd,COL_INFO,textbuffer);
}
if (tree) {
- ti = proto_tree_add_item(tree,proto_l2tp, NullTVB, offset, length , NULL);
+ ti = proto_tree_add_item(tree,proto_l2tp, NullTVB, offset, length, FALSE);
l2tp_tree = proto_item_add_subtree(ti, ett_l2tp);
proto_tree_add_uint_format(l2tp_tree,hf_l2tp_code, NullTVB, offset ,1,
rhcode, "Packet Type: %s Tunnel Id=%d Session Id=%d",( CONTROL_BIT(ver) ? control_msg : data_msg) ,tid,cid);