]> git.proxmox.com Git - mirror_frr.git/blame - pathd/path_pcep_lib.h
Merge pull request #10947 from donaldsharp/isis_crash
[mirror_frr.git] / pathd / path_pcep_lib.h
CommitLineData
efba0985
SM
1/*
2 * Copyright (C) 2020 NetDEF, Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; see the file COPYING; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef _PATH_PCEP_LIB_H_
20#define _PATH_PCEP_LIB_H_
21
22#include <stdbool.h>
74971473 23#include "pceplib/pcep_pcc_api.h"
efba0985
SM
24#include "frr_pthread.h"
25#include "pathd/path_pcep.h"
26
27int pcep_lib_initialize(struct frr_pthread *fpt);
28void pcep_lib_finalize(void);
29pcep_session *
30pcep_lib_connect(struct ipaddr *src_addr, int src_port, struct ipaddr *dst_addr,
31 int dst_port, short msd,
32 const struct pcep_config_group_opts *pcep_options);
33void pcep_lib_disconnect(pcep_session *sess);
34struct pcep_message *pcep_lib_format_report(struct pcep_caps *caps,
35 struct path *path);
36struct pcep_message *pcep_lib_format_request(struct pcep_caps *caps,
37 struct path *path);
38struct pcep_message *pcep_lib_format_request_cancelled(uint32_t reqid);
39
56634922
JG
40struct pcep_message *pcep_lib_format_error(int error_type, int error_value,
41 struct path *path);
efba0985
SM
42struct path *pcep_lib_parse_path(struct pcep_message *msg);
43void pcep_lib_parse_capabilities(struct pcep_message *msg,
44 struct pcep_caps *caps);
45struct counters_group *pcep_lib_copy_counters(pcep_session *sess);
46void pcep_lib_free_counters(struct counters_group *counters);
47pcep_session *pcep_lib_copy_pcep_session(pcep_session *sess);
48
49#endif // _PATH_PCEP_LIB_H_