From Olivier Biot: have a separate subtree ett_ value for concatenated
[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.7 2002/08/29 18:52:51 guy Exp $
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_SNP_H
27 #define _PACKET_ISIS_SNP_H
28
29 /*
30  * Note, the spec say 133 for authentication, but everyone seems to use 10.
31  * Any clue on why this is would be appreciated!
32  */
33
34 /*
35  * detail cvls information for L1 CSNP packets
36  */
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
40
41 /*
42  * detail cvls information for L2 CSNP packets
43  */
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
47
48 /*
49  * detail cvls information for L1 PSNP packets
50  */
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
54
55 /*
56  * detail cvls information for L2 PSNP packets
57  */
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
61
62 /*
63  * Published API functions.  NOTE, this are "local" API functions and
64  * are only valid from with isis decodes.
65  */
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);
72
73 #endif /* _PACKET_ISIS_CSNP_H */