From f1eb650af8c73a983653d982f96ebf360dbaa9f3 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Wed, 14 Aug 2019 15:31:31 +0200 Subject: [HICN-260] Added a dump binary api for hicn routes Change-Id: Ic2f7b1edeb35603f6d1fa5f40f7fff441aa43203 Signed-off-by: Alberto Compagno --- hicn-plugin/src/hicn.api | 44 +++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) (limited to 'hicn-plugin/src/hicn.api') 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 */ -- cgit 1.2.3-korg