]>
Commit | Line | Data |
---|---|---|
eb5d44eb | 1 | /* |
d62a17ae | 2 | * IS-IS Rout(e)ing protocol - isis_common.h |
eb5d44eb | 3 | * some common data structures |
4 | * | |
5 | * Copyright (C) 2001,2002 Sampo Saaristo | |
d62a17ae | 6 | * Tampere University of Technology |
eb5d44eb | 7 | * Institute of Communications Engineering |
8 | * | |
d62a17ae | 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) | |
eb5d44eb | 12 | * any later version. |
13 | * | |
d62a17ae | 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 | |
eb5d44eb | 17 | * more details. |
896014f4 DL |
18 | * |
19 | * You should have received a copy of the GNU General Public License along | |
20 | * with this program; see the file COPYING; if not, write to the Free Software | |
21 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | |
eb5d44eb | 22 | */ |
23 | ||
3f045a08 JB |
24 | #ifndef ISIS_COMMON_H |
25 | #define ISIS_COMMON_H | |
26 | ||
eb5d44eb | 27 | /* |
28 | * Area Address | |
f390d2c7 | 29 | */ |
d62a17ae | 30 | struct area_addr { |
d7c0a89a QY |
31 | uint8_t addr_len; |
32 | uint8_t area_addr[20]; | |
eb5d44eb | 33 | }; |
34 | ||
d62a17ae | 35 | struct isis_passwd { |
d7c0a89a | 36 | uint8_t len; |
eb5d44eb | 37 | #define ISIS_PASSWD_TYPE_UNUSED 0 |
38 | #define ISIS_PASSWD_TYPE_CLEARTXT 1 | |
3f045a08 | 39 | #define ISIS_PASSWD_TYPE_HMAC_MD5 54 |
eb5d44eb | 40 | #define ISIS_PASSWD_TYPE_PRIVATE 255 |
d7c0a89a | 41 | uint8_t type; |
d62a17ae | 42 | /* Authenticate SNPs? */ |
1cbc562b | 43 | #define SNP_AUTH_SEND 0x01 |
44 | #define SNP_AUTH_RECV 0x02 | |
d7c0a89a QY |
45 | uint8_t snp_auth; |
46 | uint8_t passwd[255]; | |
eb5d44eb | 47 | }; |
48 | ||
eb5d44eb | 49 | /* |
50 | * Supported Protocol IDs | |
51 | */ | |
d62a17ae | 52 | struct nlpids { |
d7c0a89a QY |
53 | uint8_t count; |
54 | uint8_t nlpids[4]; /* FIXME: enough ? */ | |
eb5d44eb | 55 | }; |
56 | ||
3f045a08 | 57 | #endif |