diff options
author | Mauro Sardara <msardara@cisco.com> | 2023-01-20 14:54:19 +0000 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2023-01-20 18:40:08 +0000 |
commit | ce39d8887388a158b86c198ac55a50632cc5decd (patch) | |
tree | 37825910b7581c12ab71468c980f7caae93a4dba /hicn-plugin/includes/vpp_plugins | |
parent | 5775adb22b4e6a54a293928c67890149e6f6300d (diff) |
feat: implement set strategy API for hicn-plugin
Ticket: HICN-829
Change-Id: I3dabc38e9cc2e06ebed14b9ed265d027f77b7e5f
Signed-off-by: Mauro Sardara <msardara@cisco.com>
(cherry picked from commit da0d60997bce1e40cc0b1c7b7f4f58df56bbead3)
Diffstat (limited to 'hicn-plugin/includes/vpp_plugins')
-rw-r--r-- | hicn-plugin/includes/vpp_plugins/hicn/CMakeLists.txt | 1 | ||||
-rw-r--r-- | hicn-plugin/includes/vpp_plugins/hicn/hicn_api.h | 3 | ||||
-rw-r--r-- | hicn-plugin/includes/vpp_plugins/hicn/hicn_enums.h | 22 |
3 files changed, 23 insertions, 3 deletions
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 <vpp_plugins/hicn/hicn_all_api_h.h> 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 |