summaryrefslogtreecommitdiff
path: root/packet-isis-clv.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2000-05-31 05:09:07 +0000
committerGuy Harris <guy@alum.mit.edu>2000-05-31 05:09:07 +0000
commit283ce59938ad2be252a6232e40a958e177a40e1a (patch)
treeb451d4a712d9b914022ba872296e70e55b8d9bc5 /packet-isis-clv.c
parentaa553f63ecc7b9e310a05b743502c50f6dffb800 (diff)
downloadwireshark-283ce59938ad2be252a6232e40a958e177a40e1a.tar.gz
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. svn path=/trunk/; revision=2031
Diffstat (limited to 'packet-isis-clv.c')
-rw-r--r--packet-isis-clv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-isis-clv.c b/packet-isis-clv.c
index ed1354af90..7de64f88b6 100644
--- a/packet-isis-clv.c
+++ b/packet-isis-clv.c
@@ -1,7 +1,7 @@
/* packet-isis-clv.c
* Common CLV decode routines.
*
- * $Id: packet-isis-clv.c,v 1.4 2000/05/11 08:15:16 gram Exp $
+ * $Id: packet-isis-clv.c,v 1.5 2000/05/31 05:07:12 guy Exp $
* Stuart Stanley <stuarts@mxmail.net>
*
* Ethereal - Network traffic analyzer
@@ -212,7 +212,7 @@ isis_dissect_ip_int_clv(const u_char *pd, int offset,
}
memcpy(&addr, &pd[offset], sizeof(addr));
if ( tree ) {
- proto_tree_add_item(tree, tree_id, NullTVB, offset, 4, addr);
+ proto_tree_add_ipv4(tree, tree_id, NullTVB, offset, 4, addr);
}
offset += 4;
length -= 4;