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