FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
rd_cp_api.c
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 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 #include <vnet/ip6-nd/rd_cp.h>
17 
18 #include <vlibapi/api.h>
19 #include <vlibmemory/api.h>
20 
21 /* define message IDs */
22 #include <vnet/format_fns.h>
23 #include <vnet/ip6-nd/rd_cp.api_enum.h>
24 #include <vnet/ip6-nd/rd_cp.api_types.h>
25 
26 /**
27  * Base message ID fot the plugin
28  */
30 #define REPLY_MSG_ID_BASE rd_cp_base_msg_id
31 
33 
34 
35 static void
37  * mp)
38 {
39  vl_api_ip6_nd_address_autoconfig_reply_t *rmp;
41  int rv = 0;
42 
44 
45  sw_if_index = ntohl (mp->sw_if_index);
46 
49 
51 
52  REPLY_MACRO (VL_API_IP6_ND_ADDRESS_AUTOCONFIG_REPLY);
53 }
54 
55 #include <vnet/ip6-nd/rd_cp.api.c>
56 
57 static clib_error_t *
59 {
61 
62  return (NULL);
63 }
64 
66 
67 /*
68  * fd.io coding-style-patch-verification: ON
69  *
70  * Local Variables:
71  * eval: (c-set-style "gnu")
72  * End:
73  */
VALIDATE_SW_IF_INDEX
#define VALIDATE_SW_IF_INDEX(mp)
Definition: api_helper_macros.h:281
api.h
vl_api_ip6_nd_address_autoconfig_t::enable
bool enable
Definition: rd_cp.api:36
vl_api_ip6_nd_address_autoconfig_t
Enable/disable IPv6 ND address autoconfiguration and setting up default routes.
Definition: rd_cp.api:31
vm
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
Definition: nat44_ei.c:3047
api.h
rd_cp_base_msg_id
static u32 rd_cp_base_msg_id
Base message ID fot the plugin.
Definition: rd_cp_api.c:29
setup_message_id_table
static void setup_message_id_table(api_main_t *am)
Definition: bfd_api.c:451
REPLY_MACRO
#define REPLY_MACRO(t)
Definition: api_helper_macros.h:30
vl_api_ip6_nd_address_autoconfig_t_handler
static void vl_api_ip6_nd_address_autoconfig_t_handler(vl_api_ip6_nd_address_autoconfig_t *mp)
Definition: rd_cp_api.c:36
rd_cp_api_init
static clib_error_t * rd_cp_api_init(vlib_main_t *vm)
Definition: rd_cp_api.c:58
rd_cp_set_address_autoconfig
int rd_cp_set_address_autoconfig(u32 sw_if_index, u8 enable, u8 install_default_routes)
Definition: rd_cp.c:475
BAD_SW_IF_INDEX_LABEL
#define BAD_SW_IF_INDEX_LABEL
Definition: api_helper_macros.h:289
rd_cp.h
vl_api_ip6_nd_address_autoconfig_t::install_default_routes
bool install_default_routes
Definition: rd_cp.api:37
format_fns.h
u32
unsigned int u32
Definition: types.h:88
VLIB_INIT_FUNCTION
#define VLIB_INIT_FUNCTION(x)
Definition: init.h:172
api_helper_macros.h
vl_api_ip6_nd_address_autoconfig_t::sw_if_index
vl_api_interface_index_t sw_if_index
Definition: rd_cp.api:35
vlib_main_t
Definition: main.h:102
clib_error_t
Definition: clib_error.h:21
vlib_init_function_t
clib_error_t *() vlib_init_function_t(struct vlib_main_t *vm)
Definition: init.h:51
rv
int __clib_unused rv
Definition: application.c:491
sw_if_index
vl_api_interface_index_t sw_if_index
Definition: wireguard.api:34