]>
git.proxmox.com Git - mirror_frr.git/blob - pathd/path_pcep_lib.h
2 * Copyright (C) 2020 NetDEF, Inc.
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)
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
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
19 #ifndef _PATH_PCEP_LIB_H_
20 #define _PATH_PCEP_LIB_H_
23 #include "pceplib/pcep_pcc_api.h"
24 #include "frr_pthread.h"
25 #include "pathd/path_pcep.h"
27 int pcep_lib_initialize(struct frr_pthread
*fpt
);
28 void pcep_lib_finalize(void);
30 pcep_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
);
33 void pcep_lib_disconnect(pcep_session
*sess
);
34 struct pcep_message
*pcep_lib_format_report(struct pcep_caps
*caps
,
36 struct pcep_message
*pcep_lib_format_request(struct pcep_caps
*caps
,
38 struct pcep_message
*pcep_lib_format_request_cancelled(uint32_t reqid
);
40 struct pcep_message
*pcep_lib_format_error(int error_type
, int error_value
,
42 struct path
*pcep_lib_parse_path(struct pcep_message
*msg
);
43 void pcep_lib_parse_capabilities(struct pcep_message
*msg
,
44 struct pcep_caps
*caps
);
45 struct counters_group
*pcep_lib_copy_counters(pcep_session
*sess
);
46 void pcep_lib_free_counters(struct counters_group
*counters
);
47 pcep_session
*pcep_lib_copy_pcep_session(pcep_session
*sess
);
49 #endif // _PATH_PCEP_LIB_H_