]>
Commit | Line | Data |
---|---|---|
acddc0ed | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
eb5d44eb | 2 | /* |
d62a17ae | 3 | * IS-IS Rout(e)ing protocol - isis_common.h |
eb5d44eb | 4 | * some common data structures |
5 | * | |
6 | * Copyright (C) 2001,2002 Sampo Saaristo | |
d62a17ae | 7 | * Tampere University of Technology |
eb5d44eb | 8 | * Institute of Communications Engineering |
eb5d44eb | 9 | */ |
10 | ||
3f045a08 JB |
11 | #ifndef ISIS_COMMON_H |
12 | #define ISIS_COMMON_H | |
13 | ||
eb5d44eb | 14 | /* |
15 | * Area Address | |
f390d2c7 | 16 | */ |
d62a17ae | 17 | struct area_addr { |
d7c0a89a QY |
18 | uint8_t addr_len; |
19 | uint8_t area_addr[20]; | |
eb5d44eb | 20 | }; |
21 | ||
d62a17ae | 22 | struct isis_passwd { |
d7c0a89a | 23 | uint8_t len; |
eb5d44eb | 24 | #define ISIS_PASSWD_TYPE_UNUSED 0 |
25 | #define ISIS_PASSWD_TYPE_CLEARTXT 1 | |
3f045a08 | 26 | #define ISIS_PASSWD_TYPE_HMAC_MD5 54 |
eb5d44eb | 27 | #define ISIS_PASSWD_TYPE_PRIVATE 255 |
d7c0a89a | 28 | uint8_t type; |
d62a17ae | 29 | /* Authenticate SNPs? */ |
1cbc562b | 30 | #define SNP_AUTH_SEND 0x01 |
31 | #define SNP_AUTH_RECV 0x02 | |
d7c0a89a QY |
32 | uint8_t snp_auth; |
33 | uint8_t passwd[255]; | |
eb5d44eb | 34 | }; |
35 | ||
eb5d44eb | 36 | /* |
37 | * Supported Protocol IDs | |
38 | */ | |
d62a17ae | 39 | struct nlpids { |
d7c0a89a QY |
40 | uint8_t count; |
41 | uint8_t nlpids[4]; /* FIXME: enough ? */ | |
eb5d44eb | 42 | }; |
43 | ||
3f045a08 | 44 | #endif |