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 | |
Josh Bailey | 3f045a0 | 2012-03-24 08:35:20 -0700 | [diff] [blame] | 24 | #ifndef ISIS_COMMON_H |
| 25 | #define ISIS_COMMON_H |
| 26 | |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 27 | /* |
| 28 | * Area Address |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 29 | */ |
| 30 | struct area_addr |
| 31 | { |
| 32 | u_char addr_len; |
| 33 | u_char area_addr[20]; |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 34 | }; |
| 35 | |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 36 | struct isis_passwd |
| 37 | { |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 38 | u_char len; |
| 39 | #define ISIS_PASSWD_TYPE_UNUSED 0 |
| 40 | #define ISIS_PASSWD_TYPE_CLEARTXT 1 |
Josh Bailey | 3f045a0 | 2012-03-24 08:35:20 -0700 | [diff] [blame] | 41 | #define ISIS_PASSWD_TYPE_HMAC_MD5 54 |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 42 | #define ISIS_PASSWD_TYPE_PRIVATE 255 |
| 43 | u_char type; |
hasso | 1cbc562 | 2005-01-01 10:29:51 +0000 | [diff] [blame] | 44 | /* Authenticate SNPs? */ |
| 45 | #define SNP_AUTH_SEND 0x01 |
| 46 | #define SNP_AUTH_RECV 0x02 |
| 47 | u_char snp_auth; |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 48 | u_char passwd[255]; |
| 49 | }; |
| 50 | |
| 51 | /* |
| 52 | * (Dynamic) Hostname |
| 53 | * one struct for cache list |
| 54 | * one struct for LSP TLV |
| 55 | */ |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 56 | struct hostname |
| 57 | { |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 58 | u_char namelen; |
| 59 | u_char name[255]; |
| 60 | }; |
| 61 | |
| 62 | /* |
| 63 | * Supported Protocol IDs |
| 64 | */ |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 65 | struct nlpids |
| 66 | { |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 67 | u_char count; |
hasso | f390d2c | 2004-09-10 20:48:21 +0000 | [diff] [blame] | 68 | u_char nlpids[4]; /* FIXME: enough ? */ |
jardin | eb5d44e | 2003-12-23 08:09:43 +0000 | [diff] [blame] | 69 | }; |
| 70 | |
Josh Bailey | 3f045a0 | 2012-03-24 08:35:20 -0700 | [diff] [blame] | 71 | #endif |