Pavel Kotucek | 8b2b794 | 2016-12-20 14:05:46 +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 | /** \brief Create netmap |
| 17 | @param client_index - opaque cookie to identify the sender |
| 18 | @param context - sender context, to match reply w/ request |
| 19 | @param netmap_if_name - interface name |
| 20 | @param hw_addr - interface MAC |
| 21 | @param use_random_hw_addr - use random generated MAC |
| 22 | @param is_pipe - is pipe |
| 23 | @param is_master - 0=slave, 1=master |
| 24 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 25 | autoreply define netmap_create |
Pavel Kotucek | 8b2b794 | 2016-12-20 14:05:46 +0100 | [diff] [blame] | 26 | { |
| 27 | u32 client_index; |
| 28 | u32 context; |
| 29 | |
| 30 | u8 netmap_if_name[64]; |
| 31 | u8 hw_addr[6]; |
| 32 | u8 use_random_hw_addr; |
| 33 | u8 is_pipe; |
| 34 | u8 is_master; |
| 35 | }; |
| 36 | |
Pavel Kotucek | 8b2b794 | 2016-12-20 14:05:46 +0100 | [diff] [blame] | 37 | /** \brief Delete netmap |
| 38 | @param client_index - opaque cookie to identify the sender |
| 39 | @param context - sender context, to match reply w/ request |
| 40 | @param netmap_if_name - interface name |
| 41 | */ |
Dave Barach | 11b8dbf | 2017-04-24 10:46:54 -0400 | [diff] [blame] | 42 | autoreply define netmap_delete |
Pavel Kotucek | 8b2b794 | 2016-12-20 14:05:46 +0100 | [diff] [blame] | 43 | { |
| 44 | u32 client_index; |
| 45 | u32 context; |
| 46 | |
| 47 | u8 netmap_if_name[64]; |
| 48 | }; |
| 49 | |
Pavel Kotucek | 8b2b794 | 2016-12-20 14:05:46 +0100 | [diff] [blame] | 50 | /* |
| 51 | * Local Variables: |
| 52 | * eval: (c-set-style "gnu") |
| 53 | * End: |
| 54 | */ |