Pavel Kotucek | bbe3362 | 2016-12-20 13:19:48 +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 | |
Ole Troan | 9d42087 | 2017-10-12 13:06:35 +0200 | [diff] [blame] | 16 | option version = "1.0.0"; |
Dave Barach | 0d056e5 | 2017-09-28 15:11:16 -0400 | [diff] [blame] | 17 | |
Pavel Kotucek | bbe3362 | 2016-12-20 13:19:48 +0100 | [diff] [blame] | 18 | /** \brief Create host-interface |
| 19 | @param client_index - opaque cookie to identify the sender |
| 20 | @param context - sender context, to match reply w/ request |
| 21 | @param host_if_name - interface name |
| 22 | @param hw_addr - interface MAC |
| 23 | @param use_random_hw_addr - use random generated MAC |
| 24 | */ |
| 25 | define af_packet_create |
| 26 | { |
| 27 | u32 client_index; |
| 28 | u32 context; |
| 29 | |
| 30 | u8 host_if_name[64]; |
| 31 | u8 hw_addr[6]; |
| 32 | u8 use_random_hw_addr; |
| 33 | }; |
| 34 | |
| 35 | /** \brief Create host-interface response |
| 36 | @param context - sender context, to match reply w/ request |
| 37 | @param retval - return value for request |
| 38 | */ |
| 39 | define af_packet_create_reply |
| 40 | { |
| 41 | u32 context; |
| 42 | i32 retval; |
| 43 | u32 sw_if_index; |
| 44 | }; |
| 45 | |
| 46 | /** \brief Delete host-interface |
| 47 | @param client_index - opaque cookie to identify the sender |
| 48 | @param context - sender context, to match reply w/ request |
| 49 | @param host_if_name - interface name |
| 50 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 51 | autoreply define af_packet_delete |
Pavel Kotucek | bbe3362 | 2016-12-20 13:19:48 +0100 | [diff] [blame] | 52 | { |
| 53 | u32 client_index; |
| 54 | u32 context; |
| 55 | |
| 56 | u8 host_if_name[64]; |
| 57 | }; |
| 58 | |
Jakub Grajciar | 92b0275 | 2017-10-20 13:37:28 +0200 | [diff] [blame] | 59 | /** \brief Set l4 offload ckecksum calculation |
| 60 | @param client_index - opaque cookie to identify the sender |
| 61 | @param context - sender context, to match reply w/ request |
| 62 | */ |
| 63 | autoreply define af_packet_set_l4_cksum_offload |
| 64 | { |
| 65 | u32 client_index; |
| 66 | u32 context; |
| 67 | |
| 68 | u8 sw_if_index; |
| 69 | u8 set; |
| 70 | }; |
| 71 | |
Pavel Kotucek | bbe3362 | 2016-12-20 13:19:48 +0100 | [diff] [blame] | 72 | /* |
| 73 | * Local Variables: |
| 74 | * eval: (c-set-style "gnu") |
| 75 | * End: |
| 76 | */ |