2 * Defines and such for CSNP, PSNP, and their payloads
4 * $Id: packet-isis-snp.h,v 1.7 2002/08/29 18:52:51 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_SNP_H
27 #define _PACKET_ISIS_SNP_H
30 * Note, the spec say 133 for authentication, but everyone seems to use 10.
31 * Any clue on why this is would be appreciated!
35 * detail cvls information for L1 CSNP packets
37 #define ISIS_CLV_L1_CSNP_LSP_ENTRIES 9
38 #define ISIS_CLV_L1_CSNP_AUTHENTICATION_NS 10
39 #define ISIS_CLV_L1_CSNP_AUTHENTICATION 133
42 * detail cvls information for L2 CSNP packets
44 #define ISIS_CLV_L2_CSNP_LSP_ENTRIES 9
45 #define ISIS_CLV_L2_CSNP_AUTHENTICATION_NS 10
46 #define ISIS_CLV_L2_CSNP_AUTHENTICATION 133
49 * detail cvls information for L1 PSNP packets
51 #define ISIS_CLV_L1_PSNP_LSP_ENTRIES 9
52 #define ISIS_CLV_L1_PSNP_AUTHENTICATION_NS 10
53 #define ISIS_CLV_L1_PSNP_AUTHENTICATION 133
56 * detail cvls information for L2 PSNP packets
58 #define ISIS_CLV_L2_PSNP_LSP_ENTRIES 9
59 #define ISIS_CLV_L2_PSNP_AUTHENTICATION_NS 10
60 #define ISIS_CLV_L2_PSNP_AUTHENTICATION 133
63 * Published API functions. NOTE, this are "local" API functions and
64 * are only valid from with isis decodes.
66 extern void isis_dissect_isis_csnp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
67 int offset, int type, int header_length, int id_length);
68 extern void isis_register_csnp(int proto_isis);
69 extern void isis_dissect_isis_psnp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
70 int offset, int type, int header_length, int id_length);
71 extern void isis_register_psnp(int proto_isis);
73 #endif /* _PACKET_ISIS_CSNP_H */