2 * Defines and such for CSNP, PSNP, and their payloads
4 * $Id: packet-isis-snp.h,v 1.3 2001/07/02 00:19:34 guy Exp $
5 * Stuart Stanley <stuarts@mxmail.net>
7 * Ethereal - Network traffic analyzer
8 * By Gerald Combs <gerald@zing.org>
9 * Copyright 1998 Gerald Combs
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
29 #ifndef _PACKET_ISIS_SNP_H
30 #define _PACKET_ISIS_SNP_H
33 * Note, the spec say 133 for authentication, but everyone seems to use 10.
34 * Any clue on why this is would be appreciated!
38 * detail cvls information for L1 CSNP packets
40 #define ISIS_CLV_L1_CSNP_LSP_ENTRIES 9
41 #define ISIS_CLV_L1_CSNP_AUTHENTICATION_NS 10
42 #define ISIS_CLV_L1_CSNP_AUTHENTICATION 133
45 * detail cvls information for L2 CSNP packets
47 #define ISIS_CLV_L2_CSNP_LSP_ENTRIES 9
48 #define ISIS_CLV_L2_CSNP_AUTHENTICATION_NS 10
49 #define ISIS_CLV_L2_CSNP_AUTHENTICATION 133
52 * detail cvls information for L1 PSNP packets
54 #define ISIS_CLV_L1_PSNP_LSP_ENTRIES 9
55 #define ISIS_CLV_L1_PSNP_AUTHENTICATION_NS 10
56 #define ISIS_CLV_L1_PSNP_AUTHENTICATION 133
59 * detail cvls information for L2 PSNP packets
61 #define ISIS_CLV_L2_PSNP_LSP_ENTRIES 9
62 #define ISIS_CLV_L2_PSNP_AUTHENTICATION_NS 10
63 #define ISIS_CLV_L2_PSNP_AUTHENTICATION 133
66 * Published API functions. NOTE, this are "local" API functions and
67 * are only valid from with isis decodes.
69 extern void isis_dissect_isis_csnp(tvbuff_t *tvb, packet_info *pinfo,
70 proto_tree *tree, int offset,
71 int type, int header_length, int id_length);
72 extern void isis_dissect_isis_psnp(tvbuff_t *tvb, packet_info *pinfo,
73 proto_tree *tree, int offset,
74 int type, int header_length, int id_length);
76 #endif /* _PACKET_ISIS_CSNP_H */