1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2018 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 This file defines vpp IP control-plane API messages which are generally
20 called through a shared memory interface.
23 option version = "1.0.0";
25 import "vnet/ip/ip_types.api";
26 import "vnet/interface_types.api";
28 /** \brief IPv6 router advertisement config request
29 @param client_index - opaque cookie to identify the sender
30 @param context - sender context, to match reply w/ request
38 @param default_router -
42 @param initial_count -
43 @param initial_interval -
45 autoreply define sw_interface_ip6nd_ra_config
49 vl_api_interface_index_t sw_if_index;
65 /** \brief IPv6 router advertisement prefix config request
66 @param client_index - opaque cookie to identify the sender
67 @param context - sender context, to match reply w/ request
68 @param sw_if_index - The interface the RA prefix information is for
69 @param prefix - The prefix to advertise
70 @param use_default - Revert to default settings
71 @param no_advertise - Do not advertise this prefix
72 @param off_link - The prefix is off link (it is not configured on the interface)
73 Configures the L-flag, When set, indicates that this
74 prefix can be used for on-link determination.
75 @param no_autoconfig - Setting for the A-flag. When
76 set indicates that this prefix can be used for
77 stateless address configuration.
78 @param no_onlink - The prefix is not on link. Make sure this is consistent
79 with the off_link parameter else YMMV
80 @param is_no - add/delete
81 @param val_lifetime - The length of time in
82 seconds (relative to the time the packet is sent)
83 that the prefix is valid for the purpose of on-link
84 determination. A value of all one bits
85 (0xffffffff) represents infinity
86 @param pref_lifetime - The length of time in
87 seconds (relative to the time the packet is sent)
88 that addresses generated from the prefix via
89 stateless address autoconfiguration remain
90 preferred [ADDRCONF]. A value of all one bits
91 (0xffffffff) represents infinity.
93 autoreply define sw_interface_ip6nd_ra_prefix
97 vl_api_interface_index_t sw_if_index;
98 vl_api_prefix_t prefix;
109 /** \brief IPv6 ND (mirror) proxy
110 @param client_index - opaque cookie to identify the sender
111 @param context - sender context, to match reply w/ request
112 @param sw_if_index - The interface the host is on
113 @param is_enable - enable or disable
115 autoreply define ip6nd_proxy_enable_disable
119 vl_api_interface_index_t sw_if_index;
123 /** \brief IPv6 ND proxy config
124 @param client_index - opaque cookie to identify the sender
125 @param context - sender context, to match reply w/ request
126 @param sw_if_index - The interface the host is on
127 @param ip - The address of the host for which to proxy for
128 @param is_add - Adding or deleting
130 autoreply define ip6nd_proxy_add_del
134 vl_api_interface_index_t sw_if_index;
136 vl_api_ip6_address_t ip;
139 /** \brief IPv6 ND proxy details returned after request
140 @param context - sender context, to match reply w/ request
141 @param sw_if_index - The interface the host is on
142 @param ip - The address of the host for which to proxy for
144 define ip6nd_proxy_details
147 vl_api_interface_index_t sw_if_index;
148 vl_api_ip6_address_t ip;
151 /** \brief IPv6 ND proxy dump request
152 @param context - sender context, to match reply w/ request
154 define ip6nd_proxy_dump
160 /** \brief Start / stop sending router solicitation
161 @param client_index - opaque cookie to identify the sender
162 @param context - sender context, to match reply w/ request
163 @param irt - initial retransmission time
164 @param mrt - maximum retransmission time
165 @param mrc - maximum retransmission count
166 @param mrd - maximum retransmission duration
167 @param sw_if_index - software interface index of interface
168 for sending router solicitation
169 @param stop - if non-zero then stop sending router solicitation,
170 otherwise start sending router solicitation
172 autoreply define ip6nd_send_router_solicitation
180 vl_api_interface_index_t sw_if_index;
185 rpc want_ip6_ra_events returns want_ip6_ra_events_reply
189 /** \brief Register for ip6 router advertisement events
190 @param client_index - opaque cookie to identify the sender
191 @param context - sender context, to match reply w/ request
192 @param enable - 1 => register for events, 0 => cancel registration
193 @param pid - sender's pid
195 autoreply define want_ip6_ra_events
203 /** \brief Struct representing RA prefix info
204 @param prefix - RA prefix info destination address
205 @param flags - RA prefix info flags
206 @param valid_time - RA prefix info valid time
207 @param preferred_time - RA prefix info preferred time
209 typedef ip6_ra_prefix_info
211 vl_api_prefix_t prefix;
217 /** \brief Tell client about a router advertisement event
218 @param client_index - opaque cookie to identify the sender
219 @param pid - client pid registered to receive notification
220 @param current_hop_limit - RA current hop limit
221 @param flags - RA flags
222 @param router_lifetime_in_sec - RA lifetime in seconds
223 @param router_addr - The router's address
224 @param neighbor_reachable_time_in_msec - RA neighbor reachable time in msec
225 @param time_in_msec_between_retransmitted_neighbor_solicitations -
226 time in msec between retransmitted neighbor solicitations
234 vl_api_interface_index_t sw_if_index;
235 vl_api_ip6_address_t router_addr;
236 u8 current_hop_limit;
238 u16 router_lifetime_in_sec;
239 u32 neighbor_reachable_time_in_msec;
240 u32 time_in_msec_between_retransmitted_neighbor_solicitations;
242 vl_api_ip6_ra_prefix_info_t prefixes[n_prefixes];
248 * eval: (c-set-style "gnu")