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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 * @brief BFD global declarations
19 #ifndef __included_bfd_api_h__
20 #define __included_bfd_api_h__
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>
28 bfd_udp_add_session (u32 sw_if_index, const ip46_address_t * local_addr,
29 const ip46_address_t * peer_addr,
30 u32 desired_min_tx_usec, u32 required_min_rx_usec,
31 u8 detect_mult, u8 is_authenticated, u32 conf_key_id,
34 vnet_api_error_t bfd_udp_mod_session (u32 sw_if_index,
35 const ip46_address_t * local_addr,
36 const ip46_address_t * peer_addr,
37 u32 desired_min_tx_usec,
38 u32 required_min_rx_usec,
41 vnet_api_error_t bfd_udp_del_session (u32 sw_if_index,
42 const ip46_address_t * local_addr,
43 const ip46_address_t * peer_addr);
45 vnet_api_error_t bfd_udp_session_set_flags (u32 sw_if_index,
46 const ip46_address_t * local_addr,
47 const ip46_address_t * peer_addr,
50 vnet_api_error_t bfd_auth_set_key (u32 conf_key_id, u8 auth_type, u8 key_len,
53 vnet_api_error_t bfd_auth_del_key (u32 conf_key_id);
55 vnet_api_error_t bfd_udp_auth_activate (u32 sw_if_index,
56 const ip46_address_t * local_addr,
57 const ip46_address_t * peer_addr,
58 u32 conf_key_id, u8 bfd_key_id,
61 vnet_api_error_t bfd_udp_auth_deactivate (u32 sw_if_index,
62 const ip46_address_t * local_addr,
63 const ip46_address_t * peer_addr,
66 #endif /* __included_bfd_api_h__ */
69 * fd.io coding-style-patch-verification: ON
72 * eval: (c-set-style "gnu")