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