22d7d6bb5d6361095ab5aefcf16e3de6e1fe5daa
[vpp.git] / src / plugins / sctp / sctp.api
1 /*
2  * Copyright (c) 2018 SUSE LLC.
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 option version = "2.0.0";
17
18 import "vnet/ip/ip_types.api";
19
20 /** \brief Configure SCTP source addresses, for active-open SCTP sessions
21
22     SCTP src/dst ports are 16 bits
23     @param client_index - opaque cookie to identify the sender
24     @param context - sender context, to match reply w/ request
25     @param vrf_id - fib table / vrf id for local adjacencies
26     @param src_address - src address that SCTP will use for this sub-conn
27     @param dst_address - dst address that SCTP will use for this sub-conn
28 */
29 autoreply define sctp_add_src_dst_connection {
30     u32 client_index;
31     u32 context;
32     u32 vrf_id;
33     vl_api_address_t src_address;
34     vl_api_address_t dst_address;
35  };
36
37 autoreply define sctp_del_src_dst_connection {
38     u32 client_index;
39     u32 context;
40     u32 vrf_id;
41     vl_api_address_t src_address;
42     vl_api_address_t dst_address;
43  };
44
45 autoreply define sctp_config {
46     u32 client_index;
47     u32 context;
48     bool never_delay_sack;
49     bool never_bundle;
50  };