summaryrefslogtreecommitdiff
path: root/epan/plugins.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-04-29 21:27:19 +0000
committerGuy Harris <guy@alum.mit.edu>2003-04-29 21:27:19 +0000
commit1025817e84e329d32ab0ffb0b81488db1c326103 (patch)
tree023697e5009882c563216935eee4b494e4f46c9f /epan/plugins.c
parent925a9396fb9fb84ad449236e5ab5e29268a108e7 (diff)
downloadwireshark-1025817e84e329d32ab0ffb0b81488db1c326103.tar.gz
Add a "proto_item_set_end()" routine that sets the length of an item
given a tvbuff/offset pair referring to the byte past the end of the item. Use it in one place in the SMB dissector (there are plenty of other places where it could be used as well). svn path=/trunk/; revision=7603
Diffstat (limited to 'epan/plugins.c')
-rw-r--r--epan/plugins.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/plugins.c b/epan/plugins.c
index e30326af09..5c546db31b 100644
--- a/epan/plugins.c
+++ b/epan/plugins.c
@@ -1,7 +1,7 @@
/* plugins.c
* plugin routines
*
- * $Id: plugins.c,v 1.65 2003/04/24 21:15:12 guy Exp $
+ * $Id: plugins.c,v 1.66 2003/04/29 21:27:12 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -333,7 +333,6 @@ init_plugins(const char *plugin_dir)
patable.p_proto_item_add_subtree = proto_item_add_subtree;
patable.p_proto_tree_add_item = proto_tree_add_item;
patable.p_proto_tree_add_item_hidden = proto_tree_add_item_hidden;
- patable.p_proto_tree_add_none_format = proto_tree_add_none_format;
patable.p_proto_tree_add_protocol_format = proto_tree_add_protocol_format;
patable.p_proto_tree_add_bytes = proto_tree_add_bytes;
patable.p_proto_tree_add_bytes_hidden = proto_tree_add_bytes_hidden;
@@ -519,6 +518,8 @@ init_plugins(const char *plugin_dir)
patable.p_asn1_sequence_decode = asn1_sequence_decode;
patable.p_asn1_err_to_str = asn1_err_to_str;
+ patable.p_proto_item_set_end = proto_item_set_end;
+ patable.p_proto_tree_add_none_format = proto_tree_add_none_format;
#endif
#ifdef WIN32