2 * Copyright (c) 2015-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.
16 /** \brief Configure BFD feature
17 @param client_index - opaque cookie to identify the sender
18 @param context - sender context, to match reply w/ request
19 @param slow_timer - slow timer (seconds)
20 @param min_tx - desired min tx interval
21 @param min_rx - desired min rx interval
22 @param detect_mult - desired detection multiplier
34 /** \brief Configure BFD feature response
35 @param context - sender context, to match reply w/ request
36 @param retval - return code for the request
38 define bfd_set_config_reply
44 /** \brief Get BFD configuration
52 /** \brief Get BFD configuration response
53 @param context - sender context, to match reply w/ request
54 @param retval - return code for the request
55 @param slow_timer - slow timer (seconds)
56 @param min_tx - desired min tx interval
57 @param min_rx - desired min rx interval
58 @param detect_mult - desired detection multiplier
60 define bfd_get_config_reply
70 /** \brief Add UDP BFD session on interface
71 @param client_index - opaque cookie to identify the sender
72 @param context - sender context, to match reply w/ request
73 @param sw_if_index - sw index of the interface
74 @param desired_min_tx - desired min transmit interval (microseconds)
75 @param required_min_rx - required min receive interval (microseconds)
76 @param local_addr - local address
77 @param peer_addr - peer address
78 @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
79 @param detect_mult - detect multiplier (# of packets missed before connection goes down)
80 @param is_authenticated - non-zero if authentication is required
81 @param bfd_key_id - key id sent out in BFD packets (if is_authenticated)
82 @param conf_key_id - id of already configured key (if is_authenticated)
100 /** \brief Add UDP BFD session response
101 @param context - sender context, to match reply w/ request
102 @param retval - return code for the request
104 define bfd_udp_add_reply
110 /** \brief Delete UDP BFD session on interface
111 @param client_index - opaque cookie to identify the sender
112 @param context - sender context, to match reply w/ request
113 @param sw_if_index - sw index of the interface
114 @param local_addr - local address
115 @param peer_addr - peer address
116 @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
128 /** \brief Delete UDP BFD session response
129 @param context - sender context, to match reply w/ request
130 @param retval - return code for the request
132 define bfd_udp_del_reply
138 /** \brief Get all BFD sessions
139 @param client_index - opaque cookie to identify the sender
140 @param context - sender context, to match reply w/ request
142 define bfd_udp_session_dump
148 /** \brief BFD session details structure
149 @param context - sender context, to match reply w/ request
150 @param sw_if_index - sw index of the interface
151 @param local_addr - local address
152 @param peer_addr - peer address
153 @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
154 @param state - session state
155 @param is_authenticated - non-zero if authentication in-use, zero otherwise
156 @param bfd_key_id - ID of key currently in-use if auth is on
157 @param conf_key_id - configured key ID for this session
159 define bfd_udp_session_details
172 /** \brief Set flags of BFD UDP session
173 @param client_index - opaque cookie to identify the sender
174 @param context - sender context, to match reply w/ request
175 @param sw_if_index - sw index of the interface
176 @param local_addr - local address
177 @param peer_addr - peer address
178 @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
179 @param admin_up_down - set the admin state, 1 = up, 0 = down
181 define bfd_udp_session_set_flags
192 /** \brief Reply to bfd_udp_session_set_flags
193 @param context - sender context which was passed in the request
194 @param retval - return code of the set flags request
196 define bfd_udp_session_set_flags_reply
202 /** \brief Register for BFD events
203 @param client_index - opaque cookie to identify the sender
204 @param context - sender context, to match reply w/ request
205 @param enable_disable - 1 => register for events, 0 => cancel registration
206 @param pid - sender's pid
208 define want_bfd_events
216 /** \brief Reply for BFD events registration
217 @param context - returned sender context, to match reply w/ request
218 @param retval - return code
220 define want_bfd_events_reply
226 /** \brief BFD UDP - add/replace key to configuration
227 @param client_index - opaque cookie to identify the sender
228 @param context - sender context, to match reply w/ request
229 @param conf_key_id - key ID to add/replace/delete
230 @param key_len - length of key (must be non-zero)
231 @param auth_type - authentication type (RFC 5880/4.1/Auth Type)
232 @param key - key data
234 define bfd_auth_set_key
244 /** \brief BFD UDP - add/replace key reply
245 @param context - returned sender context, to match reply w/ request
246 @param retval - return code
248 define bfd_auth_set_key_reply
254 /** \brief BFD UDP - delete key from configuration
255 @param client_index - opaque cookie to identify the sender
256 @param context - sender context, to match reply w/ request
257 @param conf_key_id - key ID to add/replace/delete
258 @param key_len - length of key (must be non-zero)
259 @param key - key data
261 define bfd_auth_del_key
268 /** \brief BFD UDP - delete key reply
269 @param context - returned sender context, to match reply w/ request
270 @param retval - return code
272 define bfd_auth_del_key_reply
278 /** \brief Get a list of configured authentication keys
279 @param client_index - opaque cookie to identify the sender
280 @param context - sender context, to match reply w/ request
282 define bfd_auth_keys_dump
288 /** \brief BFD authentication key details
289 @param context - sender context, to match reply w/ request
290 @param conf_key_id - configured key ID
291 @param use_count - how many BFD sessions currently use this key
292 @param auth_type - authentication type (RFC 5880/4.1/Auth Type)
294 define bfd_auth_keys_details
302 /** \brief BFD UDP - activate/change authentication
303 @param client_index - opaque cookie to identify the sender
304 @param context - sender context, to match reply w/ request
305 @param sw_if_index - sw index of the interface
306 @param local_addr - local address
307 @param peer_addr - peer address
308 @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
309 @param is_delayed - change is applied once peer applies the change (on first received packet with this auth)
310 @param bfd_key_id - key id sent out in BFD packets
311 @param conf_key_id - id of already configured key
313 define bfd_udp_auth_activate
326 /** \brief BFD UDP - activate/change authentication reply
327 @param context - returned sender context, to match reply w/ request
328 @param retval - return code
330 define bfd_udp_auth_activate_reply
336 /** \brief BFD UDP - deactivate authentication
337 @param client_index - opaque cookie to identify the sender
338 @param context - sender context, to match reply w/ request
339 @param sw_if_index - sw index of the interface
340 @param local_addr - local address
341 @param peer_addr - peer address
342 @param is_ipv6 - local_addr, peer_addr are IPv6 if non-zero, otherwise IPv4
343 @param is_delayed - change is applied once peer applies the change (on first received non-authenticated packet)
345 define bfd_udp_auth_deactivate
356 /** \brief BFD UDP - deactivate authentication reply
357 @param context - returned sender context, to match reply w/ request
358 @param retval - return code
360 define bfd_udp_auth_deactivate_reply
368 * eval: (c-set-style "gnu")