aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/core
AgeCommit message (Collapse)AuthorFilesLines
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>
2019-02-13[HICN-59] Do not call clear on membuf sharing same underlying memory. Use ↵Mauro Sardara1-1/+2
trimEnd instead. Change-Id: I69463ede2b32f1d625b6161fabd08daca41c3483 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-02-12[HICN-52] Fix signature computation and verification in libtransportMauro Sardara1-9/+12
Change-Id: I9b30a9c9e95e2cb2f135fe7efd43e633235196d9 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-02-11[HICN-46] Remove warnings libtransport on windowsAngelo Mantellini7-14/+18
Change-Id: I09456770dcbca979491cdcadb310eab95a0dea17 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-02-08[HICN-43] Fixed packet lifetime and setting AH flag when a data packet ↵Alberto Compagno1-2/+2
carries a signature Change-Id: I5e14716bc9bfcd8ffc3ab8cda8aa9ba0ca5c6d82 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-02-07[HICN-39] Added api that return a pointer to the signature hold in a packetAlberto Compagno2-11/+21
[HICN-40] Fixed signature calculation by allocating a contiguous portion of memory that holds the entire hICN header (IP+TCP+AH) Change-Id: I9d40bab0e3ecb82949b8b3a00e2cc1214457e4e3 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-02-05[HICN-25] Test docs script.Mauro Sardara1-0/+1
Change-Id: I37cb7b34a737323862619c198ff4e3b570217887 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-02-04[HICN-29] fixed consumer socket connectionmichele papalini1-1/+0
Change-Id: Id2214262196999fedeb46d3cddbe543e1b181a46 Signed-off-by: michele papalini <micpapal@cisco.com>
2019-02-01[HICN-10] Compile libtransport with libmemif supportMauro Sardara4-38/+45
Change-Id: I81d1cb4d5f16a61c35f66fe347985f05d8c97383 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-01-30[HICN-18] first commit of libtransport for windowsAngelo Mantellini14-40/+59
Change-Id: I3a43b22194aa13ae5de1746e3d4bd9a275070261 Signed-off-by: Angelo Mantellini <manangel@cisco.com>
2019-01-29[HICN-17] Add possibility to destroy connection directly from stopEventsLoop ↵Mauro Sardara4-13/+28
with an additional parameter. Change-Id: I869a079a7b2f436768a62de66fd9281a7d1243cd Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-01-29[HICN-10] Treat warning as errors in compilation during verify jobs.Mauro Sardara1-1/+1
Change-Id: Iab6deb14157f81c9f2f8ba6762e93e9860b108bd Signed-off-by: Mauro Sardara <msardara@cisco.com>