aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin/src/hicn_api.c
AgeCommit message (Collapse)AuthorFilesLines
2021-02-10[HICN-682] Fix hicn-plugin to be compatible with version 21.01Mauro Sardara1-225/+183
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ia116ad74ce78e2ca2d7ee624eea75a38936d27f8 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-09-18Revert to [HICN-638] Check if systemd is running before enabling hicn-light ↵Mauro Sardara1-0/+727
service Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I1810d96e001a4e6e097e1efa331b682af750925d
2020-09-14[HICN-574] Host stack plugin for VPP.Mauro Sardara1-727/+0
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I8d8fdffef31a7013265d6529c5f52f3d5ec70d18 Signed-off-by: Mauro Sardara <msardara@cisco.com> Signed-off-by: Mauro <you@example.com> Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-05-05[HICN-608] Added configuratin option to manage hicn behaviour with interfacesAlberto Compagno1-1/+2
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I8d48237b5dce737be443ec8949ac11721158d830
2020-05-04[HICN-603] Cleanup code for managing routeAlberto Compagno1-71/+0
- Remove old code to add and remove hicn route. Routes are now added only through the ip route commands/apis - Adjusted the cli to set the strategy for a particular prefix - Adjusted libtransport consumer and producer app creation - Adjusted sysrepo plugin. Added hicn enable and disable and removed old api related to hicn routes and hicn faces - Adjusted libhicnctrl. Only routes api and listener are now available for hicn-plugin Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: Ib4f7f45ba0b99253d60a9da2b295d6e783e5cd51
2020-05-04[HICN-602] Added bidirectional udp tunnelsAlberto Compagno1-1/+54
- Implemented a udp decapsulation node - Added a hash table to identify the incoming udp tunnel when an interest or data packets are received - Added udp punting through udp_register_dst_port Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: Iffea4d81c5ea8ce8ccbbfd749113f06a698a2afe
2020-05-04[HICN-591] Created new command "hicn enable <prefix>" that enable hicn on a ↵Alberto Compagno1-239/+24
given prefix The changes include: - we use now a different vrf for the hicn routes. The default vrf (fib) contains every route, we sync the route we marked as hicn on the hicn vrf. In the vrf we use a custom dpo to implement the forwarding strategy. Change-Id: I399805eff8a62a5c41bf7b50831986a35bce4f76 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-05-04[HICN-590] Removed andjacency type specific face implementationAlberto Compagno1-295/+262
Changes in the new implementation are: - the adjacency index is replaced with a dpo that allows the single face node to dispatch the packet to the right vlib node. - local and remote address in the face are replaced with a single nat address which is used to perform the nat operation when rewriting an interest or a data (in case of tunnels the nat address will be equal to 0) - the list of next hop in the load balance is no longer a list of dpos but a list of face id (this makes the code easier and increases the number of next hop we supports) Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I4ac2b4eb09425bfe1b3ca9f82d7d0ff564297b0d
2020-03-20[HICN-551] Removed source code that uses aclAlberto Compagno1-76/+5
- Removed punting from the sysrepo-plugin - Removed calls to the punting functions of binary api in the libhicnctrl - Added documentation in vpp-plugin.md and doxygen related to pg Change-Id: I8936156d51524797441ec49f0d5e801a1ad3643a Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
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>