Fix Gerald's address.
[obnox/wireshark/wip.git] / packet-isis-snp.h
1 /* packet-isis-snp.h
2  * Defines and such for CSNP, PSNP, and their payloads
3  *
4  * $Id: packet-isis-snp.h,v 1.2 2000/06/19 08:33:50 guy Exp $
5  * Stuart Stanley <stuarts@mxmail.net>
6  *
7  * Ethereal - Network traffic analyzer
8  * By Gerald Combs <gerald@zing.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * 
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.
16  * 
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.
21  * 
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.
25  *
26  *
27  */
28
29 #ifndef _PACKET_ISIS_SNP_H
30 #define _PACKET_ISIS_SNP_H
31
32 /*
33  * Note, the spec say 133 for authentication, but everyone seems to use 10. 
34  * Any clue on why this is would be appreciated!
35  */
36
37 /*
38  * detail cvls information for L1 CSNP packets
39  */
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
43
44 /*
45  * detail cvls information for L2 CSNP packets
46  */
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
50
51 /*
52  * detail cvls information for L1 PSNP packets
53  */
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
57
58 /*
59  * detail cvls information for L2 PSNP packets
60  */
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
64
65 /*
66  * Published API functions.  NOTE, this are "local" API functions and
67  * are only valid from with isis decodes.
68  */
69 extern void isis_dissect_isis_csnp(int type, int header_length, int id_length,
70         const u_char *pd, int offset, frame_data *fd, proto_tree *tree);
71 extern void isis_dissect_isis_psnp(int type, int header_length, int id_length,
72         const u_char *pd, int offset, frame_data *fd, proto_tree *tree);
73
74 #endif /* _PACKET_ISIS_CSNP_H */