aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-plugin
AgeCommit message (Collapse)AuthorFilesLines
2020-03-23Merge "[HICN-551] Removed source code that uses acl"Luca Muscariello11-2096/+83
2020-03-23Merge "[HICN-549] Refactored pg to use punting through fib"Luca Muscariello3-252/+304
2020-03-23Merge "[HICN-548] Added node to perform a lookup in the fib with the src ↵Luca Muscariello3-1/+731
address to punt data packets"
2020-03-23Merge "[HICN-547] Removing punting through acl for interests"Luca Muscariello36-1035/+1007
2020-03-20[HICN-551] Removed source code that uses aclAlberto Compagno11-2096/+83
- 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-20[HICN-549] Refactored pg to use punting through fibAlberto Compagno3-252/+304
- interest packet generator uses the fib to forward interests. The entry in the fib matching the interest name can be a regular IP fib entry or an hICN fib entry. It is up to who configure the forwarder to chose how the forwarding should be done - the hicnpg-data is used to keep track of the number of data received in order to have statistics corresponding to the number of interests sent and data received (interest satisfied). This node punt packet registers himself as a node for satisfying local tcp packets (ip4_register_protocol or ip6_register_protocol), therefore tcp packets carrying a local address will be forwarded to it. - The hicnpg-server node satisfies interest packets by creating the correspoding data packet. It punts packet by using a feature on the interface that is passed in the configuration. Every packet that arrives on such interface is threated as an hICN interest. Change-Id: I75ffec4ce0a5afeaf321bcc48dd13fd307dd2925 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-03-20[HICN-573] Fixed match of data packet in the producer app faceacompagn1-0/+18
- Now the match honor the prefix length specified in the producer app face Signed-off-by: acompagn <acompagn@cisco.com> Change-Id: Icdd80b02603bb79ceeb0ab14e2da51328c0f9b74
2020-03-19[HICN-548] Added node to perform a lookup in the fib with the src address to ↵Alberto Compagno3-1/+731
punt data packets Change-Id: Ia1d3a5d5b1df8bf17b289954289d449715803cfa Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-03-19[HICN-547] Removing punting through acl for interestsAlberto Compagno36-1035/+1007
Change-Id: I71767f732ec6ede1efc66e5a99f09c3207367dcb Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-02-21[HICN-2] Added P2P confidential communication on hICNAlberto Compagno1-2/+2
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-15[HICN-521] Documentation updateLuca Muscariello1-4/+0
Change-Id: I3ef51af521b53512e589eaf5bb5c0852a638baf5 Signed-off-by: Luca Muscariello <muscariello@ieee.org>
2020-02-12[HICN-512] documentation bundle using sphinxLuca Muscariello1-373/+0
Change-Id: I1dcbca50f7406ef2714683547b6bb32463e1baf8 Signed-off-by: Luca Muscariello <muscariello@ieee.org>
2020-01-31Merge "[HICN-500] Inline bucket retrieved with pool pointer + bucket id ↵Mauro Sardara1-3/+1
instead of pool_elt_at_index"
2020-01-31[HICN-500] Inline bucket retrieved with pool pointer + bucket id instead of ↵Alberto Compagno1-3/+1
pool_elt_at_index Change-Id: I958a1847363aacfa7c45e65550e5f77e14f4902e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-30[HICN-497] Fixed wrong alignement in the matching functionAlberto Compagno1-8/+3
Change-Id: I8115fd1be93477811e349d13ab5e3aaaff1880c7 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-30[HICN-445] Update to vpp 20.01Alberto Compagno23-261/+166
Change-Id: I19a442080b6ca8b0477a8f92f161282288c395ee Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-29[HICN-491] Fixed missing inclusion of vapi_safe into the hicn-plugin deb/rpm ↵v20.01Aberto Compagno3-33/+26
package Signed-off-by: Aberto Compagno <acompagn+fdio@cisco.com> Change-Id: Iec88cca235395754829fedf029add5fa779d5a9e
2020-01-29[HICN-490] Removed vlib linkage in vapi_safeAlberto Compagno1-1/+1
Change-Id: I3fbef099b8d5e28ed10fa423f3996e10d1c71ed9 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 Compagno5-301/+484
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>
2020-01-22Merge "[HICN-486] Writing face type in network order in the face_detail ↵Alberto Compagno1-2/+2
binary api message"
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-21[HICN-485] Fixed entry deletion when the last nh is removedAlberto Compagno3-15/+8
Change-Id: I1a3353989f934f135b4226a6af68a09dd8749563 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-15[HICN-477] Fixed strategy get ctx that could lead to a segfaultAlberto Compagno8-165/+144
Change-Id: Ic0d4f5a6919cb68255e788ac288d17492a6570a5 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-14[HICN-475] Adding multihoming in case the producer is facing the producerAlberto Compagno5-8/+49
Change-Id: I9ec9d43083379ed8961532f2b9d20f03fd1fa45e Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-14[HICN-474] Enabling print of FIB and TFIB statusAlberto Compagno3-1/+19
Change-Id: I0bf56393fe53a4a52753501134cfe2b4b6c75c08 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2020-01-07[HICN-462] Adding probing protocol to hicn-pluginAlberto Compagno4-6/+129
Change-Id: I44bc9aed26d35fadf66f65aa33a8d7880e149e59 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-12-13Merge "[HICN-457] Adding missing lock to the hash entry in order to avoid ↵Alberto Compagno3-2/+5
memory leak."
2019-12-13[HICN-457] Adding missing lock to the hash entry in order to avoid memory leak.Alberto Compagno3-2/+5
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I9ee6d6311ca39353f93e6d41b06752b17628b46f
2019-12-13[HICN-456] Download missing vpp files from github.Mauro Sardara1-4/+4
Change-Id: Ie8c3dbcd940a7db6f213df448a15ccc28dabdde2 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-12-11[HICN-447] Converting incomplete udp face into a complete oneAlberto Compagno1-8/+4
When inserting a udp face through cli or binary api, if an incomplete udp face already exist with the same local and remote addresses and port, the face is converted into a complete face Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I8e7b5eee6c492367f663b2b97d50b6ca166b4824
2019-12-11Merge "[HICN-430] Rework on CMake"Luca Muscariello1-5/+4
2019-12-10[HICN-430] Rework on CMakeMauro Sardara1-5/+4
Change way targets are defined: each project defines targets. Fix project BUILD flags Add build-extras bash script Rework build tree of extras folder, using ExternalProject_Add Change-Id: I82fa29896e54c8a033490eba013c3f0431bec9d0 Signed-off-by: Mauro Sardara <msardara@cisco.com>
2019-12-09[HICN-441] Fixed udp punting.Alberto Compagno1-4/+4
Ip version of the punting (6 or 4) was set in the wrong way. Before enabling punting we were checking for the wrong table type (ip4 when it was 6 and vice versa) Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I1d144010b5f26fdbc98517a647bc218692813f09
2019-12-04[HICN-427] Producer and consumer socket created with vapiAlberto Compagno1-4/+4
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I44142385b191b4c9b5c4bb418bfbd06a5e102eec
2019-11-26[HICN-414] Added udp punting on src port, or dst ports, or bothAlberto Compagno2-15/+168
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I86fa8d76b22a90aa87c6623206022057ac9f30f1
2019-11-26[HICN-398] Added face create/delete/list and listener list on libctrl for ↵Alberto Compagno3-6/+6
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 Compagno21-199/+442
2019-11-22[HICN-405] Added application face deleteAlberto Compagno21-199/+442
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 Compagno3-36/+30
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com> Change-Id: I41641f6d27babaa1c413ecf2fe6eae0e499df97d
2019-11-19Merge "[HICN-397] Added punting add message for punting on udp ports"Alberto Compagno5-26/+335
2019-11-18Merge "[HICN-391] Supporting midchain as adjacencies for an ip face"Alberto Compagno1-1/+1
2019-11-18[HICN-397] Added punting add message for punting on udp portsAlberto Compagno5-26/+335
Change-Id: Ieb5faf5d01e460179028eaba92170ee95cf35edf Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-11-18[HICN-391] Supporting midchain as adjacencies for an ip faceAlberto Compagno1-1/+1
Michain support is important to get a netx hop in a face whose locator is resolved in the fib through a via. Change-Id: Id0ff1522cedd5a093f242499e310a24625a3852a Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-11-18[HICN-225] Added generic binary api for handling facesAlberto Compagno5-150/+865
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 Compagno14-364/+346
Change-Id: If3f9a7db1e1310fdc08d1003b28e5e1d4006b61e Signed-off-by: Alberto Compagno <acompagn+fdio@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-22[HICN-342] No need to take a lock on the hash entry if the lookup forAlberto Compagno2-35/+45
a data hit the CS. Data packets coming from the network are dropped, data packets coming from an application face are either dropped or sent to the push node (which does not require a lock on the hash entry) Change-Id: Icf662dffa33b9dda2e2a69fc2104a69a82ef19fd Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
2019-10-09Merge "[HICN-226] Reworked incoming face identification on receiving a data ↵Alberto Compagno10-231/+417
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-09Merge "[HICN-169] Fixed counters that were decrementing or negative."Alberto Compagno4-21/+25