]>
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 | ||
d62a17ae | 14 | struct isis_passwd { |
d7c0a89a | 15 | uint8_t len; |
eb5d44eb | 16 | #define ISIS_PASSWD_TYPE_UNUSED 0 |
17 | #define ISIS_PASSWD_TYPE_CLEARTXT 1 | |
3f045a08 | 18 | #define ISIS_PASSWD_TYPE_HMAC_MD5 54 |
eb5d44eb | 19 | #define ISIS_PASSWD_TYPE_PRIVATE 255 |
d7c0a89a | 20 | uint8_t type; |
d62a17ae | 21 | /* Authenticate SNPs? */ |
1cbc562b | 22 | #define SNP_AUTH_SEND 0x01 |
23 | #define SNP_AUTH_RECV 0x02 | |
d7c0a89a QY |
24 | uint8_t snp_auth; |
25 | uint8_t passwd[255]; | |
eb5d44eb | 26 | }; |
27 | ||
eb5d44eb | 28 | /* |
29 | * Supported Protocol IDs | |
30 | */ | |
d62a17ae | 31 | struct nlpids { |
d7c0a89a QY |
32 | uint8_t count; |
33 | uint8_t nlpids[4]; /* FIXME: enough ? */ | |
eb5d44eb | 34 | }; |
35 | ||
3f045a08 | 36 | #endif |