FD.io VPP
v17.04.2-2-ga8f93f8
Vector Packet Processing
Main Page
Related Pages
Data Structures
Source
Files
Symbols
map.api
Go to the documentation of this file.
1
/*
2
* Copyright (c) 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
17
/** \brief Add MAP domains
18
@param client_index - opaque cookie to identify the sender
19
@param context - sender context, to match reply w/ request
20
@param ip6_prefix - Rule IPv6 prefix
21
@param ip4_prefix - Rule IPv4 prefix
22
@param ip6_src - MAP domain IPv6 BR address / Tunnel source
23
@param ip6_prefix_len - Rule IPv6 prefix length
24
@param ip4_prefix_len - Rule IPv4 prefix length
25
@param ea_bits_len - Embedded Address bits length
26
@param psid_offset - Port Set Identifider (PSID) offset
27
@param psid_length - PSID length
28
@param is_translation - MAP-E / MAP-T
29
@param mtu - MTU
30
*/
31
define map_add_domain
32
{
33
u32
client_index
;
34
u32
context
;
35
u8
ip6_prefix[16];
36
u8
ip4_prefix[4];
37
u8
ip6_src[16];
38
u8
ip6_prefix_len
;
39
u8
ip4_prefix_len
;
40
u8
ip6_src_prefix_len
;
41
u8
ea_bits_len
;
42
u8
psid_offset
;
43
u8
psid_length
;
44
u8
is_translation
;
45
u16
mtu
;
46
};
47
48
/** \brief Reply for MAP domain add
49
@param context - returned sender context, to match reply w/ request
50
@param index - MAP domain index
51
@param retval - return code
52
*/
53
define map_add_domain_reply
54
{
55
u32
context
;
56
u32
index
;
57
i32
retval
;
58
};
59
60
/** \brief Delete MAP domain
61
@param client_index - opaque cookie to identify the sender
62
@param context - sender context, to match reply w/ request
63
@param index - MAP Domain index
64
*/
65
define map_del_domain
66
{
67
u32
client_index
;
68
u32
context
;
69
u32
index
;
70
};
71
72
/** \brief Reply for MAP domain del
73
@param context - returned sender context, to match reply w/ request
74
@param retval - return code
75
*/
76
define map_del_domain_reply
77
{
78
u32
context
;
79
i32
retval
;
80
};
81
82
/** \brief Add or Delete MAP rule from a domain (Only used for shared IPv4 per subscriber)
83
@param client_index - opaque cookie to identify the sender
84
@param context - sender context, to match reply w/ request
85
@param index - MAP Domain index
86
@param is_add - If 1 add rule, if 0 delete rule
87
@param ip6_dst - MAP CE IPv6 address
88
@param psid - Rule PSID
89
*/
90
define map_add_del_rule
91
{
92
u32
client_index
;
93
u32
context
;
94
u32
index
;
95
u32
is_add
;
96
u8
ip6_dst[16];
97
u16
psid
;
98
};
99
100
/** \brief Reply for MAP rule add/del
101
@param context - returned sender context, to match reply w/ request
102
@param retval - return code
103
*/
104
define map_add_del_rule_reply
105
{
106
u32
context
;
107
i32
retval
;
108
};
109
110
/** \brief Get list of map domains
111
@param client_index - opaque cookie to identify the sender
112
*/
113
define map_domain_dump
114
{
115
u32
client_index
;
116
u32
context
;
117
};
118
119
define map_domain_details
120
{
121
u32
context
;
122
u32
domain_index
;
123
u8
ip6_prefix[16];
124
u8
ip4_prefix[4];
125
u8
ip6_src[16];
126
u8
ip6_prefix_len
;
127
u8
ip4_prefix_len
;
128
u8
ip6_src_len
;
129
u8
ea_bits_len
;
130
u8
psid_offset
;
131
u8
psid_length
;
132
u8
flags
;
133
u16
mtu
;
134
u8
is_translation
;
135
};
136
137
define map_rule_dump
138
{
139
u32
client_index
;
140
u32
context
;
141
u32
domain_index
;
142
};
143
144
define map_rule_details
145
{
146
u32
context
;
147
u8
ip6_dst[16];
148
u16
psid
;
149
};
150
151
/** \brief Request for a single block of summary stats
152
@param client_index - opaque cookie to identify the sender
153
@param context - sender context, to match reply w/ request
154
*/
155
define map_summary_stats
156
{
157
u32
client_index
;
158
u32
context
;
159
};
160
161
/** \brief Reply for map_summary_stats request
162
@param context - sender context, to match reply w/ request
163
@param retval - return code for request
164
@param total_bindings -
165
@param total_pkts -
166
@param total_ip4_fragments -
167
@param total_security_check -
168
*/
169
define map_summary_stats_reply
170
{
171
u32
context
;
172
i32
retval
;
173
u64
total_bindings
;
174
u64
total_pkts[2];
175
u64
total_bytes[2];
176
u64
total_ip4_fragments
;
177
u64
total_security_check[2];
178
};
vl_api_map_add_domain_t::context
u32 context
Definition:
map.api:34
vl_api_map_add_domain_reply_t::context
u32 context
Definition:
map.api:55
vl_api_map_add_domain_reply_t::index
u32 index
Definition:
map.api:56
vl_api_map_del_domain_t::index
u32 index
Definition:
map.api:69
vl_api_map_add_domain_t::ip6_src_prefix_len
u8 ip6_src_prefix_len
Definition:
map.api:40
vl_api_map_domain_details_t::flags
u8 flags
Definition:
map.api:132
vl_api_map_rule_dump_t::domain_index
u32 domain_index
Definition:
map.api:141
vl_api_map_summary_stats_t::context
u32 context
Definition:
map.api:158
vl_api_map_domain_dump_t::context
u32 context
Definition:
map.api:116
vl_api_map_add_domain_t::ip6_prefix_len
u8 ip6_prefix_len
Definition:
map.api:38
vl_api_map_add_del_rule_t::index
u32 index
Definition:
map.api:94
vl_api_map_del_domain_reply_t::retval
i32 retval
Definition:
map.api:79
vl_api_map_domain_details_t::ip6_src_len
u8 ip6_src_len
Definition:
map.api:128
vl_api_map_add_del_rule_t::client_index
u32 client_index
Definition:
map.api:92
vl_api_map_add_domain_t::is_translation
u8 is_translation
Definition:
map.api:44
vl_api_map_rule_details_t::psid
u16 psid
Definition:
map.api:148
i32
int i32
Definition:
types.h:81
vl_api_map_summary_stats_reply_t::total_bindings
u64 total_bindings
Definition:
map.api:173
u64
unsigned long u64
Definition:
types.h:89
vl_api_map_rule_dump_t::client_index
u32 client_index
Definition:
map.api:139
vl_api_map_add_domain_t::ip4_prefix_len
u8 ip4_prefix_len
Definition:
map.api:39
vl_api_map_domain_details_t::ea_bits_len
u8 ea_bits_len
Definition:
map.api:129
vl_api_map_domain_details_t::ip6_prefix_len
u8 ip6_prefix_len
Definition:
map.api:126
vl_api_map_rule_dump_t::context
u32 context
Definition:
map.api:140
vl_api_map_rule_details_t::context
u32 context
Definition:
map.api:146
vl_api_map_add_del_rule_t::is_add
u32 is_add
Definition:
map.api:95
vl_api_map_domain_details_t::is_translation
u8 is_translation
Definition:
map.api:134
vl_api_map_add_domain_t::client_index
u32 client_index
Definition:
map.api:33
vl_api_map_summary_stats_reply_t::retval
i32 retval
Definition:
map.api:172
u32
unsigned int u32
Definition:
types.h:88
vl_api_map_del_domain_t::context
u32 context
Definition:
map.api:68
vl_api_map_add_del_rule_reply_t::retval
i32 retval
Definition:
map.api:107
vl_api_map_domain_details_t::psid_offset
u8 psid_offset
Definition:
map.api:130
vl_api_map_domain_details_t::ip4_prefix_len
u8 ip4_prefix_len
Definition:
map.api:127
vl_api_map_summary_stats_reply_t::context
u32 context
Definition:
map.api:171
vl_api_map_domain_details_t::psid_length
u8 psid_length
Definition:
map.api:131
u16
unsigned short u16
Definition:
types.h:57
u8
unsigned char u8
Definition:
types.h:56
vl_api_map_del_domain_reply_t::context
u32 context
Definition:
map.api:78
vl_api_map_add_domain_t::psid_offset
u8 psid_offset
Definition:
map.api:42
vl_api_map_domain_details_t::mtu
u16 mtu
Definition:
map.api:133
vl_api_map_add_del_rule_t::psid
u16 psid
Definition:
map.api:97
vl_api_map_add_domain_reply_t::retval
i32 retval
Definition:
map.api:57
vl_api_map_domain_dump_t::client_index
u32 client_index
Definition:
map.api:115
vl_api_map_add_del_rule_t::context
u32 context
Definition:
map.api:93
vl_api_map_del_domain_t::client_index
u32 client_index
Definition:
map.api:67
vl_api_map_add_domain_t::mtu
u16 mtu
Definition:
map.api:45
vl_api_map_summary_stats_t::client_index
u32 client_index
Definition:
map.api:157
vl_api_map_add_domain_t::ea_bits_len
u8 ea_bits_len
Definition:
map.api:41
vl_api_map_domain_details_t::context
u32 context
Definition:
map.api:121
vl_api_map_domain_details_t::domain_index
u32 domain_index
Definition:
map.api:122
vl_api_map_summary_stats_reply_t::total_ip4_fragments
u64 total_ip4_fragments
Definition:
map.api:176
vl_api_map_add_domain_t::psid_length
u8 psid_length
Definition:
map.api:43
vl_api_map_add_del_rule_reply_t::context
u32 context
Definition:
map.api:106
src
vnet
map
map.api
Generated on Sat Jul 1 2017 12:02:24 for FD.io VPP by
1.8.11