2 * Defines and such for core isis protcol decode.
4 * $Id: packet-isis.h,v 1.7 2001/07/02 02:09:26 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.
28 #ifndef _PACKET_ISIS_H
29 #define _PACKET_ISIS_H
32 * The version we support is 1
34 #define ISIS_REQUIRED_VERSION 1
37 * ISIS type field values
39 #define ISIS_TYPE_L1_HELLO 15
40 #define ISIS_TYPE_L2_HELLO 16
41 #define ISIS_TYPE_PTP_HELLO 17
42 #define ISIS_TYPE_L1_LSP 18
43 #define ISIS_TYPE_L2_LSP 20
44 #define ISIS_TYPE_L1_CSNP 24
45 #define ISIS_TYPE_L2_CSNP 25
46 #define ISIS_TYPE_L1_PSNP 26
47 #define ISIS_TYPE_L2_PSNP 27
49 #define ISIS_TYPE_MASK 0x1f
50 #define ISIS_R8_MASK 0x80
51 #define ISIS_R7_MASK 0x40
52 #define ISIS_R6_MASK 0x20
55 * published API functions
58 extern char *isis_address_to_string(tvbuff_t *tvb, int offset, int len);
59 extern void isis_dissect_unknown(tvbuff_t *tvb, packet_info *pinfo,
60 proto_tree *tree, int offset, char *fmat, ...);
62 #endif /* _PACKET_ISIS_H */