P2P Ethernet - API
[vpp.git] / src / vnet / ethernet / p2p_ethernet.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 define p2p_ethernet_add
17 {
18   u32 client_index;
19   u32 context;
20   u32 parent_if_index;
21   u8  remote_mac[6];
22 };
23
24 define p2p_ethernet_add_reply
25 {
26   u32 context;
27   i32 retval;
28   u32 sw_if_index;
29 };
30
31 define p2p_ethernet_del
32 {
33   u32 client_index;
34   u32 context;
35   u32 parent_if_index;
36   u8  remote_mac[6];
37 };
38
39 define p2p_ethernet_del_reply
40 {
41   u32 context;
42   i32 retval;
43 };
44
45 /*
46  * Local Variables:
47  * eval: (c-set-style "gnu")
48  * End:
49  */