BFD: fix bfd_udp_add API
[vpp.git] / src / vnet / bfd / bfd_api.h
1 /*
2  * Copyright (c) 2011-2016 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 /**
16  * @file
17  * @brief BFD global declarations
18  */
19 #ifndef __included_bfd_api_h__
20 #define __included_bfd_api_h__
21
22 #include <vnet/api_errno.h>
23 #include <vnet/vnet.h>
24 #include <vnet/ip/ip6_packet.h>
25 #include <vnet/bfd/bfd_udp.h>
26
27 vnet_api_error_t bfd_udp_add_session (u32 sw_if_index, u32 desired_min_tx_us,
28                                       u32 required_min_rx_us, u8 detect_mult,
29                                       const ip46_address_t * local_addr,
30                                       const ip46_address_t * peer_addr,
31                                       u32 * bs_index);
32
33 vnet_api_error_t bfd_udp_del_session (u32 sw_if_index,
34                                       const ip46_address_t * local_addr,
35                                       const ip46_address_t * peer_addr);
36
37 vnet_api_error_t bfd_session_set_flags (u32 bs_index, u8 admin_up_down);
38
39 #endif /* __included_bfd_api_h__ */
40
41 /*
42  * fd.io coding-style-patch-verification: ON
43  *
44  * Local Variables:
45  * eval: (c-set-style "gnu")
46  * End:
47  */