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