aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-11-17[HICN-379] Add face priority support in face managerJordan Augé21-14/+414
Change-Id: If4f75d44fc66414a4a70135de7827f5082b97112 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-17Merge "[HICN-395] Static face/route maintainance though face manager"Jordan Augé12-87/+410
2019-11-17[HICN-378] Add a maximum number of reattempts in face manager before ↵Jordan Augé4-36/+109
entering face ignore mode Change-Id: Id6f8cc958d3c50027475d72d80eed6b65ac0996b Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-17[HICN-395] Static face/route maintainance though face managerJordan Augé12-87/+410
Change-Id: I8f2287a262412bacc50f3c89756ec9fd6ce30d33 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-17[HICN-396] Incorrect error handling order in facemgr during interface ↵Jordan Augé1-2/+4
creation causes double free Change-Id: I63f3ac8815611fe83e75edd283eabf4d721bdbac Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-15[HICN-386] Improve API error management in libhicnctrlJordan Augé6-6/+9
Change-Id: Ifab987a17255e20077242888b052e312f9e4c964 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-15[HICN-386] Improve API error management in libhicnctrlJordan Augé4-32/+34
Change-Id: I3f5e3840303265ccc3d4b864d026b63a2ccb7fdf Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-15Merge "[HICN-386] Improve API error management in libhicnctrl"Jordan Augé33-1015/+330
2019-11-14[HICN-386] Improve API error management in libhicnctrlJordan Augé33-1015/+330
Change-Id: I332e74ebcd89798c93de50ae7a20f7af8f59f54c Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-14[HICN-393] Fix various issues related to manifestsOlivier Roques7-20/+50
The current manifest implementation is broken: 1. ManifestIndexingManager, responsible for validating manifests and segments and retrieving the next ones, assumes that all manifests have the same size. This assumption affects the retrieval of next manifests which is based on the number of segments the current manifest contains. Therefore when a non-full manifests arrives, the computed suffix of the next manifest is wrong and refer to a content instead, which results in an error. 2. Manifests are used to update a suffix queue which stores all the segments listed in manifests. This queue is used to retrieve content sequentially via a pointer indicating the next content to fetch. When the pointer reaches the end of the suffix queue, the consumer stops sending interests. The correct behavior would be to wait for a new manifest which would update the queue. This patch fixes these two issues: 1. Issue 1 was fixed by using SuffixManifest (HICN-392). This allows to set the capacity of a manifest at the start of the consumption instead of checking each time the size of the current manifest and then using that (non-constant) value to retrieve the next manifests. 2. Issue 2 was fixed by passing to ManifestIndexingManager a reference to an object capable of calling the scheduleNextInterest function, which is then called after a new manifest is retrieved to make sure interests for content kept being sent. This is not an optimal solution but rather a temporary one, until the retrieval of manifests is done at the transport level rather than in ManifestIndexingManager. This patch also changes the order of production: manifests are now sent before content. To do so, contents are added into a queue until the manifest is complete. Signed-off-by: Olivier Roques <olvrqs@gmail.com> Change-Id: I1a1bb92ca1cf2d3c745c1b65f6c7376f916c679b
2019-11-14Merge "[HICN-392] Assign independent suffixes for manifests/contents"Alberto Compagno9-42/+270
2019-11-14[HICN-375] Move cmake in ctrl/sysrepo-plugins to the main cmke in rootmashemat9-343/+16
Signed-off-by: mashemat <mhemmatp@cisco.com> Change-Id: I6c2f65e61a2f13db8261a32482336b21f07d5e45
2019-11-14[HICN-392] Assign independent suffixes for manifests/contentsOlivier Roques9-42/+270
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-12Merge "[HICN-376] Add manual connection/route setting to face manager"Michele Papalini21-205/+1317
2019-11-12[HICN-389] facemgr calls unregister_all multiple times in case of errorJordan Augé1-1/+0
Change-Id: Iaac34a53ae95b511594a5dcd6b1e614eba9ff135 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-12[HICN-376] Add manual connection/route setting to face managerJordan Augé21-205/+1317
Change-Id: I5c24f687e8e815d0e2f437ff8ce7fbb2c76e0579 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-11Merge "[HICN-383] Code cleanup"Jordan Augé2-36/+39
2019-11-08[HICN-385] fix route removal in hicnctrl, code uniformization in hicn-light ↵Jordan Augé31-332/+616
control api Change-Id: Id097368dcde993775f206623195cc5aa57b4fe12 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-05[HICN-383] Code cleanupJordan Augé2-36/+39
Change-Id: I41ca0f411053992625dec0b32ffe6a444c5bc51c Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-05[HICN-382] Misc compilation issues on MacOS (incl. Catalina specific code)Jordan Augé4-20/+20
Change-Id: I4cb2378b2e44afbaedb984409a221b2e3f0e99b4 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-11-05Merge "[HICN-372] Code clean up"Jordan Augé8-26/+38
2019-11-05Merge "[HICN-380] add libhicnctrl example (create face)"Michele Papalini2-0/+154
2019-11-05[HICN-380] add libhicnctrl example (create face)Jordan Augé2-0/+154
Change-Id: I230d4cc51710fa4ce7ce24c97cd72b1fc7d1f573 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 Compagno39-526/+533
Change-Id: If3f9a7db1e1310fdc08d1003b28e5e1d4006b61e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-11-04[HICN-357] sysrepo plugin updatemasoud6-37/+22
Signed-off-by: masoud <mhemmatp@cisco.com> Change-Id: Idabe9d3a3b03139ad3cdb20c8c822e6dd7d4c553
2019-11-04Merge "[HICN-356] Fix uninitialized pointer"Alberto Compagno1-0/+2
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-356] Fix uninitialized pointerOlivier Roques1-0/+2
The signature verification method verify() in verifier.cc would try to initialize a pointer to the current packet's payload, which was never set in the first place. This fix calls the packet's method responsible for initializing that pointer. Signed-off-by: Olivier Roques <olvrqs@gmail.com> Change-Id: Ie5ab08036186ea4b766f6825c129ee68d01fc2b6
2019-10-31[HICN-372] Code clean upJordan Augé8-26/+38
Change-Id: Ic0ce2d01a05c2724eeaf91f76aafa2facedcbaf3 Signed-off-by: Jordan Augé <jordan.auge+fdio@cisco.com>
2019-10-31Merge "[HICN-220] Build for arm64 Ubuntu18"Mauro Sardara1-2/+2
2019-10-31Merge "[HICN-371] Solve memory leaks in libtransport."Jordan Augé4-10/+30
2019-10-31[HICN-220] Build for arm64 Ubuntu18Angelo Mantellini1-2/+2
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: I23dfdbfc79a8e0bf385ae8ab0d56b90fecaf8c53 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-10-31Merge "[HICN-354] Fixed bug on raaqm when reassemblying packets"Michele Papalini5-106/+61
2019-10-31[HICN-371] Solve memory leaks in libtransport.Mauro Sardara4-10/+30
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I654843c3361c7bdb4b160f2441f08e8d91e97384 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-10-31[HICN-354] Fixed bug on raaqm when reassemblying packetsAlberto Compagno5-106/+61
Moved rescheduleOnIOService in the header file to allow its usage together with inheritance Change-Id: I15e4b92535e1478d0dd09828d2d13e2b77e000b3 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-31Merge "[HICN-369] Implement reconciliation state machine in face manager ↵Jordan Augé25-489/+1066
incl. reattempts in case of errors"
2019-10-31[HICN-369] Implement reconciliation state machine in face manager incl. ↵Jordan Augé25-489/+1066
reattempts in case of errors Change-Id: Ia4ecf621fbd513d9e29313d2aaa487aa65811183 Signed-off-by: Jordan Augé <jordan.auge@cisco.com>
2019-10-31[HICN-361] speed up the socket start upmichele papalini1-16/+31
Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: Id8f59c9c52d7c1fa21edbae9ee1b965b25fe6800
2019-10-31[HICN-318] schedule rounds using timers in rtc conusmermichele papalini2-15/+13
Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: I2e52d002533706abdd82fbca5ebb80e81374de86
2019-10-30[HICN-220] Build for arm64 Ubuntu18Angelo Mantellini1-1/+4
Signed-off-by: Angelo Mantellini <angelo.mantellini@cisco.com> Change-Id: Ie41760070d027d2b28c9eb8b7c27ad5438c746ae
2019-10-30Merge "[HICN-363] Fix memory leaks"Jordan Augé15-120/+193
2019-10-30[HICN-363] Fix memory leaksJordan Augé15-120/+193
Change-Id: I7617becdb520f20caca341be11fbb8c1054de021 Signed-off-by: Jordan Augé <jordan.auge@cisco.com>
2019-10-30[HICN-360] retransmit pending interests when all of them get lost without ↵michele papalini2-8/+105
wainting for the timeout Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: I84074d106bf2cfd3f7a3fb02947198179b0b5b74
2019-10-30Merge "[HICN-366] Installing python3-ply"Alberto Compagno1-1/+7
2019-10-30[HICN-366] Installing python3-plyAlberto Compagno1-1/+7
Adding missing python3-ply package on the build-package script Change-Id: I3fa536483bb3e8f3a6bd81011515172b00cce4ff Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-25Merge "[HICN-358] Enable systemctl service after package installation."Jordan Augé7-4/+35
2019-10-25[HICN-358] Enable systemctl service after package installation.Mauro Sardara7-4/+35
Change-Id: I1c9a7099fbf59c09fb22475e9695373f316d0b6e Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-10-24Merge "[HICN-355] Update Readme with missing dependency"Alberto Compagno1-1/+2
2019-10-24[HICN-355] Update Readme with missing dependencyAlberto Compagno1-1/+2
Change-Id: Ibb709d45f9572e5cde11f9a64f4a1b9212b6cc92 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-23Merge "[HICN-351] Support for new RemoveListener API in libhicnctrl + added ↵Jordan Augé1-1/+1
missing commands in CLI"