blob: e933728c7be01357c51903ba97615a50d2ed9de5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) 2020 NetDEF, Inc.
*/
#ifndef _PATH_PCEP_CONFIG_H_
#define _PATH_PCEP_CONFIG_H_
#include <stdbool.h>
#include <debug.h>
#include "pathd/path_pcep.h"
#define PATH_NB_NO_CHANGE 0
#define PATH_NB_OK 1
#define PATH_NB_ERR -1
typedef int (*path_list_cb_t)(struct path *path, void *arg);
/* Lookup the candidate path and fill up the missing path attributes like name
* and type. Used for path generated from PCEP message received from the PCE
* so they contains more information about the candidate path. If no matching
* policy or candidate path is found, nothing is changed.
* MUST BE CALLED FROM THE MAIN THREAD */
void path_pcep_refine_path(struct path *path);
struct path *path_pcep_config_get_path(struct lsp_nb_key *key);
void path_pcep_config_list_path(path_list_cb_t cb, void *arg);
int path_pcep_config_initiate_path(struct path *path);
int path_pcep_config_update_path(struct path *path);
struct path *candidate_to_path(struct srte_candidate *candidate);
#endif // _PATH_PCEP_CONFIG_H_
|