aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/core
AgeCommit message (Collapse)AuthorFilesLines
2020-02-26[HICN-534] Major rework on libtransport organizationMauro Sardara45-7397/+0
Change-Id: I361b83a18b4fd59be136d5f0817fc28e17e89884 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-02-21[HICN-2] Added P2P confidential communication on hICNAlberto Compagno9-50/+184
P2P confidential communications exploit the TLS 1.3 protocol to let a consumer to establish a secure communication on an hICN name. Currently we don't support the consumer authentication (mutual authentication in TLS) and the 0-rtt session establishment. Change-Id: I2be073847c08a17f28c837d444081920c5e57a07 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Signed-off-by: Olivier Roques <oroques+fdio@cisco.com> Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-02-18[HICN-510] Adding collectd plugins to get telemetry from vpp and hicn-pluginAlberto Compagno1-2/+0
Change-Id: Idb322dc712b52301c66c5256ad8d1a6a65b503b9 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-02-12[HICN-508] [HICN-509] [HICN-506] Manifest reworkMauro Sardara1-0/+10
Change-Id: I992205148910be008d66b5acb7f6f1365770f9e8 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2020-01-30[HICN-492] Initialization of vapi_ctx_t before calling vapi_safe_connect()Alberto Compagno2-12/+12
Change-Id: I26aeaffe40cfff460d9780319e54fcb74114cee4 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-30[HICN-445] Update to vpp 20.01Alberto Compagno1-13/+1
Change-Id: I19a442080b6ca8b0477a8f92f161282288c395ee Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-27[HICN-488] Adding lock to vapi calls and manage vapi_connect in order to ↵Alberto Compagno4-36/+70
connect only once. - Added library to hicn-plugin called safe_vapi that takes care of handling concurrent calls to the vapi. - Removed dependency of libhicnctrl from libtransport and added dependency to safe_vapi. - Added dependency to safe_vapi on libhicnctrl Change-Id: Ie49e8319f64a50e7ed6a56e041db977c3b184cc5 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-12-19[HICN-463] Initialize memory before sending message to hicn-light-forwarderMauro Sardara1-1/+1
Change-Id: I4cfd1d45fb754d9efb71ff80ae97ca4fe27e47a2 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-12-04[HICN-427] Producer and consumer socket created with vapiAlberto Compagno13-984/+402
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I44142385b191b4c9b5c4bb418bfbd06a5e102eec
2019-11-29[HICN-423] Handle exception of producer socket thrown upon socket disposing.Mauro Sardara1-1/+7
Change-Id: I2458d054150ca307cf7ac0391f7698ebf2e7466e Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-11-22[HICN-406] Adding face deletion on the hicn-plugin when the corresponding ↵Alberto Compagno4-7/+95
socket is destroyed Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I09268dc5ae2ad465b4a4f68607732c0d3f48e62e
2019-11-22Merge "[HICN-405] Added application face delete"Alberto Compagno2-2/+4
2019-11-22[HICN-405] Added application face deleteAlberto Compagno2-2/+4
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-1/+7
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I41641f6d27babaa1c413ecf2fe6eae0e499df97d
2019-11-14[HICN-392] Assign independent suffixes for manifests/contentsOlivier Roques4-4/+18
This patch introduces a new class, SuffixStrategy and two sub-classes, SuffixContent and SuffixManifest which allow to independently assign suffixes to contents and manifests respectively. The produce() function in socket_producer.cc has also been changed to use them. Given a strategy and an offset (and optionally the capacity of a manifest), these classes automatically compute the correct next suffixes for both type of data (manifest or content). This removes the burden of having to manage suffixes for instance when producing or when retrieving content, and could be expanded to add more strategy in the future. Currently the only existing strategy is "INCREMENTAL": manifests with capacity N have a suffix multiple of N+1: 0, N+1, 2(N+1) etc. Contents have a suffix incremented by 1 except when it conflicts with a manifest: 1, 2, ..., N, N+2, N+3, ..., 2N+1, 2N+3... Signed-off-by: Olivier Roques <olvrqs@gmail.com> Change-Id: Ia7692d7325240de7bea6e38b668077042e5f8758 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-11-08[HICN-385] fix route removal in hicnctrl, code uniformization in hicn-light ↵Jordan Augé3-22/+23
control api Change-Id: Id097368dcde993775f206623195cc5aa57b4fe12 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-04[HICN-262] Fix binary api to prevent byteswapping of ip addresses in vapiAlberto Compagno12-84/+90
Change-Id: If3f9a7db1e1310fdc08d1003b28e5e1d4006b61e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-31[HICN-371] Fix invalid read reported by Valgrind when many timeouts happen.Mauro Sardara1-2/+3
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: Ib31e731c02341234169bd5163eb86fe1da900e40 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-10-31[HICN-371] Solve memory leaks in libtransport.Mauro Sardara2-9/+17
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I654843c3361c7bdb4b160f2441f08e8d91e97384 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-10-16[HICN-334] remove LOG for no pending interests in portalmichele papalini1-1/+1
Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: I80009d5e5fc89ede4f56a9c9a5e3c2940ae13562
2019-10-14[HICN-322] fix timeouts inside portalmichele papalini1-2/+8
Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: I4ac176a11ed6f0b964274240dc0969051911183d
2019-10-09[HICN-311] Incorrect copying of ip_prefix_t data & uninitialized bytes ↵Jordan Augé1-0/+2
causes invalid writes Change-Id: Ia171dac11f65dab295b3523222145215f21a6f4f Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-10-08[HICN-306] Wrong representation format in ip_prefix_ntop causes parsing issuesJordan Augé1-1/+1
Change-Id: I16c8059ce537f338c15434acc87ac0e4baf87049 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-10-07[HICN-298] Release new hICN app for AndroidJordan Augé15-78/+78
Change-Id: I43adc62fadf00690b687078d739788dffdc5e566 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-08-22[HICN-263] DO_NOT_MERGEv19.08Alberto Compagno2-5/+13
Updating hicn-plugin and libtransport to vpp_1908 Change-Id: I8bdad9725ec50597d79b3dc9a8d151ca149c3808 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-07-17[HICN-246] Initializing vpp_api state only the first time a socket is created.Alberto Compagno1-5/+4
Change-Id: I1e56f2b65374777f72f2b264a417a213ad0d0320 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-07-08[HICN-242] Perform only one allocation for the whole buffer passed to produce()Mauro Sardara5-71/+42
Change-Id: Ib4628d0a7711e2d7175b3dbb5c152dd22616ff32 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-05-17[HICN-200] Minor issue AndroidAngelo Mantellini3-2/+14
Change-Id: Iaa24bb5568bc458967b13f51b9c91c8163b2ce52 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-04-18[HICN-178] Sync send of control messages.v19.04Mauro Sardara12-155/+312
Change-Id: I9a07c6c806ceba10f80a5f67337dce2eee76120d Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-23[HICN-6] ATS fixesMauro Sardara2-0/+10
Change-Id: I1e9a214ead9d4d9bacd98d797371783ad39909f7 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-23[HICN-6] ATS Working, little refactoring of appsMauro Sardara3-3/+5
Change-Id: I174815b70bf3a9fbe99ffab7dd2914be04d364b9 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-21[HICN-135] Fix setLifetime function.Mauro Sardara6-59/+79
Change-Id: Ic0423407082e0909584a793f266e5b5fb4fc71b4 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-19[HICN-125 HICN-126]Mauro Sardara3-89/+68
- Add MemBuf as return type of getPayload of transport::core::Packet - Fix incremental index manager Change-Id: Ib557d56b1bf42e3974364c611b825b21f1e3d3f1 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-15[HICN-118] Add .clang-format file, format all libtransport project.Mauro Sardara1-2/+3
Change-Id: I61392567b648014eaa111fc2567770192fccffa6 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-14[HICN-115] Error when libtransport has to close the connectionAngelo Mantellini1-1/+2
Change-Id: I127319a4a935d74f1a55e49aec33cb545fe5bec4 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-03-12[HICN-106]Mauro Sardara2-4/+0
Added generation of .lib for dll shared libraries fixed warning for shift in csum_fold function in libhicn added declaration of external symbol in libtransport log. Change-Id: I9377eb6016a74f14eb8f05df2ced36ee41a27bfd Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-11[HICN-105] Errors during execution of ping and hiperfAngelo Mantellini1-4/+2
Change-Id: I92e26b1c2fd2e837825d3be8cfc991008b2aee7a Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-03-08[HICN-102] Remove warnings and compilation errors in hicn on windowsAngelo Mantellini1-5/+5
Change-Id: Ibb5d90fe35097a29fa6edccd3c7859d043888717 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-03-08[HICN-99] Destroy in the correct order and in the correct event loop the ↵Mauro Sardara4-63/+54
attributes of connectors and sockets. Cleanup of prints. Change-Id: Ie7eef1d186e581aa950f47df20d57681dc33be55 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-08[HICN-85] Added state to connectors.Mauro Sardara10-94/+78
Change-Id: I26d1b37fec4a2482b97a80fa5648f243745908f7 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-05[HICN-89] Preallocate memory for timer handlers just with memif connector.Mauro Sardara1-2/+19
Change-Id: I74b3a249961390b6441c45c91dde21f587a426a5 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-05[HICN-73] Performance improvements of interest/data transmission and ↵Mauro Sardara12-138/+328
reception at low level in the stack (portal.h) Change-Id: I1525726f52040f1609e284bb9b995ea8794c5d5e Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-03-05[HICN-11] Rework on transport protocols improving components modularityMauro Sardara19-950/+85
Change-Id: I6683ec5b494238dc93591c103d25275e89b9f267 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-02-22Merge "[HICN-80] Avoid segfault when deleting memif interface on VPP."Alberto Compagno3-12/+12
2019-02-22[HICN-80] Avoid segfault when deleting memif interface on VPP.Mauro Sardara3-12/+12
Change-Id: Ie36cfc0ade82b38815d61a7ead2c72fc640236ed Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-02-22[HICN-79] epoll timeout is now set to 1 secondAlberto Compagno1-2/+2
Change-Id: Ibec7ff2064ac69833e9c1bb1d8aaa064c02e64be Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-02-19[HICN-69] Include libtransport config file in raw_socket_connector.h.Mauro Sardara1-0/+1
Change-Id: Ieac743f5c46edd6568d48e689216bb8723d44e2c Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-02-18[HICN-69] add compiler definitions for programs using hicnmichele papalini4-0/+4
Change-Id: If20c1e487ca4d9c00ffeebe09f31b475b354e293 Signed-off-by: michele papalini <micpapal@cisco.com>
2019-02-18[HICN-50] Added udp application connector.Mauro Sardara18-134/+531
Change-Id: I0c5afad4b404ec485f50b1342b81e70ef85a5163 Signed-off-by: Mauro Sardara <msardara@cisco.com> Signed-off-by: michele papalini <micpapal@cisco.com>
2019-02-13[HICN-60] Solved concurrent memory access which was leading to seg-faultAlberto Compagno2-15/+9
Change-Id: I7b9fcf79bb97650346f7d92af8cbb419f0a5cb95 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>