aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/hicn_api.c
AgeCommit message (Collapse)AuthorFilesLines
2020-03-19[HICN-547] Removing punting through acl for interestsAlberto Compagno1-20/+18
Change-Id: I71767f732ec6ede1efc66e5a99f09c3207367dcb Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-30[HICN-445] Update to vpp 20.01Alberto Compagno1-78/+6
Change-Id: I19a442080b6ca8b0477a8f92f161282288c395ee Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-21[HICN-486] Writing face type in network order in the face_detail binary api ↵Alberto Compagno1-2/+2
message Change-Id: I9b65c61a9613b942aa4b2417460d6c6a9f2f261a Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-15[HICN-477] Fixed strategy get ctx that could lead to a segfaultAlberto Compagno1-2/+2
Change-Id: Ic0d4f5a6919cb68255e788ac288d17492a6570a5 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-11-26[HICN-398] Added face create/delete/list and listener list on libctrl for ↵Alberto Compagno1-2/+2
hicn-plugin Listener list returns the list of interfaces and their ip addresses Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I2582cf29d4f1f60964766d47ad8d6dc64504fd62
2019-11-22Merge "[HICN-405] Added application face delete"Alberto Compagno1-21/+57
2019-11-22[HICN-405] Added application face deleteAlberto Compagno1-21/+57
Added two new messages in the binary api: - hicn_api_face_cons_del to delete a consumer face - hicn_api_face_prod_del to delete a producer face Added the corresponding commands in the vpp_api_test for debugging and testing Reworked the cache policy structure to add a new function that flash the content store from the content coming from the destroyed producer face. This is required since the CS while each producer face has its own lru list. Removing only the producer face without flushing the CS from the content coming from the producer face will lead to a segfault in case there is a hit in the CS as the lru no longer exists and it won't be possible to update the head of the lru. Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I8776c86952d50900aa504dd22aec521ed25c1dae
2019-11-20[HICN-394] Add route commands add, list, del for the hicn-pluginAlberto Compagno1-2/+2
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I41641f6d27babaa1c413ecf2fe6eae0e499df97d
2019-11-18[HICN-397] Added punting add message for punting on udp portsAlberto Compagno1-5/+35
Change-Id: Ieb5faf5d01e460179028eaba92170ee95cf35edf Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-11-18[HICN-225] Added generic binary api for handling facesAlberto Compagno1-30/+284
Supported messages are add, del, get, dump, get. Each message contains a face id and the expected message has different fields based on the face type. The binary api specific for ip faces is still available for compatibility but deprecated. Change-Id: I899c6cf31a56abd39ad287ea3128993857997fcb Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-11-04[HICN-262] Fix binary api to prevent byteswapping of ip addresses in vapiAlberto Compagno1-60/+31
Change-Id: If3f9a7db1e1310fdc08d1003b28e5e1d4006b61e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-09Merge "[HICN-226] Reworked incoming face identification on receiving a data ↵Alberto Compagno1-1/+1
packet. The output is now a list of possible incoming faces, plus a preferred one which cover the case in which the face is a local producer face. In that case we can identify the face uniquely as we are sure that we have one face for memif."
2019-10-07[HICN-226]Alberto Compagno1-1/+1
Reworked incoming face identification on receiving a data packet. The output is now a list of possible incoming faces, plus a preferred one which cover the case in which the face is a local producer face. In that case we can identify the face uniquely as we are sure that we have one face for memif. Change-Id: Ic48475a36e37a28cec8cc1448b4b4ee6c001efc0 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-06[HICN-287] Adding hicn section to the startup.confAlberto Compagno1-65/+53
Checking if the size of the CS is greater than the number of vlib buffers available and size it accordingly. Removed unused parameters to set PIT lifetime Change-Id: I47679466542d4338e447d9e0b956038143164020 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-09-24[HICN-260] Added a dump binary api for hicn routesAlberto Compagno1-1/+128
Change-Id: Ic2f7b1edeb35603f6d1fa5f40f7fff441aa43203 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-05-10[HICN-193] Fixed faceid convertion from network to host orderAlberto Compagno1-1/+1
Change-Id: Idf28a2ae624231481b03556665a7360388229c8a Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-04-03[HICN-161] Fixed bug that prevents to create an ip face when the code is ↵Alberto Compagno1-4/+4
compiled with -O3 Change-Id: I2dca28f02867a2de92a9bb92183c2c2d0b2fc055 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-04-02[HICN-158] Fixed ip face deletion from binary apiAlberto Compagno1-3/+3
Change-Id: I7a793e3664e30f765861fd5153c99fecb47ce863 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-04-01[HICN-157] Fixed wrong host to network conversion of face id in ↵Alberto Compagno1-1/+1
hicn_face_ip_add binary api Change-Id: I498d798efe683ceff882496659764184f2733e9d Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-03-29[HICN-151] The source address in the IP face is optional. If not provided it ↵Alberto Compagno1-4/+57
will be used one of the ip addresses available in the interface Change-Id: If800a07c0a61cde9152efdee01dd6ae9b12615dc Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-03-27[HICN-150] Fixed punting to classify packets from current_data instead of ↵Alberto Compagno1-1/+1
from data Change-Id: I448b13430dc00ea47b928092249fb9ca88ceba0e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-03-23[HICN-139] Exporting per-face statistics through the binary api.Alberto Compagno1-0/+63
Change-Id: I253fb788fec527360876064b22ab54620eb2c615 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-03-12[HICN-109] Added missing parameter to the face ip add binary api.Alberto Compagno1-17/+37
Added check if the swif exists on the face ip binary api, before calling the internal api to add the face. Change-Id: I6e23d20290755707194bc86c93baee8932a03c40 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-02-14- [HICN-65] Populating hash map of handler and crc in api_mainAlberto Compagno1-8/+33
- Added possibility to start the forwarder from binary api without setting any parameters - Changed pit lifetime values from seconds to milliseconds Change-Id: I83706f22ddd8e825c1021fe70d4bf52e1b929be8 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-01-30[HICN-18] first commit of libtransport for windowsAngelo Mantellini1-0/+0
Change-Id: I3a43b22194aa13ae5de1746e3d4bd9a275070261 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-01-17This is the first commit of the hicn projectv19.01Luca Muscariello1-0/+570
Change-Id: I6f2544ad9b9f8891c88cc4bcce3cf19bd3cc863f Signed-off-by: Luca Muscariello <lumuscar+fdio@cisco.com>