Coverage Report

Created: 2026-09-08 07:03

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/frr/lib/segment_routing.c
Line
Count
Source
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.c: Segment-Routing Library
8
 *
9
 * Authors
10
 * -------
11
 * Hiroki Shirokura
12
 * Masakazu Asama
13
 * Louis Scalbert
14
 */
15
16
#include "segment_routing.h"
17
18
const char *sr_algorithm_string(uint8_t algo)
19
0
{
20
0
  switch (algo) {
21
0
  case SR_ALGORITHM_SPF:
22
0
    return "SPF";
23
0
  case SR_ALGORITHM_STRICT_SPF:
24
0
    return "Strict SPF";
25
0
  case SR_ALGORITHM_UNSET:
26
0
    return "Unset";
27
0
  default:
28
0
    return algo >= SR_ALGORITHM_FLEX_MIN ? "Flex-Algo" : "Unknown";
29
0
  }
30
0
}