Pavel Kotucek | 296b201 | 2016-12-19 14:47:09 +0100 | [diff] [blame] | 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 vxlan_gpe_add_del_tunnel |
| 17 | { |
| 18 | u32 client_index; |
| 19 | u32 context; |
| 20 | u8 is_ipv6; |
| 21 | u8 local[16]; |
| 22 | u8 remote[16]; |
Hongjun Ni | 8a0a0ae | 2017-05-27 20:23:09 +0800 | [diff] [blame] | 23 | u32 mcast_sw_if_index; |
Pavel Kotucek | 296b201 | 2016-12-19 14:47:09 +0100 | [diff] [blame] | 24 | u32 encap_vrf_id; |
| 25 | u32 decap_vrf_id; |
| 26 | u8 protocol; |
| 27 | u32 vni; |
| 28 | u8 is_add; |
| 29 | }; |
| 30 | |
| 31 | define vxlan_gpe_add_del_tunnel_reply |
| 32 | { |
| 33 | u32 context; |
| 34 | i32 retval; |
| 35 | u32 sw_if_index; |
| 36 | }; |
| 37 | |
| 38 | define vxlan_gpe_tunnel_dump |
| 39 | { |
| 40 | u32 client_index; |
| 41 | u32 context; |
| 42 | u32 sw_if_index; |
| 43 | }; |
| 44 | |
| 45 | define vxlan_gpe_tunnel_details |
| 46 | { |
| 47 | u32 context; |
| 48 | u32 sw_if_index; |
| 49 | u8 local[16]; |
| 50 | u8 remote[16]; |
| 51 | u32 vni; |
| 52 | u8 protocol; |
Hongjun Ni | 8a0a0ae | 2017-05-27 20:23:09 +0800 | [diff] [blame] | 53 | u32 mcast_sw_if_index; |
Pavel Kotucek | 296b201 | 2016-12-19 14:47:09 +0100 | [diff] [blame] | 54 | u32 encap_vrf_id; |
| 55 | u32 decap_vrf_id; |
| 56 | u8 is_ipv6; |
| 57 | }; |
| 58 | |
Hongjun Ni | 8a0a0ae | 2017-05-27 20:23:09 +0800 | [diff] [blame] | 59 | /** \brief Interface set vxlan-gpe-bypass request |
| 60 | @param client_index - opaque cookie to identify the sender |
| 61 | @param context - sender context, to match reply w/ request |
| 62 | @param sw_if_index - interface used to reach neighbor |
| 63 | @param is_ipv6 - if non-zero, enable ipv6-vxlan-bypass, else ipv4-vxlan-bypass |
| 64 | @param enable - if non-zero enable, else disable |
| 65 | */ |
| 66 | autoreply define sw_interface_set_vxlan_gpe_bypass |
| 67 | { |
| 68 | u32 client_index; |
| 69 | u32 context; |
| 70 | u32 sw_if_index; |
| 71 | u8 is_ipv6; |
| 72 | u8 enable; |
| 73 | }; |
| 74 | |
Pavel Kotucek | 296b201 | 2016-12-19 14:47:09 +0100 | [diff] [blame] | 75 | /* |
| 76 | * Local Variables: |
| 77 | * eval: (c-set-style "gnu") |
| 78 | * End: |
| 79 | */ |