As the gtk2 directory is no longer needed (GTK1 and 2 are using the same sources...
[obnox/wireshark/wip.git] / epan / dissectors / packet-isis.h
1 /* packet-isis.h
2  * Defines and such for core isis protcol decode.
3  *
4  * $Id$
5  * Stuart Stanley <stuarts@mxmail.net>
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@ethereal.com>
9  * Copyright 1998 Gerald Combs
10  *
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.
15  *
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.
20  *
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.
24  */
25
26 #ifndef _PACKET_ISIS_H
27 #define _PACKET_ISIS_H
28
29 /*
30  * The version we support is 1
31  */
32 #define ISIS_REQUIRED_VERSION 1
33
34 /*
35  * ISIS type field values
36  */
37 #define ISIS_TYPE_L1_HELLO  15
38 #define ISIS_TYPE_L2_HELLO  16
39 #define ISIS_TYPE_PTP_HELLO 17
40 #define ISIS_TYPE_L1_LSP    18
41 #define ISIS_TYPE_L2_LSP    20
42 #define ISIS_TYPE_L1_CSNP   24
43 #define ISIS_TYPE_L2_CSNP   25
44 #define ISIS_TYPE_L1_PSNP   26
45 #define ISIS_TYPE_L2_PSNP   27
46
47 #define ISIS_TYPE_MASK      0x1f
48 #define ISIS_R8_MASK        0x80
49 #define ISIS_R7_MASK        0x40
50 #define ISIS_R6_MASK        0x20
51
52 /*
53  * published API functions
54  */
55
56 extern char *isis_address_to_string(tvbuff_t *tvb, int offset, int len);
57 extern void isis_dissect_unknown(tvbuff_t *tvb, proto_tree *tree, int offset,
58         char *fmat, ...);
59
60 #endif /* _PACKET_ISIS_H */