FD.io VPP  v21.01.1
Vector Packet Processing
adl.api
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 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 option version = "0.0.1";
17 
18 import "vnet/interface_types.api";
19 
20  /** \brief adl: enable/disable filtration features on an interface
21  @param client_index - opaque cookie to identify the sender
22  @param context - sender context, to match reply w/ request
23  @param sw_if_inded - desired interface
24  @param enable_disable - 1 => enable, 0 => disable
25 */
26 
28 {
31  vl_api_interface_index_t sw_if_index;
33 };
34 
35 /** \brief adl: enable/disable allow list filtration features on an interface
36  Note: the supplied fib_id must match in order to remove the feature!
37 
38  @param client_index - opaque cookie to identify the sender
39  @param context - sender context, to match reply w/ request
40  @param sw_if_index - interface handle, physical interfaces only
41  @param fib_id - fib identifier for the allow/deny fib
42  @param ip4 - 1 => enable ip4 filtration, 0=> disable ip4 filtration
43  @param ip6 - 1 => enable ip6 filtration, 0=> disable ip6 filtration
44  @param default_adl - 1 => enable non-ip4, non-ip6 filtration
45  0 => disable it
46 */
47 
49 {
52  vl_api_interface_index_t sw_if_index;
54  bool ip4;
55  bool ip6;
57 };
58 
59  /*
60  * Local Variables:
61  * eval: (c-set-style "gnu")
62  * End:
63  */
vl_api_interface_index_t sw_if_index
Definition: adl.api:31
vl_api_interface_index_t sw_if_index
Definition: adl.api:52
int adl_allowlist_enable_disable(adl_allowlist_enable_disable_args_t *a)
Definition: adl.c:233
int adl_interface_enable_disable(u32 sw_if_index, int enable_disable)
Definition: adl.c:169
unsigned int u32
Definition: types.h:88
option version
Definition: adl.api:16