"autoreply" flag: autogenerate standard xxx_reply_t messages
[vpp.git] / src / vnet / cop / cop.api
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  /** \brief cop: enable/disable junk filtration features on an interface
17     @param client_index - opaque cookie to identify the sender
18     @param context - sender context, to match reply w/ request
19     @param sw_if_inded - desired interface
20     @param enable_disable - 1 => enable, 0 => disable
21 */
22
23 autoreply define cop_interface_enable_disable
24 {
25   u32 client_index;
26   u32 context;
27   u32 sw_if_index;
28   u8 enable_disable;
29 };
30
31 /** \brief cop: enable/disable whitelist filtration features on an interface
32     Note: the supplied fib_id must match in order to remove the feature!
33     
34     @param client_index - opaque cookie to identify the sender
35     @param context - sender context, to match reply w/ request
36     @param sw_if_index - interface handle, physical interfaces only
37     @param fib_id - fib identifier for the whitelist / blacklist fib
38     @param ip4 - 1 => enable ip4 filtration, 0=> disable ip4 filtration
39     @param ip6 - 1 => enable ip6 filtration, 0=> disable ip6 filtration
40     @param default_cop -  1 => enable non-ip4, non-ip6 filtration 0=> disable it
41 */
42
43 autoreply define cop_whitelist_enable_disable
44 {
45   u32 client_index;
46   u32 context;
47   u32 sw_if_index;
48   u32 fib_id;
49   u8 ip4;
50   u8 ip6;
51   u8 default_cop;
52 };
53
54 /** \brief get_node_graph - get a copy of the vpp node graph
55     including the current set of graph arcs.
56
57     @param client_index - opaque cookie to identify the sender
58     @param context - sender context, to match reply w/ request
59 */
60
61  /*
62  * Local Variables:
63  * eval: (c-set-style "gnu")
64  * End:
65  */
66