2 * Declares for common clv decoding functions.
4 * $Id: packet-isis-clv.h,v 1.8 2002/04/07 22:36:55 guy Exp $
5 * Stuart Stanley <stuarts@mxmail.net>
7 * Ethereal - Network traffic analyzer
8 * By Gerald Combs <gerald@ethereal.com>
9 * Copyright 1998 Gerald Combs
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 #ifndef _PACKET_ISIS_CLV_H
27 #define _PACKET_ISIS_CLV_H
30 * Our sub-packet dismantle structure for CLV's
33 int optcode; /* code for option */
34 char *tree_text; /* text for fold out */
35 gint *tree_id; /* id for add_item */
36 void (*dissect)(tvbuff_t *tvb, proto_tree *tree,
37 int offset, int id_length, int length);
41 * Published API functions. NOTE, this are "local" API functions and
42 * are only valid from with isis decodes.
44 extern void isis_dissect_clvs(tvbuff_t *tvb, proto_tree *tree, int offset,
45 const isis_clv_handle_t *opts, int len, int id_length,
48 extern void isis_dissect_nlpid_clv(tvbuff_t *tvb, proto_tree *tree,
49 int offset, int length);
50 extern void isis_dissect_te_router_id_clv(tvbuff_t *tvb, proto_tree *tree,
51 int offset, int length, int tree_id);
52 extern void isis_dissect_ipv6_int_clv(tvbuff_t *tvb, proto_tree *tree,
53 int offset, int length, int tree_id);
54 extern void isis_dissect_ip_int_clv(tvbuff_t *tvb, proto_tree *tree,
55 int offset, int length, int tree_id);
56 extern void isis_dissect_mt_clv(tvbuff_t *tvb, proto_tree *tree,
57 int offset, int length, int tree_id);
58 extern void isis_dissect_hostname_clv(tvbuff_t *tvb, proto_tree *tree,
59 int offset, int length);
60 extern void isis_dissect_authentication_clv(tvbuff_t *tvb, proto_tree *tree,
61 int offset, int length, char *meaning);
62 extern void isis_dissect_area_address_clv(tvbuff_t *tvb, proto_tree *tree,
63 int offset, int length);
65 extern void isis_dissect_metric(tvbuff_t *tvb, proto_tree *tree, int offset,
66 guint8 value, char *pstr, int force_supported);
68 #endif /* _PACKET_ISIS_CLV_H */