aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/hicn.api
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-09-24 04:00:32 +0000
committerGerrit Code Review <gerrit@fd.io>2019-09-24 04:00:32 +0000
commit70a51ce9c175019f8394f523100a3c7066d3a4bc (patch)
tree342242927896209f44e13b849fc2203986c2bba4 /hicn-plugin/src/hicn.api
parentd6bd901a818e10f2e224bfaaaf20b39b60b6009f (diff)
parentf1eb650af8c73a983653d982f96ebf360dbaa9f3 (diff)
Merge "[HICN-260] Added a dump binary api for hicn routes"
Diffstat (limited to 'hicn-plugin/src/hicn.api')
-rw-r--r--hicn-plugin/src/hicn.api44
1 files changed, 43 insertions, 1 deletions
diff --git a/hicn-plugin/src/hicn.api b/hicn-plugin/src/hicn.api
index 0debf25c5..d344061ba 100644
--- a/hicn-plugin/src/hicn.api
+++ b/hicn-plugin/src/hicn.api
@@ -272,6 +272,9 @@ define hicn_api_face_ip_params_get_reply
/* Return value, zero means all OK */
i32 retval;
+ /* The face required */
+ u32 faceid;
+
/* IP local address */
u64 local_addr[2];
@@ -390,7 +393,37 @@ define hicn_api_route_get_reply
u32 context;
/* List of faces pointing to the next hops */
- u32 faceids[1000];
+ u32 faceids[5];
+
+ /* Number of valid faceids */
+ u8 nfaces;
+
+ /* Strategy */
+ u32 strategy_id;
+
+ /* Return value, zero means all OK */
+ i32 retval;
+};
+
+define hicn_api_routes_details
+{
+ /* Client identifier, set from api_main.my_client_index */
+ u32 client_index;
+
+ /* Arbitrary context, so client can match reply to request */
+ u32 context;
+
+ /* Route prefix */
+ u64 prefix[2];
+
+ /* Prefix len */
+ u8 len;
+
+ /* List of faces pointing to the next hops */
+ u32 faceids[5];
+
+ /* Number of valid faceids */
+ u8 nfaces;
/* Strategy */
u32 strategy_id;
@@ -399,6 +432,15 @@ define hicn_api_route_get_reply
i32 retval;
};
+define hicn_api_routes_dump
+{
+/* Client identifier, set from api_main.my_client_index */
+ u32 client_index;
+
+ /* Arbitrary context, so client can match reply to request */
+ u32 context;
+};
+
define hicn_api_strategies_get
{
/* Client identifier, set from api_main.my_client_index */