FD.io VPP
v17.04.2-2-ga8f93f8
Vector Packet Processing
Main Page
Related Pages
Data Structures
Source
Files
Symbols
af_packet.api
Go to the documentation of this file.
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 host-interface
17
@param client_index - opaque cookie to identify the sender
18
@param context - sender context, to match reply w/ request
19
@param host_if_name - interface name
20
@param hw_addr - interface MAC
21
@param use_random_hw_addr - use random generated MAC
22
*/
23
define af_packet_create
24
{
25
u32
client_index
;
26
u32
context
;
27
28
u8
host_if_name[64];
29
u8
hw_addr[6];
30
u8
use_random_hw_addr
;
31
};
32
33
/** \brief Create host-interface response
34
@param context - sender context, to match reply w/ request
35
@param retval - return value for request
36
*/
37
define af_packet_create_reply
38
{
39
u32
context
;
40
i32
retval
;
41
u32
sw_if_index
;
42
};
43
44
/** \brief Delete host-interface
45
@param client_index - opaque cookie to identify the sender
46
@param context - sender context, to match reply w/ request
47
@param host_if_name - interface name
48
*/
49
define af_packet_delete
50
{
51
u32
client_index
;
52
u32
context
;
53
54
u8
host_if_name[64];
55
};
56
57
/** \brief Delete host-interface response
58
@param context - sender context, to match reply w/ request
59
@param retval - return value for request
60
*/
61
define af_packet_delete_reply
62
{
63
u32
context
;
64
i32
retval
;
65
};
66
67
/*
68
* Local Variables:
69
* eval: (c-set-style "gnu")
70
* End:
71
*/
vl_api_af_packet_delete_reply_t::retval
i32 retval
Definition:
af_packet.api:64
vl_api_af_packet_create_t::context
u32 context
Definition:
af_packet.api:26
vl_api_af_packet_create_reply_t::retval
i32 retval
Definition:
af_packet.api:40
i32
int i32
Definition:
types.h:81
vl_api_af_packet_create_t::client_index
u32 client_index
Definition:
af_packet.api:25
vl_api_af_packet_delete_t::context
u32 context
Definition:
af_packet.api:52
vl_api_af_packet_create_t::use_random_hw_addr
u8 use_random_hw_addr
Definition:
af_packet.api:30
vl_api_af_packet_create_reply_t::context
u32 context
Definition:
af_packet.api:39
u32
unsigned int u32
Definition:
types.h:88
vl_api_af_packet_delete_t::client_index
u32 client_index
Definition:
af_packet.api:51
vl_api_af_packet_delete_reply_t::context
u32 context
Definition:
af_packet.api:63
u8
unsigned char u8
Definition:
types.h:56
vl_api_af_packet_create_reply_t::sw_if_index
u32 sw_if_index
Definition:
af_packet.api:41
src
vnet
devices
af_packet
af_packet.api
Generated on Sat Jul 1 2017 12:01:56 for FD.io VPP by
1.8.11