aboutsummaryrefslogtreecommitdiffstats
path: root/packet-isis-clv.h
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-07-02 00:19:34 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-07-02 00:19:34 +0000
commit67494f2698f79e3abcc8b805fdacd594a0a9a9b4 (patch)
tree4a17b6f0efc2b6b2e48459cfbbd5362e6c1dce43 /packet-isis-clv.h
parent82f5673549009187f8f7ee587611d49a1bec0c64 (diff)
Tvbuffified ISIS dissector, from Ronnie Sahlberg.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3626 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-isis-clv.h')
-rw-r--r--packet-isis-clv.h53
1 files changed, 29 insertions, 24 deletions
diff --git a/packet-isis-clv.h b/packet-isis-clv.h
index a74f5c0101..4f2136da16 100644
--- a/packet-isis-clv.h
+++ b/packet-isis-clv.h
@@ -1,7 +1,7 @@
/* packet-isis-clv.h
* Declares for common clv decoding functions.
*
- * $Id: packet-isis-clv.h,v 1.6 2001/06/23 19:45:12 guy Exp $
+ * $Id: packet-isis-clv.h,v 1.7 2001/07/02 00:19:34 guy Exp $
* Stuart Stanley <stuarts@mxmail.net>
*
* Ethereal - Network traffic analyzer
@@ -34,33 +34,38 @@ typedef struct {
int optcode; /* code for option */
char *tree_text; /* text for fold out */
gint *tree_id; /* id for add_item */
- void (*dissect)(const u_char *pd, int offset, guint length,
- int id_length, frame_data *fd, proto_tree *tree );
+ void (*dissect)(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
+ int offset, int id_length, int length);
} isis_clv_handle_t;
/*
* Published API functions. NOTE, this are "local" API functions and
* are only valid from with isis decodes.
*/
-extern void isis_dissect_clvs(const isis_clv_handle_t *opts, int len,
- int id_length, const u_char *pd, int offset, frame_data *fd,
- proto_tree *tree, int unknown_ett_handle );
-extern void isis_dissect_area_address_clv(const u_char *pd, int offset,
- guint length, frame_data *fd, proto_tree *tree );
-extern void isis_dissect_metric(proto_tree *tree, int offset, guint8 value,
- char *pstr, int force_supported, gint tree_id );
-extern void isis_dissect_authentication_clv(const u_char *pd, int offset,
- guint length, frame_data *fd, proto_tree *tree, char *meaning);
-extern void isis_dissect_ip_int_clv(const u_char *pd, int offset,
- guint length, frame_data *fd, proto_tree *tree, gint tree_id );
-extern void isis_dissect_ipv6_int_clv(const u_char *pd, int offset,
- guint length, frame_data *fd, proto_tree *tree, gint tree_id );
-extern void isis_dissect_nlpid_clv(const u_char *pd, int offset,
- guint length, frame_data *fd, proto_tree *tree );
-extern void isis_dissect_hostname_clv(const u_char *pd, int offset,
- guint length, frame_data *fd, proto_tree *tree );
-extern void isis_dissect_mt_clv(const u_char *pd, int offset,
- guint length, frame_data *fd, proto_tree *tree, gint tree_id );
-extern void isis_dissect_te_router_id_clv(const u_char *pd, int offset,
- guint length, frame_data *fd, proto_tree *tree, gint tree_id );
+extern void isis_dissect_clvs(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset,
+ const isis_clv_handle_t *opts, int len, int id_length,
+ int unknown_tree_id);
+
+extern void isis_dissect_nlpid_clv(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset, int length);
+extern void isis_dissect_te_router_id_clv(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset, int length, int tree_id);
+extern void isis_dissect_ipv6_int_clv(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset, int length, int tree_id);
+extern void isis_dissect_ip_int_clv(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset, int length, int tree_id);
+extern void isis_dissect_mt_clv(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset, int length, int tree_id);
+extern void isis_dissect_hostname_clv(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset, int length);
+extern void isis_dissect_authentication_clv(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset, int length, char *meaning);
+extern void isis_dissect_area_address_clv(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset, int length);
+
+extern void isis_dissect_metric(tvbuff_t *tvb, packet_info *pinfo,
+ proto_tree *tree, int offset,
+ guint8 value, char *pstr, int force_supported);
+
#endif /* _PACKET_ISIS_CLV_H */