FD.io VPP
v20.01-48-g3e0dafb74
Vector Packet Processing
cop.api
Go to the documentation of this file.
1
/*
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:
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
=
"1.0.1"
;
17
18
import
"vnet/interface_types.api"
;
19
20
/** \brief cop: enable/disable junk 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
27
autoreply define
cop_interface_enable_disable
28
{
29
u32
client_index
;
30
u32
context
;
31
vl_api_interface_index_t
sw_if_index
;
32
bool
enable_disable
;
33
};
34
35
/** \brief cop: enable/disable whitelist 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 whitelist / blacklist 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_cop - 1 => enable non-ip4, non-ip6 filtration 0=> disable it
45
*/
46
47
autoreply define
cop_whitelist_enable_disable
48
{
49
u32
client_index
;
50
u32
context
;
51
vl_api_interface_index_t
sw_if_index
;
52
u32
fib_id
;
53
bool
ip4
;
54
bool
ip6
;
55
bool
default_cop
;
56
};
57
58
/** \brief get_node_graph - get a copy of the vpp node graph
59
including the current set of graph arcs.
60
61
@param client_index - opaque cookie to identify the sender
62
@param context - sender context, to match reply w/ request
63
*/
64
65
/*
66
* Local Variables:
67
* eval: (c-set-style "gnu")
68
* End:
69
*/
vl_api_cop_whitelist_enable_disable_t::client_index
u32 client_index
Definition:
cop.api:49
vl_api_cop_interface_enable_disable_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition:
cop.api:31
vl_api_cop_whitelist_enable_disable_t::ip6
bool ip6
Definition:
cop.api:54
u32
unsigned int u32
Definition:
types.h:88
vl_api_cop_interface_enable_disable_t::context
u32 context
Definition:
cop.api:30
vl_api_cop_whitelist_enable_disable_t::ip4
bool ip4
Definition:
cop.api:53
vl_api_cop_whitelist_enable_disable_t::context
u32 context
Definition:
cop.api:50
cop_whitelist_enable_disable
int cop_whitelist_enable_disable(cop_whitelist_enable_disable_args_t *a)
Definition:
cop.c:227
cop_interface_enable_disable
int cop_interface_enable_disable(u32 sw_if_index, int enable_disable)
Definition:
cop.c:149
vl_api_cop_interface_enable_disable_t::client_index
u32 client_index
Definition:
cop.api:29
vl_api_cop_interface_enable_disable_t::enable_disable
bool enable_disable
Definition:
cop.api:32
version
option version
Definition:
cop.api:16
vl_api_cop_whitelist_enable_disable_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition:
cop.api:51
vl_api_cop_whitelist_enable_disable_t::default_cop
bool default_cop
Definition:
cop.api:55
vl_api_cop_whitelist_enable_disable_t::fib_id
u32 fib_id
Definition:
cop.api:52
src
vnet
cop
cop.api
Generated on Wed Sep 9 2020 00:04:33 for FD.io VPP by
1.8.13