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:
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.
16 option version = "1.1.0";
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
42 u8 ip6_src_prefix_len;
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
56 define map_add_domain_reply
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
68 autoreply define map_del_domain
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
84 autoreply define map_add_del_rule
95 /** \brief Get list of map domains
96 @param client_index - opaque cookie to identify the sender
98 define map_domain_dump
104 define map_domain_details
129 define map_rule_details
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
140 define map_summary_stats
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 -
151 @param total_ip4_fragments -
152 @param total_security_check -
154 define map_summary_stats_reply
161 u64 total_ip4_fragments;
162 u64 total_security_check[2];