]> git.proxmox.com Git - mirror_frr.git/blob - lib/segment_routing.h
Merge pull request #13455 from sri-mohan1/srib-ldpd
[mirror_frr.git] / lib / segment_routing.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*********************************************************************
3 * Copyright 2022 Hiroki Shirokura, LINE Corporation
4 * Copyright 2022 Masakazu Asama
5 * Copyright 2022 6WIND S.A.
6 *
7 * segment_routing.h: Segment-Routing Library
8 *
9 * Authors
10 * -------
11 * Hiroki Shirokura
12 * Masakazu Asama
13 * Louis Scalbert
14 */
15
16 #ifndef _FRR_SR_H
17 #define _FRR_SR_H
18
19 #include <zebra.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 /*
26 * IGP Algorithm Types
27 * https://www.iana.org/assignments/igp-parameters/igp-parameters.xhtml
28 */
29 #define SR_ALGORITHM_SPF 0 /* RFC8665 */
30 #define SR_ALGORITHM_STRICT_SPF 1 /* RFC8665 */
31 #define SR_ALGORITHM_UNSET 127 /* FRRouting defined */
32 #define SR_ALGORITHM_FLEX_MIN 128 /* RFC9350 Flex-Algorithm */
33 #define SR_ALGORITHM_FLEX_MAX 255 /* RFC9350 Flex-Algorithm */
34 #define SR_ALGORITHM_COUNT 256
35
36 const char *sr_algorithm_string(uint8_t algo);
37
38 #ifdef __cplusplus
39 }
40 #endif
41
42 #endif /* _FRR_SR_H */