aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/hicn.api
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-08-14 15:31:31 +0200
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-09-24 10:34:49 +0800
commitf1eb650af8c73a983653d982f96ebf360dbaa9f3 (patch)
tree293fd8ba4ed4f50fc432e9e3b6c2e98c7a28d5d1 /hicn-plugin/src/hicn.api
parentaf6944a35b97a971139d93da49e09e023005f633 (diff)
[HICN-260] Added a dump binary api for hicn routes
Change-Id: Ic2f7b1edeb35603f6d1fa5f40f7fff441aa43203 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
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 */