From ce39d8887388a158b86c198ac55a50632cc5decd Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Fri, 20 Jan 2023 14:54:19 +0000 Subject: feat: implement set strategy API for hicn-plugin Ticket: HICN-829 Change-Id: I3dabc38e9cc2e06ebed14b9ed265d027f77b7e5f Signed-off-by: Mauro Sardara (cherry picked from commit da0d60997bce1e40cc0b1c7b7f4f58df56bbead3) --- .../includes/vpp_plugins/hicn/CMakeLists.txt | 1 + hicn-plugin/includes/vpp_plugins/hicn/hicn_api.h | 3 --- hicn-plugin/includes/vpp_plugins/hicn/hicn_enums.h | 22 ++++++++++++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 hicn-plugin/includes/vpp_plugins/hicn/hicn_enums.h (limited to 'hicn-plugin/includes') diff --git a/hicn-plugin/includes/vpp_plugins/hicn/CMakeLists.txt b/hicn-plugin/includes/vpp_plugins/hicn/CMakeLists.txt index 9b463e525..d498f5138 100644 --- a/hicn-plugin/includes/vpp_plugins/hicn/CMakeLists.txt +++ b/hicn-plugin/includes/vpp_plugins/hicn/CMakeLists.txt @@ -23,6 +23,7 @@ set(HICNPLUGIN_TO_INSTALL_HEADER_FILES ${CMAKE_CURRENT_SOURCE_DIR}/error.h ${CMAKE_CURRENT_SOURCE_DIR}/hicn_all_api_h.h ${CMAKE_CURRENT_SOURCE_DIR}/hicn_api.h + ${CMAKE_CURRENT_SOURCE_DIR}/hicn_enums.h ${CMAKE_CURRENT_SOURCE_DIR}/hicn_msg_enum.h "" CACHE INTERNAL "" FORCE diff --git a/hicn-plugin/includes/vpp_plugins/hicn/hicn_api.h b/hicn-plugin/includes/vpp_plugins/hicn/hicn_api.h index ac45fbf17..31d5e7736 100644 --- a/hicn-plugin/includes/vpp_plugins/hicn/hicn_api.h +++ b/hicn-plugin/includes/vpp_plugins/hicn/hicn_api.h @@ -20,9 +20,6 @@ * @file */ -#define HICN_STRATEGY_NULL ~0 -#define HICN_FIB_TABLE 10 - /* define message structures */ #define vl_typedefs #include diff --git a/hicn-plugin/includes/vpp_plugins/hicn/hicn_enums.h b/hicn-plugin/includes/vpp_plugins/hicn/hicn_enums.h new file mode 100644 index 000000000..8ad2e5d46 --- /dev/null +++ b/hicn-plugin/includes/vpp_plugins/hicn/hicn_enums.h @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2021 Cisco and/or its affiliates. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef __HICN_ENUMS_H__ +#define __HICN_ENUMS_H__ + +#define HICN_STRATEGY_NULL ~0 +#define HICN_FIB_TABLE 10 + +#endif /* // __HICN_ENUMS_H__ */ \ No newline at end of file -- cgit 1.2.3-korg