blob: 7a0768a8c51ffd54a7d904314d7e07ef14be8ffa [file] [log] [blame]
jardineb5d44e2003-12-23 08:09:43 +00001/*
2 * IS-IS Rout(e)ing protocol - isis_common.h
3 * some common data structures
4 *
5 * Copyright (C) 2001,2002 Sampo Saaristo
6 * Tampere University of Technology
7 * Institute of Communications Engineering
8 *
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public Licenseas published by the Free
11 * Software Foundation; either version 2 of the License, or (at your option)
12 * any later version.
13 *
14 * This program is distributed in the hope that it will be useful,but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 * more details.
18
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 */
23
24/*
25 * Area Address
hassof390d2c2004-09-10 20:48:21 +000026 */
27struct area_addr
28{
29 u_char addr_len;
30 u_char area_addr[20];
jardineb5d44e2003-12-23 08:09:43 +000031};
32
hassof390d2c2004-09-10 20:48:21 +000033struct isis_passwd
34{
jardineb5d44e2003-12-23 08:09:43 +000035 u_char len;
36#define ISIS_PASSWD_TYPE_UNUSED 0
37#define ISIS_PASSWD_TYPE_CLEARTXT 1
38#define ISIS_PASSWD_TYPE_PRIVATE 255
39 u_char type;
40 u_char passwd[255];
41};
42
43/*
44 * (Dynamic) Hostname
45 * one struct for cache list
46 * one struct for LSP TLV
47 */
hassof390d2c2004-09-10 20:48:21 +000048struct hostname
49{
jardineb5d44e2003-12-23 08:09:43 +000050 u_char namelen;
51 u_char name[255];
52};
53
54/*
55 * Supported Protocol IDs
56 */
hassof390d2c2004-09-10 20:48:21 +000057struct nlpids
58{
jardineb5d44e2003-12-23 08:09:43 +000059 u_char count;
hassof390d2c2004-09-10 20:48:21 +000060 u_char nlpids[4]; /* FIXME: enough ? */
jardineb5d44e2003-12-23 08:09:43 +000061};
62
63/*
64 * Flags structure for SSN and SRM flags
hassof390d2c2004-09-10 20:48:21 +000065 */
66struct flags
67{
jardineb5d44e2003-12-23 08:09:43 +000068 int maxindex;
69 struct list *free_idcs;
70};