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:
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
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
25 define af_packet_create
32 u8 use_random_hw_addr;
35 /** \brief Create host-interface response
36 @param context - sender context, to match reply w/ request
37 @param retval - return value for request
39 define af_packet_create_reply
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
51 autoreply define af_packet_delete
61 * eval: (c-set-style "gnu")