jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 1 | /* |
| 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 |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 26 | */ |
| 27 | struct area_addr |
| 28 | { |
| 29 | u_char addr_len; |
| 30 | u_char area_addr[20]; |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 31 | }; |
| 32 | |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 33 | struct isis_passwd |
| 34 | { |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 35 | u_char len; |
| 36 | #define ISIS_PASSWD_TYPE_UNUSED 0 |
| 37 | #define ISIS_PASSWD_TYPE_CLEARTXT 1 |
Fritz Reichmann | e6b03b7 | 2011-10-01 17:49:48 +0400 | [diff] [blame^] | 38 | #define ISIS_PASSWD_TYPE_HMAC_MD5 54 |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 39 | #define ISIS_PASSWD_TYPE_PRIVATE 255 |
| 40 | u_char type; |
hasso | 1cbc562 | 2005-01-01 10:29:51 +0000 | [diff] [blame] | 41 | /* Authenticate SNPs? */ |
| 42 | #define SNP_AUTH_SEND 0x01 |
| 43 | #define SNP_AUTH_RECV 0x02 |
| 44 | u_char snp_auth; |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 45 | u_char passwd[255]; |
| 46 | }; |
| 47 | |
| 48 | /* |
| 49 | * (Dynamic) Hostname |
| 50 | * one struct for cache list |
| 51 | * one struct for LSP TLV |
| 52 | */ |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 53 | struct hostname |
| 54 | { |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 55 | u_char namelen; |
| 56 | u_char name[255]; |
| 57 | }; |
| 58 | |
| 59 | /* |
| 60 | * Supported Protocol IDs |
| 61 | */ |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 62 | struct nlpids |
| 63 | { |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 64 | u_char count; |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 65 | u_char nlpids[4]; /* FIXME: enough ? */ |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 66 | }; |
| 67 | |
| 68 | /* |
| 69 | * Flags structure for SSN and SRM flags |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 70 | */ |
| 71 | struct flags |
| 72 | { |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 73 | int maxindex; |
| 74 | struct list *free_idcs; |
| 75 | }; |