mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 04:08:33 +00:00

Add Maximum SRv6 SID Depths (MSDs) parameters as per RFC 9352 section #4 to the per-area IS-IS SRv6 Data Base. Currently the MSD values are hardcoded. Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
48 lines
1.2 KiB
C
48 lines
1.2 KiB
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* This is an implementation of Segment Routing over IPv6 (SRv6) for IS-IS
|
|
* as per RFC 9352
|
|
* https://datatracker.ietf.org/doc/html/rfc9352
|
|
*
|
|
* Copyright (C) 2023 Carmine Scarpitta - University of Rome Tor Vergata
|
|
*/
|
|
|
|
#ifndef _FRR_ISIS_SRV6_H
|
|
#define _FRR_ISIS_SRV6_H
|
|
|
|
/* Maximum SRv6 SID Depths supported by the router */
|
|
#define SRV6_MAX_SEG_LEFT 3
|
|
#define SRV6_MAX_END_POP 3
|
|
#define SRV6_MAX_H_ENCAPS 2
|
|
#define SRV6_MAX_END_D 5
|
|
|
|
/* Per-area IS-IS SRv6 Data Base (SRv6 DB) */
|
|
struct isis_srv6_db {
|
|
|
|
/* Area SRv6 configuration. */
|
|
struct {
|
|
/* Administrative status of SRv6 */
|
|
bool enabled;
|
|
|
|
/* Maximum Segments Left Depth supported by the router */
|
|
uint8_t max_seg_left_msd;
|
|
|
|
/* Maximum Maximum End Pop Depth supported by the router */
|
|
uint8_t max_end_pop_msd;
|
|
|
|
/* Maximum H.Encaps supported by the router */
|
|
uint8_t max_h_encaps_msd;
|
|
|
|
/* Maximum End D MSD supported by the router */
|
|
uint8_t max_end_d_msd;
|
|
} config;
|
|
};
|
|
|
|
extern void isis_srv6_area_init(struct isis_area *area);
|
|
extern void isis_srv6_area_term(struct isis_area *area);
|
|
|
|
void isis_srv6_init(void);
|
|
void isis_srv6_term(void);
|
|
|
|
#endif /* _FRR_ISIS_SRV6_H */
|